I have seen What is the difference between ps and top command? but I think my question is unrelated.
My system is Lubuntu 13.04.
I run top
in one lxterminal window and ps -eo %c%C --sort -%cpu | head -6
in another.
I play a YouTube video in Firefox.
Very quickly, the values for plugin-container
in the top
screen "stabilize" whereas the values I get by repeatedly issuing ps -eo %c%C --sort -%cpu | head -6
rise slowly.
Similarly, when I close the Firefox tab that was playing the YouTube video, the plugin-container entry in top
goes away promptly but it lingers on in the output of ps -eo %c%C --sort -%cpu | head -6
, declining slowly as can be seen below:
[04:43 PM] ~ $ ps -eo %c%C --sort -%cpu | head -6 COMMAND %CPU plugin-containe 21.5 firefox 4.9 Xorg 1.6 lxpanel 0.2 dropbox 0.2 [04:43 PM] ~ $ ps -eo %c%C --sort -%cpu | head -6 COMMAND %CPU plugin-containe 21.3 firefox 4.9 Xorg 1.6 lxpanel 0.2 dropbox 0.2 [04:43 PM] ~ $ ps -eo %c%C --sort -%cpu | head -6 COMMAND %CPU plugin-containe 20.9 firefox 4.9 Xorg 1.6 lxpanel 0.2 dropbox 0.2 [04:43 PM] ~ $ ps -eo %c%C --sort -%cpu | head -6 COMMAND %CPU plugin-containe 20.2 firefox 4.9 Xorg 1.6 lxpanel 0.2 dropbox 0.2 [04:44 PM] ~ $ ps -eo %c%C --sort -%cpu | head -6 COMMAND %CPU plugin-containe 20.0 firefox 4.9 Xorg 1.6 lxpanel 0.2 dropbox 0.2 [04:44 PM] ~ $ ps -eo %c%C --sort -%cpu | head -6 COMMAND %CPU plugin-containe 18.9 firefox 4.9 Xorg 1.6 lxpanel 0.2 dropbox 0.2 [04:44 PM] ~ $
plugin-container
does eventually go away, but how should I modify ps -eo %c%C --sort -%cpu | head -6
to make it go away quicker?
(All this is done on a Dell 1545 Core2Duo laptop.)