My top info...
top - 16:02:16 up 461 days, 20:32, 1 user, load average: 4.12, 4.10, 4.22
Tasks: 273 total, 5 running, 267 sleeping, 0 stopped, 1 zombie
Cpu0 : 0.7%us, 0.3%sy, 99.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.3%sy, 99.7%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.3%us, 0.3%sy, 99.3%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.3%us, 0.3%sy, 99.3%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16463796k total, 14791704k used, 1672092k free, 242224k buffers
Swap: 8388604k total, 1076164k used, 7312440k free, 11015344k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7520 username 39 19 90992 1880 1864 R 99.6 0.0 4563:36 ftp
7670 username 39 19 90992 1512 1496 R 98.9 0.0 8562:36 ftp
9926 username 39 19 90992 1532 1516 R 98.9 0.0 8548:47 ftp
14414 username 39 19 90992 1528 1512 R 98.9 0.0 8662:33 ftp
30987 username2 20 0 4796m 803m 11m S 1.0 5.0 9:06.95 java
2060 username2 20 0 3608m 1.2g 2480 S 0.3 7.8 6025:29 java
CentOS release 6.9 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
If I toggle idle processes off in top the only processes showing are ftp and top itself.
All the other non-ftp processes are less than one percent %CPU.
tcpdump and strace for the ftp processes don't show activity.
It looks like this means the 4 cpu's are each using a small amount of %us userspace time to the four ftp processes which are niced so it shows at 99 %ni, meaning of the little userspace time used it was almost all niced. There is no idle time %id because those ftp processes are doing something.
Am I reading these number correctly?
Are the ftp processes busy with a Linux empty task?
strace
:strace
only prints signals and system calls. Example:strace sh -c 'while :; do :; done'
will push one of your cores to 100% withoutstrace
showing it doing anything.ftp
command is probably buggy, and it either hit a bump and went into a trip by itself, or someone exploited it as a denial-of-service attack. Anyftp
command should be i/o bound, it has no case for transforming so much electrical energy into heat.