I have a process that seems to be stuck in an interesting way. top shows this:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
38984 gergely 20 0 332m 276 184 S 0.7 0.0 18:13.16 Holmake
79492 gergely 20 0 10.7g 6.5g 316 D 0.7 84.5 107:04.76 buildheap
buildheap uses 84.5% of physical memory and 10.7 GB of virtual memory in all. This is on a machine with 8GB physical memory assigned. But the process itself uses only 0.7% of the cpu cycles.
Following answer Linux: how to detect if a process is thrashing too much?
the 12th variable in /proc/79492/stat is 336236. Is this way too high?
$ cat /proc/79492/oom_score
333
Again this is not clear whether this is too high or not.
Does this show too much thrashing?
And, is there any other cure than asking the sysadmin to assign more phyiscal memory to the machine?