What are these flush
processes?
$ ps aux | grep flush
root 710 0.0 0.0 0 0 ? S 2012 2:29 [flush-202:1]
root 10732 6.2 0.0 0 0 ? S Apr14 453:33 [flush-202:80]
ubuntu 24009 0.0 0.0 8080 900 pts/3 S+ 06:26 0:00 grep --color=auto flush
I notice that the flush-202:80
process often jumps to the top of top
. This is on Ubuntu Server 12.04 running Apache, MySQL, and Solr processes. Googling the subject I found another SF post which mentions that these processes should never consume much CPU. The solution presented in that post mentions to reboot the system, which is exactly how I came to poke around in top
and discover the processes in the first place: the system won't reboot.
The numbers tell you what the flush process is working on. Do
and you will see something like
compare this with your
ps ax | grep flush
and you can see that what
flush
is working on is my/dev/sda
.You could probably get more info by doing
and
to see what processess have opened what files on these devices.
What does
top
show you before and while this is going on? It would be best to track the problem down rather than do a reboot. Once you find the process that is causing the problem you might be able to tune/proc/sys/vm/dirty_background_ratio
,/proc/sys/vm/dirty_expire_centisecs
and/proc/sys/vm/dirty_ratio
to compensate.