1

Unlike this question, I'd like to list the 10 main CPU-consuming process, how not in instantaneous CPU usage %, but rather, CPU usage since boot ?

i.e. a process that peaks at 50% CPU during 10 seconds won't be listed and a process constantly using 3% CPU during hours would be listed

2 Answers 2

4

If you just want to get a view of the processes usage since up time, then with top you can set it to sort by TIME+ with SHIFT+T. You can also highlight that column with x.

Sample:

 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4046 fred 20 0 1873812 825068 119016 S 0.7 20.4 31:52.12 firefox 2661 root 20 0 401200 97064 52196 S 5.0 2.4 15:07.41 Xorg 4058 fred 20 0 438056 25568 19388 S 1.0 0.6 1:30.85 panel-29-weathe 4057 fred 20 0 307456 17904 15628 S 0.7 0.4 0:43.47 panel-21-system 3957 fred 20 0 176732 23596 17536 S 0.3 0.6 0:38.32 xfwm4 4096 fred 9 -11 436876 14204 8936 S 0.0 0.4 0:37.12 pulseaudio 5052 root 20 0 0 0 0 S 0.3 0.0 0:28.04 kworker/2:2 
1
  • Can I start like this from command line with top .... ? Because I also want ot use it with Android-rooted-device, and I can't do SHIFT T. Commented Jul 29, 2016 at 23:53
3

On Linux:

ps --sort -time -ef | head -n 11 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.