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

learn more… | top users | synonyms

-1
votes
1answer
119 views

Which is the most precise command to get processes and system information? [closed]

I'm trying to evaluate performances of some active processes of mine on linux. Searching the internet I found that ps and top are the only command available for that. More precisely here, it says ...
3
votes
1answer
41 views

program executing for 2 days

I have a java program which implements the Hungarian algorithm. I made changes to the existing code in such a way that the input is read from file. I have a pretty huge input around 32,000 rows for ...
4
votes
2answers
193 views

How to freeze current task order?

I believe I have read some time ago how you can make top stop sorting the tasks so that they stay in the same line (easier to read) but still get updates for their values (in contrast to simply ...
1
vote
1answer
99 views

Why my cpu spend so much time on system? [closed]

top - 08:58:42 up 20 days, 8:23, 1 user, load average: 67.17, 58.94, 62.75 Tasks: 630 total, 40 running, 524 sleeping, 0 stopped, 66 zombie Cpu(s): 57.3%us, 41.6%sy, 0.0%ni, 0.0%id, 0.0%wa, ...
2
votes
3answers
1k views

How to show CPU time for processes via top without 'root' procs

Okay, So I've been attempting this for about three hours now without success. How do you search/display/use the top command (or ps command if it works...) to output a list of all procs, sorted by CPU ...
-2
votes
1answer
271 views

automatic capturing top output by cronjob CENTOS 6.5 x86_64

I have this command: top -n 14400 -a -b -d 1 > /toplogfile.txt I want to make a script which is run by cron every day to capture top output, and if it is possible gzip the output file after the ...
22
votes
4answers
14k views

How to display meminfo in megabytes in top?

Sometimes it is not comfortable to see meminfo in kilobytes while you have several gigs of RAM. In Linux it looks like that: And here is how it looks in Mac OS X: Is there a way to display ...
6
votes
3answers
419 views

Full username in top

On our systems user names can be up to 20 characters long. But the top commands only displays the first 8 characters. How can I configure top to display the whole user name? At the moment we use: ...
2
votes
1answer
163 views

Setting the TOPCOLORS environment variable

I don't seem to be able to find any examples on the Internet for this environment variable, which top will apparently read and use to display colours. How would I set this variable correctly so top ...
6
votes
2answers
156 views

Why are there so few “running” processes?

On all of BSD/Linux/MacOS and Solaris, I made an observation - no matter how busy the system is, top always reports very few (usually 1-2) running processes. According to my limited understanding, a ...
3
votes
0answers
134 views

What is the difference between the output of TOP command and Oprofile?

In the top command one of the processes is always showing a CPU usage of 4 to 5%. But in oprofile the CPU usage is 0.004%. I do not understand this. And I also noticed that even when a process is in ...
2
votes
1answer
94 views

What does a high load with an empty top mean? [duplicate]

What does it mean when I have a non-trivial load and when I run top, there are no processes using non-trivial amounts of cpu time? For example, I have a server with this top line: top - 10:10:59 up ...
2
votes
1answer
295 views

output of top gets truncated to 80 columns when run by cron

I have got the following logging script: #!/bin/bash top -b -c -n 1 >> /var/log/toplog/top.log And the following record in my crontab: */1 * * * * /home/clime/scripts/toplog.sh The ...
1
vote
2answers
154 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
209 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
110 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
5k 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 ...
4
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
101 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
159 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
726 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
128 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
872 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
330 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
93 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
89 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
247 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
587 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
531 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
982 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
4k 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
913 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: ...
1
vote
3answers
6k 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
331 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 ...
3
votes
2answers
4k 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% | ...
5
votes
1answer
656 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 ...
12
votes
2answers
13k 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
349 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
2k 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
176 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?
11
votes
2answers
17k 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 ...