2
votes
2answers
65 views

Can `top` show average data?

top shows instant resource usage. Also it has -d option that sets refresh rate. But how can I get average %CPU for processes for 1 minute?
0
votes
1answer
73 views

Linux released memory

If My process allocates some big memory and then deallocates, would top or gnome-system-monitor show that my memory usage of that process decreased ? or kernel will still reserve that memory for that ...
0
votes
2answers
1k views

Get unix 'top' command output from Expect script

All, EDIT I want to execute a unix statement in Expect script and get an output without having to include the interact statement.The unix statement outputs rsize value for a process. I haven't ...
3
votes
2answers
608 views

Where does top get its CPU usage data from?

I want to write some scripts that will measure the CPU use, but top's output, while pleasant for the user, isn't really feasible for processing in a script.
1
vote
2answers
303 views

Top like viewer eating tail -f stream

Hi there I'm searching for a command line tool working with a stream of lines (tail -f typically) and counting them like : tail -f /var/log/apache2/access.log | cut -d' ' -f1 | SOME_COMMAND and ...
1
vote
3answers
101 views

Opening an existing process

I am using Eclipse in Linux through a remote connection (xrdp). My internet got disconnected, so I got disconnected from the server while eclipse was running. Now I logged in again, and I do the ...
10
votes
5answers
5k views

Confused by CPU values in Unix 'top' command

In the screenshot below, the overall CPU is being reported as 3% but the mysqld process is reported as using 57%. Is this 57% of the overall 3% and thus mysqld is only using about 1.5% of the CPU? ...