How to know if [program] is still running? (LLL to be precise)
I have not a lot of experience in running programs that take several hours to end.
I'm running an attack which complexity is dominated by the LLL function
It has been running for several hours now and I have no idea how well it's doing, or if the thing just crashed (I'm using sage in a virtualbox)
I've seen some people talking about syslog to continuously log
But I'm sure some people here have been in my situation and could share some light on this problem :)
David
You could make your program print something every now and then.
@slelievre: that can surely sometimes be quite hard to do. For example if it is one call to one function in someone else's module that is causing the delay then you are limited by the functionality of the function, aren't you?
@mimoo: try googling for a sage debugger. That might give you more control over seeing what your program is doing.
If you can get access to a terminal window on the machine (we should really package the sage virtual machine to run jupyter with the terminal server installed) you can run "top", which would show the processes that are using a lot of CPU time, and their memory use. If the memory use gets out of control you'd normally see the CPU utilization go down due to memory swapping. Usually you won't get a useful answer if that happens. Otherwise, you'd usually convince yourself that your program works in principle by trying smaller examples first and then slowly work your way to more complicated cases. You can usually extrapolate from running times on the smaller cases how long you should expect the larger cases to take.