A command-line system monitor tool that produces a frequently-updated list of processes.
1
vote
0answers
37 views
Determine how much a process is using each disk?
How do I tell how much load a particular process is contributing to each of several available volumes/mounts? Seems that dstat only shows aggregate stats across all processes per disk, and iotop only ...
1
vote
1answer
40 views
iotop but for particular disk?
Is there a tool like iotop but for monitoring IO on specific volumes? (Or perhaps I missed a way to filter iotop?) If not is there any way to get at this information via (say)/proc? (dstat etc. ...
1
vote
1answer
43 views
What's using all of the memory in my VM? It's not the disk cache
I have an issue where when I try to build a really large project, my machine starts swapping (several GB) even though there's plenty of memory (14 GB in fact). When I run free, it shows that it's not ...
0
votes
0answers
35 views
Prevent Java to escalate CPU usage on Slackware64?
I use Slackware64-current on my work laptop and though I love running Slackware, sometimes it hangs on me near to the point of starting considering falling back to Windows.
I develop on Java and use ...
1
vote
1answer
41 views
Control precision of CPU or MEM percentage in top?
Looks like the default precision has changed in Arch, but I checked top (1), I didn't find anything related to precision, maybe I've used the wrong jargon.
Right now it's 3 bit precision, I want ...
0
votes
1answer
57 views
top not working
My below cronjob is not working. What am I doing wrong here??
*/5 * * * * /usr/bin/top -n1 | head -10 >>/tmp/load.txt
0
votes
0answers
20 views
Contradictory information from “top” [duplicate]
As we all know, the top command displays various real-time information about the running system. What I can't figure out is this:
top claims that gzip is using 95% CPU. (Not unreasonable, considering ...
1
vote
1answer
323 views
htop reporting much higher memory usage than free or top
The following three outputs were taken essentially simultaneously:
top:
top - 02:54:36 up 2 days, 13:50, 3 users, load average: 0.05, 0.05, 0.09
Tasks: 181 total, 1 running, 179 sleeping, 0 ...
0
votes
0answers
45 views
Why the kernel works so hard?
Tasks: 808 total, 242 running, 553 sleeping, 3 stopped, 10 zombie
Cpu(s): 20.0%us, 79.5%sy, 0.3%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 16313868k total, 6922552k used, 9391316k ...
1
vote
2answers
135 views
Why linux uses swap memory when there are still tons of physical memory unused
root@host [/home4/nudenude/public_html/hello/cache]# top -r
top: unknown argument 'r'
usage: top -hv | -abcHimMsS -d delay -n iterations [-u user | -U user] -p pid [,pid ...]
root@host ...
0
votes
2answers
132 views
What does SWAP mean in top?
It says
p: SWAP -- Swapped size (kb)
The non-resident portion of a task's address space.
q: RES -- Resident size (kb)
The non-swapped physical memory a task has used.
RES = CODE + ...
2
votes
2answers
221 views
How to interpret this top command
top - 04:36:16 up 32 days, 2:33, 1 user, load average: 251.72, 250.54, 231.19
Tasks: 785 total, 249 running, 522 sleeping, 2 stopped, 12 zombie
Cpu(s): 8.9%us, 90.5%sy, 0.4%ni, 0.0%id, ...
3
votes
2answers
176 views
Memory management, bias to swapping
I was having 768 MB RAM. In a general day MySQL was using 100-180 mb of RAM and MySQL was swapping 80-120 mb. I was having 50-60 mb free RAM.
So I thought I should upgrade. Then I upgraded my RAM ...
1
vote
1answer
95 views
Which processes swaps memory
I can see swap's total, used, free etc. sizes from top command.
But I can't figure out which process uses swap, is it possible to find out swap memory by process?
I'm running CentOS 6.3.
1
vote
2answers
148 views
Top c - CPU usage >200% Will it Crash?
I would appreciate some advice from your experience..My main concern is I really REALLY do not want to cause the computer server to crash..
The question is, I am running a program on a linux computer ...
2
votes
3answers
309 views
Killing a tree of processes in top/htop
htop allows me to nicely see trees of processes within the shell. I can kill processes by pressing F9 (KILL) and then selecting which signal (e.g. 15 SIGTERM) I want to send to a job to kill.
...
2
votes
2answers
140 views
Why “uninterruptible sleep” is not counted as “IDLE”?
When I run top -bi, where the parameter -i means "ignore idle processes", the resulted list(see below) of processes are either R or D, although there're S processes at that time.
So, why ...
1
vote
2answers
228 views
Total amount of memory usage by a single process say httpd
I want to get a full added amount of memory usage for a particular process. Here say I want to have the total amount of memory taken by httpd. So if I do a tail command as "tail -M"
I get
PID ...
0
votes
3answers
272 views
What is the difference between ps and top command?
What is the difference between ps and top command ? I see that both can display information about running processes . Which one should be used when ?
0
votes
0answers
99 views
Very large values for utime and stime for foo. Is foo still running?
I am running a program foo
It has been running for close to 30 days now (even more)
Until around 10 days ago (I cannot be very exact) it used 100% of one cpu on my dual core laptop (it was at the ...
0
votes
1answer
444 views
ATOP shows red line vmcom and vmlim. What does it mean?
utility atop shows:
ATOP - MyServer 2013/01/07 00:03:57 10 seconds elapsed
PRC | sys 2.18s | user 8.33s | #proc 141 | #zombie 0 | #exit 0 |
CPU | sys 21% | ...
3
votes
1answer
88 views
How do I stream a top snapshot into a file
Is there any way to persist the snapshot of top at that given moment into a file?
I tried
top > top.out
but the contents were nothing like top in STDOUT:
^[[H^[[2J^[(B^[[mtop - 16:09:49 up 18 ...
2
votes
2answers
920 views
Top and ps not showing the same cpu result
This is linked to this question.
When I run top I get the following result:
pid 3038 is using 18% cpu, however when running
the result is 5.5%. And this number does not appear to be changing ...
1
vote
1answer
31 views
Task management tools with keyboard navigation that run in a terminal
I recently learned that I can use top with my keyboard to kill processes (k), show processes for a specific user only (u), etc. But I was wondering if there is a way of selecting processes from the ...
1
vote
0answers
95 views
Display 'PRI' and 'NI' via 'top -stats'
I'm trying to create a script that prints top stat for some specific fields (e.g. pid, command, priority, nice value). I can print most of them by using -stats option, but there is no arg for ni and ...
4
votes
1answer
318 views
top / htop; group process by command
I'd like to know how much resource a specific command is using.
top and htop displays information on per process basis but I'd like the information to be shown on per command basis. E.g. I'd like to ...
4
votes
1answer
92 views
show hostname in top
I'm using top with tmux to monitor the most-CPU-consuming processes on different computers. How can I get the hostname to be displayed in each pane? Can I tell top to display the hostname somehow?
3
votes
2answers
1k views
What units of time does “top” use?
If I issue the "top" command and receive results such as:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
00001 bob 25 0 77380 1212 1200 R 95.8 0.0 89122:13 fee
...
1
vote
0answers
27 views
javac takes over 200% CPU on RHEL6? [duplicate]
Possible Duplicate:
top output: cpu usage > 100%
I don't think I understand what top is telling me. I have a javac process that says that it's taking over 200% of CPU. That's in the ...
2
votes
4answers
130 views
How to find out what is this process for?
I have this 'java' process running for 3 hours ( I guess ). I didn't see it before and I wonder how could I find out where it's coming from?
Here is a screenshot:
EDIT: ok I figured it out, it's ...
10
votes
1answer
696 views
Meaning of colours in htop
Given the option:
[ ] Detailed CPU time (System/IO-Wait/Hard-IRQ/Soft-IRQ/Steal/Guest)
In htop (Version 1.0.1) what are the meanings of the colours?
In the following image, I'm seeing rather a lot ...
3
votes
2answers
275 views
How can i redirect the output to a file when the program is build with ncurses library [duplicate]
Possible Duplicate:
Removing control chars (including console codes / colours) from script output
If we redirect output to file in this pattern top >> somefile.txt, we get lot of ...
3
votes
2answers
165 views
Shouldn't there be more RAM free than this? [duplicate]
Possible Duplicate:
Correctly determining memory usage in Linux
I see that almost all my RAM is in use. Is this bad? Strange thing is I don't see what is actually using the RAM.
2
votes
2answers
520 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.
0
votes
1answer
349 views
system monitoring tools
What command line utilities come standard with sunos to do system monitoring?
I've been able to find prstat, but I would like something that will tell me memory usage and IOWAIT as well.
It looks ...
5
votes
2answers
1k views
How to properly run “top” command through SSH?
I have to run top command on one computer being on another.
My targeted PC has IP 192.168.0.81
I was trying to do it: ssh 192.168.0.81 top
But I got this result: top: tcgetattr() failed: Invalid ...
2
votes
1answer
739 views
CPU and core usage stats
I'm running some programs on a server and I would like to know how much % cpu I'm taking up and how many cores are being utilised by my process.
To clarify, the server has 16 CPUs, all quad-core. I ...
7
votes
2answers
545 views
Tools for Monitoring Steal Time (st)
We're running on a virtual "dedicated" server, which should, in theory, mean that we're the only guys on the server. In practice.... I'm thinking we might not be.
Notice that although it looks ...
3
votes
2answers
465 views
How can I kill the top CPU/IO process quickly?
I find that sometimes my Linux will stop responding, so I need to switch to another terminal with CtrlAltF2, and type a command to kill the top CPU usage process or top IO usage process, so that the ...
1
vote
1answer
320 views
Append timestamp to top command output
All,
I'm using
top -l 0 -s 1 -pid XXX -stats rsize | awk 'NR%13==0; fflush(stdout)' > output.txt
to store the rsize value of a process in a file. Currently the contents of output.txt look ...
1
vote
1answer
110 views
OSX top command shows 5 running on a quad core
When trying to run the top command on my quad core mac, I see periodically that there are 5 running processes. How could it be possible to have 5 running processes on a quad core machine?
3
votes
2answers
229 views
How can we use the command 'top‘ to monitor the total CPU usage and each processor usage simultaneously?
You know that we can use the command top to monitor the real-time CPU usage and toggle the result display to the per-processor view by pressing key 1. The disadvantage of it is you can only monitor ...
1
vote
2answers
1k views
free / top difference. Does free show virtual memory?
free -m shows me the following in my system:
total used free shared buffers cached
Mem: 3954 3842 111 0 248 2585
-/+ ...
0
votes
1answer
389 views
The TIME field in ps -ef
When I do ps -ef, I see "TIME" field. What does this field mean? From what I understand, this tells the actual CPU time, that the process got (amidst all the context switching). Does the TIME field ...
3
votes
2answers
1k views
How to see complete list of processes in top
When I do 'top', I learn that there are many processes running out of which many are in sleep state. I need to see complete snapshot of all processes at that point. the 'top' is able to show listing ...
3
votes
2answers
1k views
How to know reason of a process going to sleep state and wake it up?
When I do 'top' , I see my perl script process in 'S' state. Is there a way to know, what is making this perl process go in sleep state and ways to wake it up? Any way to debug to give more insights ...
1
vote
1answer
100 views
How do you prevent user from opening a program?
I'm trying to write a script which prevents the concerned user from opening programs (mostly internet browsers) from being run during a certain time (like 1000 to 1200 hrs). This is like a ...
6
votes
1answer
627 views
top output: cpu usage > 100%
Here is the top output which I gathered:
I noticed that top is showing vlc's cpu usage is > 100%.
Can anybody please justify me why it is showing like this, whether this is a bug in top ...
1
vote
4answers
470 views
How to find which machines are idle on a cluster of many nodes
I run measurements on a cluster consisting of 32 nodes/machines. I do not require all nodes, only 4, for example. The problem is most of the time, the nodes are busy with other people running their ...
5
votes
4answers
2k views
Top says 100% CPU used, but 50% of cores idle?
top - 08:43:16 up 96 days, 22:16, 1 user, load average: 4.03, 3.92, 3.98
Tasks: 199 total, 1 running, 198 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.0%us, 0.5%sy, 50.0%ni, 49.5%id, 0.0%wa, ...

