Tagged Questions

A command-line system monitor tool that produces a frequently-updated list of processes.

learn more… | top users | synonyms

1
vote
2answers
149 views

Should I care for applications that increase the system Load in order to prevent overheating?

I found that my "PCI Adapter" overheats when load is above 4.0 (having 4 cores). It does NOT overheat when the load is below 4.0 (but I had an overclocked memory that was causing trouble as I explain ...
5
votes
1answer
199 views

How to monitor top applications using CPU (and IO if possible) in a graph?

I need to find what and when these applications used so much CPU (and IO if possible too). This should be in a graphic timeline like we see in GNOME System Monitor CPU History. I also want to compare ...
4
votes
2answers
1k views

What is the STATE column of the TOP command on Solaris?

I'm running a very large, memory intensive program on my new UNIX server and trying to fully understand the output of the "top" command. Here is what I see right now (showing only the first process): ...
1
vote
1answer
1k views

Difference between top and ps output

I have seen What is the difference between ps and top command? but I think my question is unrelated. My system is Lubuntu 13.04. I run top in one lxterminal window and ps -eo %c%C --sort -%cpu | head ...
2
votes
3answers
106 views

when awake from hibernate, will the VIRT column of top command show the swap space used by process?

top - 10:43:31 up 8 days, 1:28, 4 users, load average: 0.72, 0.57, 0.44 Tasks: 180 total, 1 running, 177 sleeping, 0 stopped, 2 zombie %Cpu(s): 8.9 us, 2.1 sy, 0.0 ni, 88.9 id, 0.0 wa, ...
1
vote
2answers
1k views

How can I automatically kill the process with the highest CPU load?

Sometimes programs will lock up in the background and cause high CPU usage. Is there any way I can programmatically ascertain which process is causing the highest CPU load at the moment and kill it?
0
votes
2answers
4k views

Top “id” is using 50-99% of CPU

My i386 Lubuntu install is running with a constantly 100% CPU. Using top I have diagnosed "%id" as using up a lot of CPU, usually between about 50% and 99%. Why is this happening, and how can I stop ...
3
votes
2answers
2k views

Top Command - How to reduce the displayed Columns

Can we get specific column in a top command, for eg I'm interested in only the memory utilization and CPU usage column. How do I reduce the displayed columns of the top command to only the above two ...
0
votes
1answer
89 views

Why server load is significant when CPU IO and memory are only lightly use

I have a very powerful server. 32 core and 64G memory with SSD Here is the result of iostat -xk 5 avg-cpu: %user %nice %system %iowait %steal %idle 13.43 0.00 8.68 1.74 ...
4
votes
1answer
131 views

how to list all instances of an application?

How do I list all instances of an application. ie I am running 12 instances of application called "tcpA" I would like to list all of them. Below is top, I don't know if there is a way to look at a ...
5
votes
3answers
556 views

Determining the particular processor on which a process is running

I have access to an 8-core node of a Linux cluster. When logged in to the node, I can see a list of processors using this command: more /proc/cpuinfo In my 8-core node, the processors are numbered ...
1
vote
1answer
122 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? It seems that dstat only shows aggregate stats across all processes per disk, and iotop ...
5
votes
2answers
744 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
284 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
90 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
83 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
217 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
21 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 ...
2
votes
1answer
3k 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 ...
1
vote
2answers
550 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
3k 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
1k 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
509 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 ...
2
votes
1answer
841 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.
2
votes
3answers
3k 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. ...
4
votes
2answers
1k 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
3answers
853 views

Total amount of memory usage by a single process

I want to get a full added amount of memory usage for a particular process. Foe example, 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: ...
0
votes
3answers
5k 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
297 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 ...
2
votes
2answers
3k 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% | ...
4
votes
1answer
576 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 ...
9
votes
2answers
11k 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
40 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 ...
2
votes
1answer
333 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 ...
5
votes
1answer
1k 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
166 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?
9
votes
2answers
15k 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
28 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
152 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 ...
17
votes
1answer
3k 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
940 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
199 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
1k 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.
1
vote
1answer
707 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
4k 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
3k 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 ...
9
votes
2answers
1k 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
760 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
660 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
164 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?