Questions tagged [top]
A command-line system monitor tool that produces a frequently-updated list of processes.
496 questions
2 votes
0 answers
50 views
Linux: why is there a CPU% output difference between "top -H -p <pid>" and "mpstat" for CPU-bound multi-thread app?
I'm investigating a difference in behavior of using "top -H -p < pid >" and "mpstat -P ALL 2". My company's app is a multi-threaded process in which we bind each thread to ...
1 vote
1 answer
69 views
Excluding processes by one user in Solaris "top"
Host machine: SunOS 5.11 11.3 sun4v sparc sun4v As an Informix DBA monitoring a system I am trying to see the top users of CPU. In an Informix environment, that slot is hogged by a gazillion ...
1 vote
1 answer
281 views
How to measure actual CPU utilization in Linux for multi core applications?
I have a computation intensive process that I need to run multiple times on a multi-core processor but "top" isn't showing utilization or load in a useful way. For example, imagine my task ...
5 votes
2 answers
472 views
Automatic or manual screen session termination
I've created a screen session and ran rsync within that session: screen -S rsync_backup rsync -rvnc data/ data2 >rsync_out-4.txt 2>rsync_outErr-4.txt I used the top command for progress ...
2 votes
3 answers
169 views
how to auto wrap top command output
When I use the top command in linux terminal: top -c the output like this: top - 21:54:17 up 197 days, 6:34, 1 user, load average: 0.10, 0.65, 1.47 Tasks: 255 total, 1 running, 200 sleeping, 0 ...
7 votes
2 answers
1k views
Understanding Linux 'top' command: Memory vs Swap display format confusion
Does the "avail Mem" value actually relate to physical memory rather than swap, despite being displayed on the swap line? I noticed there's a period at the end of the "swap used" ...
0 votes
1 answer
348 views
Command-line option to disable too many processes in htop
By default, htop shows many more processes than other tools (top, ps). The solution is to press H, as mentionned in Why are there many processes listed under the same title in htop?, to get the "...
1 vote
0 answers
747 views
How to show all users processes using `top -m` command in Alpine Docker container?
I want to watching the processes RSS in alpine container, so I using top -m switch show memory mode. But it shown processes that is current user, not all users processes. Is this behavior by design or ...
7 votes
1 answer
1k views
Understanding top memory bar
I'm trying to switch from using htop to top because a few too many times I have been in servers that don't have the former. When I first type top and enter, the memory usage in shown in MiB: Then I ...
1 vote
1 answer
124 views
How to interpret the RSan memory?
From the man page of top, I found RSan is part of RES (resident memory) as follows. Private | Shared 1 | 2 ...
2 votes
5 answers
2k views
Continuously monitor a process and all its children with `top`?
I want to run a process that spawns children, e.g., for i in {1..4}; do sh -c 'echo $$; for j in {1..3}; do sh -c "echo ...\$\$; sleep 1" done' done and I would like to monitor the ...
0 votes
0 answers
22 views
Process names that begin with "-" [duplicate]
I am using a piece of software that includes a scripting language that has builtins that allow me to call system functions, for example I may write the script: system("whoami") and the ...
1 vote
0 answers
30 views
Script/Daemon to kill specific resource-consuming tools?
I'm working on a SGE linux cluster and beginners often run memory/resource consuming tools on the login node instead of using qsub or qlogin ( https://gridscheduler.sourceforge.net/htmlman/htmlman1/...
0 votes
1 answer
562 views
Finding root cause of high software interrupt percentage on a cloud instance
I have a cloud instance that's showing a weird load pattern when checked with top: top - 21:39:28 up 456 days, 8:39, 2 users, load average: 1.44, 1.19, 1.10 Tasks: 100 total, 1 running, 99 ...
0 votes
1 answer
82 views
getting %CPU value from top for all cores in a system
I have a 4 socket server having 24 core cpu's. 96 cores total. How can I, in RHEL 7/8 Linux, get the value that is %CPU as shown by top for every core in the system? I plan on writing C code that ...