Here is the top
output which I gathered:
I noticed that top
shows VLC's CPU usage at more than 100%.
Can anybody please explain why top
is showing those numbers? Is this a bug in top
or something else?
Here is the top
output which I gathered:
I noticed that top
shows VLC's CPU usage at more than 100%.
Can anybody please explain why top
is showing those numbers? Is this a bug in top
or something else?
You are in a multi-core/multi-CPU environment and top
is working in Irix mode. That means that your process (vlc
) is performing a computation that keeps 1.2 CPUs/cores busy. That could mean 100%+20%, 60%+60%, etc.
Press 'I' (capital i, Shift+i) to switch to Solaris mode. You get the same value divided by the number of cores/CPUs.
I
, you can press W
to save that as the default configuration if you are root.
– RubyRedGrapefruit
Oct 17 '12 at 13:37
W
to have saved those as def. config, you can also press 1
once or twice to get an idea of how exactly CPUs/cores are being loaded. ;)
– poige
Oct 20 '12 at 11:19
top
displays one of the process as 100% cpu usage. Does this means the machine is hung and no other process will get CPU time.
– krishna
Jul 05 '18 at 12:20
top
wouldn't be able to update the list of processes anymore, cause it's a process too. 100% on a single core machine means “no other process requested any CPU time during the measuring interval” (or maybe something did, but was so quick it ended up a measuring error). Most importantly, when another process becomes active you should see that 100% value drop in top
again with the other process getting the remaining share.
– ntninja
Oct 01 '19 at 16:21
top
will save the configuration file to ${XDG_CONFIG_HOME:-~/.config}/procps/toprc
if the W
key is used when running it as regular user.
– ntninja
Oct 01 '19 at 16:24