Tagged Questions
2
votes
2answers
512 views
Find the PID of top CPU/MEM usage, save to a shell variable
Is there any way to get the PID of the top CPU/MEM usage, I need to use that in a script, top command doesn't seem to work for it.
6
votes
1answer
851 views
Is the sum of all PIDs “utime” the total system utime?
In order to measure a user's total CPU time, I'm using the "utime" field out of /proc/[pid]/stat:
utime %lu Amount of time that this process has been scheduled in user
mode, measured in ...
1
vote
2answers
207 views
Is there a log of past threads that are now closed?
Sometimes, I have a rogue Java process which takes up 100% of my CPU and makes it jump about 30C in temperature (usually resulting in a crash if not killed).
Problem is, I can never really identify ...
6
votes
2answers
6k views
Limit process to one cpu core
How to limit process to one cpu core ?
Something similar to ulimit or cpulimit would be nice. (Just to ensure: I do NOT want to limit percentage usage or time of execution. I want to force app (with ...
4
votes
3answers
2k views
How to find which Process is causing High CPU usage
Is there any way to find out from terminal which process is causing high CPU Usage ?
It would also be useful to order processes in descending order of cpu Usage
1
vote
1answer
254 views
Queries about top command
top command shows the process cpu utilization, and it when we sum the cpu utilization of all the processes then it goes greater than 100%. And how can it shows the cpu utilization of each process( ...
6
votes
2answers
2k views
Understanding top and load average
I'm observing a high load average an certain machine (about 9) in all three load fields. I understand load as the number of processes in state "run" / currently desiring CPU time. Am I correct at ...
6
votes
2answers
171 views
How can I chase a program who is rising up my laptop's temperature?
After 40 days of non-upgrading I came back from a trip and I decided to dist-upgrade my Debian Sid box. Everything went fine but after rebooting I noticed that the temperature was 15°C over its ...
13
votes
3answers
1k views
How can I set the processor affinity of a process on Linux?
The question is all in the title: How can I set the processor affinity of a process on Linux?