Top is a UNIX program that shows system usage in real time.

learn more… | top users | synonyms

5
votes
2answers
3k views

cpu load measure with hyperthreading on linux

How can I get the true usage of a multicore hyperthreading enabled cpu? For example lets consider a 2 core CPU, expressing 4 virtual cores. A single threaded workload would now show up as 100% in ...
1
vote
2answers
38 views

how to make top show multiple CPUs (no toggling)

Is there any way to make top show multiple CPUs by default? I know how to toggle (1) But I'm running it on batch mode and the output is redirected to a file.
1
vote
2answers
553 views

`free -m` shows a program on linux use 322M ram, but `top` show it use 58M, why?

I have a 512M vps box on burst.net, and which has no swap. My os is centos 6.x x64. When it started, it only used 58M ram. $ free -m: total used free shared buffers ...
5
votes
1answer
350 views

Sorted tree view in htop or alternative?

I am running a Debian flavor of Linux, and I use htop to keep track of memory usage, since it is more detailed than top. I can't seem to get it to sort by memory and display process trees at the same ...
3
votes
1answer
1k views

Why is the kernel and the watchdogs consuming all the CPU?

I run a bunch of heavy user space processes on a powerful Xeon machine (32 virtual processors according to /proc/cpuinfo). The CPU load is normally around 30 and the machine feel responsive, but later ...
2
votes
1answer
730 views

iotop complains “CONFIG_TASK_DELAY_ACCT not enabled in kernel” only for specific process

I'm trying to use iotop to determine whether the CPUs are waiting on I/O at any point for a specific program called bwa (it's a next-generation sequence alignment program). If I start iotop without ...
2
votes
1answer
2k views

Weird Apache error - Apache hangs & needs restarting regularly

I've been recently receiving this weird error where Apache just becomes unresponsive and completely stops until it is manually restarted. It gets to a point where I can not longer retrieve apache ...
2
votes
1answer
468 views

What I should know about memory management?

first of all: I don't use stackadmin or similar so please don't vote for moving there, I'm reading man top and paper "what every programmer should know about memory ..." I need really simple ...
1
vote
1answer
174 views

Low load average with plenty of cpu-intersive processes

I see loadavg at about 1 with at least 3 processes running at full tile. How can that be? top - 11:48:32 up 147 days, 5:38, 8 users, load average: 1.08, 1.11, 1.05 Tasks: 416 total, 4 running, ...
1
vote
1answer
224 views

Is it normal to overworking of just one CPU when using openMP

When I use OpenMP in FORTRAN to parallelize a program on linux, ' top' command show me just one processor working ~%800 instead of ~%100 x 8 processors. Is it a expected situation ?
0
votes
1answer
9 views

What's the equivalent of top -H -p <pid> on OS X?

I need to monitor the CPU usage of threads created by a given process. In *nix one can use top -H -p <pid>, but that not available in OS X. An equivalent of ps -eLo ...
0
votes
1answer
36 views

Using `top` to output only the running processes, PIDs and users?

I'd like to run top -n 1 so that it only outputs a list of running processes, their PIDs and the user that has run them (the "COMMAND", "PID" and "USER" columns). I don't need any of the other ...
0
votes
1answer
37 views

How to know, which process had accessed the harddrive last time and when?

How to know, which process had accessed the harddrive last time and when? Like ntopng with "last seen", but in local? The question is about Linux.
0
votes
1answer
171 views

Iostat and top show static resource usage on first value

For one of my projects, I need to obtain resource (CPU, I/O and disk-space) usage programatically. Currently I'm running shell commands (iostat) and parsing the results which works relatively well ...
0
votes
1answer
346 views

pidstat -u -I shows cpu usage 385%

I have a guest running in qemu doing linux kernel compilation. From host, I am watching its usage with below command pidstat 4 -p pid_of_process -u -I -I flag should average out for all number of ...
0
votes
1answer
2k views

Top command cache vs free memory

When I am running top command (on embedded system with 64 MB RAM) I am getting below description on total memory usage: "Mem: 43468K used, 968K free, 0K shrd, 1280K buff, 21896K cached" It looks ...
2
votes
0answers
275 views

CPU usage according to lxde applet and task manager is different than top

The CPU usage in top (htop) appears normal but the task manager and lxde CPU applet don't. Here is a screenshot: This is Lubuntu 12.04 Is this a bug?
1
vote
0answers
16 views

How to choose columns for top command in batch mode?

$ top -bn1 | head top - 15:16:52 up 11 days, 5:01, 4 users, load average: 0,00, 0,03, 0,11 Tasks: 411 total, 1 running, 408 sleeping, 0 stopped, 2 zombie %Cpu(s): 4,5 us, 0,6 sy, 0,0 ni, ...
1
vote
0answers
40 views

Top -l returning always 0.0 CPU usage when requesting single PID

On Mac OS X 10.9 (Mavericks) & 10.10 Yosemite I’m unable to get the correct CPU usage for a single process using the top -l command for example top -l 1 -ncols 3 -pid <pid> Even though I ...
1
vote
0answers
754 views

atop - next page in process list, same processes

I use atop logs to examine state of my server. I am confused next page option: ^F - show next page in the process-list (forward) atop shows me a process list as follows: 21559 ... 2013/03/13 ...
1
vote
0answers
395 views

PStree with memory use?

Is there any utility out there for linux that will give me a PStree with memory use per process? I guess it's possible in theory to grab a pstree with pids, then comb ps itself for the memory use for ...
0
votes
0answers
20 views

Gnome 3 on openSuse 42.1 : “sleep 1” Command High CPU Usage

I am experiencing intense cycles of high CPU usage on my openSuse laptop. I have noticed my browser intermittently freezing up (and my fan speeding up) and I checked htop and this is what it looks ...
0
votes
0answers
49 views

What kswapd is doing when there is no swap

The top look like this: KiB Mem : 3989652 total, 30976 free, 1480440 used, 2478236 buff/cache KiB Swap: 0 total, 0 free, 0 used. 2276236 avail Mem PID USER PR NI ...
0
votes
0answers
30 views

Linux top (procps) discrepancy in numbering of CPUs for process list vs summary

I am using the top utility on a CentOS 6.7 system (procps version 3.2.8) and am observing inconsistent numbering in its output. My box has an Intel(R) Xeon(R) CPU E5-2690 v2 which has 10 cores with ...
0
votes
0answers
69 views

how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?

I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for ...
0
votes
0answers
29 views

High load after killing processes

My Linux home server (a RPi 2 with Raspbian) had a script running every 5 minutes from a cron job (an old rpi2pachube.sh). It usually runs a Transmission daemon. I just discovered that that script ...
0
votes
0answers
377 views

99% used memory, but 70% of unused allocated memory and 97% swap available: what can I do?

In a server with 48GB of RAM, when I run top, I see that less than 500 MB are free (1%), whereas when I sum up the column of % of memory used by each process, it is around 30%. Since only the 2.7% of ...
0
votes
0answers
130 views

Top missing some processes

I'm getting weird behavior using top in Arch Linux. When filtering by user (fred) I get a different list of processes depending on the sort order. In descending PID order: PID USER %CPU %MEM ...
0
votes
0answers
199 views

I want to see what processes do most of disk writes in Mac OS X

I run Mac OS X 10.8.2 and I want to find out what processes do most of disk writes. Ideally, I would like to see a complete report for a period of say 10 hours, with sorted data showing top ...