Questions tagged [top]
Top is a UNIX program that shows system usage in real time.
44
questions with no upvoted or accepted answers
7
votes
0
answers
2k
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 ...
4
votes
1
answer
2k
views
top equivalent to show I/O per process (per second) on mac/osx
Is there a top-like (visual) tool which can show per process disk I/O (kb/sec)?
The question was already asked at Monitor disk activity, á la top, or nettop (per process) on a Mac? and What'...
3
votes
0
answers
169
views
What is compressed memory expressed as in relation to memory?
Compressed memory is obviously memory that is compressed to save space, but the macOS utility Activity Monitor and the UNIX utility top are ambiguous about what compressed memory is expressed as in ...
2
votes
0
answers
202
views
htop show different cpu usage with top
I'm running fedora in virtualbox with 2 cores. a.out is just a simple single-threaded program. I don't know why htop gives 200% CPU.
2
votes
0
answers
745
views
bashtop and bpytop do not display properly in putty
I have installed bashtop or bpytop (on a minimal CentOS install) but I just get a jumbled mess of colour blocks on the screen. I've made sure to do sudo yum upgrade and rebooted, but still garbled ...
2
votes
1
answer
3k
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
0
answers
548
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?
2
votes
1
answer
597
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 a simple ...
1
vote
0
answers
111
views
RHEL7 - High CPU load when write to NAS
I do not understand, what is the reason for very high "load average" reported by top.
This is RHEL 7. The problem is repeatable. We have one remote NAS and when one user-space process start ...
1
vote
1
answer
1k
views
What is the command to see what files in linux is currently being written or read?
Just like top command which tells what process is running in the system and what is it doing like
which process is running and taking CPU. I want to know in the running system what currently the ...
1
vote
0
answers
39
views
How to get just the command's filename instead of the full path in the "Command" field of glances?
glances show the full path and all arguments of the command of each process in the Command column, something like this:
520M 51.6M 14136 user 0:46 1 0 R 0 0 /usr/share/...
1
vote
0
answers
110
views
Weird numbers from top command
I searched a lot on Google about my problem and found some interesting responses (many of them on SuperUser itself) but nothing that could explain what is happening to me.
I wanted to check the CPU ...
1
vote
0
answers
297
views
How to ssh in, start top, and close ssh session with a custom ~/.toprc
If I log into my remote host via ssh and run top, it picks up the ~/.toprc configuration file. I can also run the following command successfully
ssh -t <user>@<host> "top -b > top.dat"
...
1
vote
0
answers
40
views
How to interpret the results from calling top in terminal
After running $ top I've noticed that the white values are always significantly larger than the red, which seems strange, but while running no programs except for firefox quantum, the above image was ...
1
vote
0
answers
268
views
How to save the output of top command in XML format?
top -o %MEM -b > file.txt
The file.txt is like:
top - 15:49:36 up 32 min, 2 users, load average: 1.56, 1.40, 1.01
Tasks: 83 total, 2 running, 79 sleeping, 2 stopped, 0 zombie
%Cpu(s): ...
1
vote
1
answer
166
views
Size of network packets displayed in top command
I want to calculate the network(in & out) bytes.
I used nettop but it's not working as expected like mentioned here.
So, I moved to top. The output shows total number of packets and total size.
...
1
vote
0
answers
1k
views
Which is correct: OSX Activity Monitor Swap Space Used Zero or Bash TOP command Zero Free?
I have several similarly configured macs, osx/macos 10.12.3, used as Jenkins followers.
In checking out another issue, I noticed Jenkins' report of its hardware status, claims there are 0 bytes of ...
1
vote
1
answer
1k
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 ...
1
vote
0
answers
94
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
1
answer
322
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
0
answers
3k
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
1
answer
410
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 ?
1
vote
2
answers
158
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
2
answers
594
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 ...
0
votes
2
answers
32
views
Processes memory don't add up in top
I'm having hard time understanding memory usage reported by top. The memory summary section lists the following. All numbers in MiB.
MiB Mem : 31884.1 total, 13562.7 free, 7881.9 used, 10439.4 ...
0
votes
0
answers
34
views
Differences between STOPPED in top command and STOPPED in ps
I have a running script in a docker container. After a while, I found that the processes seemed to be in stuck when I used ps -ef command, since the TIME field for those processes were stuck in a ...
0
votes
1
answer
130
views
is it possible to capture output of top -c -n1 -b into a text file - but preserve the full output ( i.e not truncated at right side) via shell
I used top -c -n1 -b | tail -18 > topout.txt successfully.
the topout.txt shows me full output of process names/command used.
But - once I copy this line of code in a .sh file and run via crontab ...
0
votes
0
answers
118
views
Processes on a CPU
How do I monitor/list the processes currently running on a specific CPU core. Basically I'm looking for an output similar to 'top' or 'htop' command but filtered for a specific CPU core id. Or the ...
0
votes
1
answer
1k
views
How to sort output of top command based on nice value?
We can use Shift+p to sort on basic of cpu usage, Shift+r to sort on basis of pid & Shift+m on basis of memory utilisation.
How to sort output of top command based on nice value?
0
votes
0
answers
900
views
WA% in top command
Can someone explain what does the WA% command mean? I've gone thru several SO questions but my doubt still remains
WA is the amount of CPU time that was waiting on IO
How does CPU ever wait on an IO? ...
0
votes
0
answers
183
views
su processes spawning with high CPU (Debian 9)
I am running a VM on Google Cloud with Debian 9. I should be the only user with access to the VM.
Every so often the Web application I am running (phpbb) becomes very slow.
When I log into to look at ...
0
votes
1
answer
36
views
/usr/bin/top OS X 10.15.7 takes 15 seconds to start then uses 33% CPU
OS X 10.13 /usr/bin/top would start instantly and takes a couple % CPU at best. After upgrading to 10.15.7 Catalina, it takes literally 15 seconds for the proc info to come up and it is at the top of ...
0
votes
0
answers
248
views
What is the real command to know the total real time CPU % status on Linux env and what is the ideal value
I understood that top and htop give a lot of info in real-time on the server status. But what really gives me the total CPU of the server? can I rely on the id column from the top command:
%Cpu(s): ...
0
votes
1
answer
93
views
Piping top to text via with crontab and full message?
I am running this:
top -b -n 1 -o %MEM > /home/me/top/top.`date +\%F.\%H\%M`.txt
Which works fine when I run it, but when I put in crontab for every 10 mins, the COMMAND section is always cut off,...
0
votes
1
answer
2k
views
How to tell if a process is running in the host or in a docker container
I have a lot of gitlab processes, but gitlab is not installed in the host:
» ps -ef | grep -c gitlab
61
Those processes, at first sight, look like normal processes:
» ps -ef | grep gitlab | head
...
0
votes
0
answers
361
views
Centos Web Server laravel slow site
I have a problem with memory on my centos server when I reboot the server it is fine, oh and by the way, this server is hosting only one website with Apache web server and MySQL as the database. after ...
0
votes
0
answers
84
views
where is all my memory in ubuntu?
When I do top it says KiB Mem: 15396812 total and 14917020 used. Divide those into one another and you get about 96.8% memory usage.
BUT... in the process list, in the %MEM column it shows 40.5% ...
0
votes
0
answers
1k
views
CPU Usage of individual processes via TOP/Dumpsys cpuinfo
Context: When I run an Android App alone, I get a CPU Usage of 20% (using dumpsys cpuinfo). However, when I run another app in parallel with it, then the CPU Usages goes down, lets say to 13-12%. I ...
0
votes
2
answers
457
views
How do I use top (or equivalent) to determine if a process is behaving badly?
Are there indicators for when a process has "gone over to the dark side"?
I feel that just using MEM% and CPU% are poor indicators for detecting things such as memory leaks (or other problems, ...
0
votes
0
answers
1k
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
1
answer
81
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
0
answers
649
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
1
answer
1k
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
0
answers
317
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 performers....