Questions tagged [top]
A command-line system monitor tool that produces a frequently-updated list of processes.
492
questions
7
votes
1
answer
855
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
36
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
136
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
30
views
bash function to monitor resources [duplicate]
I've written the following fn to monitor my cpu usage:
cpu_info() {
local bg \
cpu_usage=$(top -b -n1 | awk '/Cpu\(s\)/ {print $2 + $4}' | awk '{printf "%.0f\n", $1}')...
0
votes
0
answers
16
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 ...
0
votes
0
answers
29
views
top memory summary and process RES summation don't add up
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 ...
1
vote
0
answers
13
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
81
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
34
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 ...
0
votes
1
answer
135
views
What does top KiB Mem percent data mean?
When I use top, the memory data is displayed in the overview area as follows:
KiB Mem : 16092836 total, 143168 free, 11005184 used, 4944484 buff/cache
Then I use m (interactive command) to switch ...
1
vote
0
answers
93
views
htop always show one cpu usage full [closed]
I have a server with two cpus (24 core * 2), recently, I noted that htop always report one cpu is fully usage
But I cant find any threads with highly cpu usage by htop, top or ps -ef
I have tried:
...
0
votes
0
answers
45
views
Why top command shows different results depending on sort mode
When used with -o%CPU:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
58641 mysql 20 0 26.9g 17.0g 21108 S 5800 13.5 2890:39 /usr/sbin/mysqld --basedir=/usr
...
0
votes
0
answers
49
views
Service load is high - service_process listed in top
I can't find any information on service_process which appears intermittently when server load is high.
Is there any information about this process? Is there a way to see which other process is using ...
0
votes
0
answers
62
views
Why is it possible that the combined processes CPU usage is higher than the total CPU usage, as reported by top? [duplicate]
When I check top, with a delay of 0.5 seconds, sometimes the total CPU state percentage is lower than the sum of the CPU usage of individual processes.
Here is an example, where that is observed:
top -...
7
votes
1
answer
2k
views
When redirecting top to a file, why does cat command on that file display output of multiple top attempts?
I am customizing a Linux system with a kernel of 6.4.0, and I have noticed a strange issue. When I execute top > a.txt and then open a window to execute cat a.txt, I find that the cat a.txt result ...