Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [top]

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

106 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
273 views

iotop. Don't remove exited processes/threads from the list

When run # iotop -ao, a process/thread disappears from the list if the process exits and the data on it is lost from the list. How to make it stay on the list?
linuxuser's user avatar
  • 113
5 votes
0 answers
3k views

iowait monitoring in top on OSX/iMac

I'm trying to monitor the performance of a process on OSX 10 (iMac), specifically whether I/O is currently a bottleneck or not. I don't use the machine, hence I need something simple that the user can ...
Nemo's user avatar
  • 584
5 votes
0 answers
2k views

Memory consumption over variable period of time

There are a number of questions on this StackExchange about memory consumption, notably: How to check which process is using most memory How to display top results sorted by memory usage in real ...
blong's user avatar
  • 209
5 votes
1 answer
2k views

Why nautilus in background takes so much IO and CPU when login, and how to resolve that, or is that a bug?

I'm using Arch Linux for some time. I find nautilus will be running automatically when I login because it's used for handling desktop's behavior. If I kill it, then trash icon and all other file's ...
TorosFanny's user avatar
4 votes
1 answer
2k views

System Usage 80% and User CPU usage 20%

Company purchased HP Gen 9 Server to be used for Oracle Applications. Today while doing daily system check Top show that System Area CPU Usage is 80%(Certainly not normal)while User Area Usage is 17-...
OmiPenguin's user avatar
  • 4,328
4 votes
1 answer
535 views

Why is CPU usage/time not showing in process information?

When I invoke top, the %CPU and TIME+ columns appear to be frozen and never update. Instead, the first few lines of the process list always look like this: PID USER PR NI VIRT RES ...
Amaroid's user avatar
  • 41
4 votes
0 answers
882 views

Top forest view with filter, can I include all children?

If I'm using top in "forest" mode (V) and I restrict by PID (o PID=12345), can I also get top to show all the child processes in the same view? Ubuntu, top from procps-ng version 3.3.9
dpb's user avatar
  • 145
3 votes
0 answers
2k views

Why is this Linux process running so slow?

I've got a Python process on my Ubuntu 19.04 system that doesn't seem to be memory starved, yet is running a lot slower than I expect. The system has 96 GB of RAM plus 96 GB of swap. This process is ...
Brent Baccala's user avatar
3 votes
1 answer
1k views

How can I show the full process name in iotop?

I am using iotop to see which processes are reading from the disk. The process name column is small and some of the names are truncated: gvfsd-tra~ec_spaw/1 gnome-sof~n-service gnome-key~1,secrets ...
newguy's user avatar
  • 131
3 votes
2 answers
2k views

Tracking/Monitoring Short-Lived CPU-Intensive Process on one CPU

So I've been working with this issue for some time now, and I'm having trouble finding the tools to troubleshoot this problem, which I have to imagine exist. So here's the basics of my problem: We ...
prelic's user avatar
  • 156
3 votes
0 answers
57 views

Identify process

Every couple of minutes my Mac OSX machine starts running a process that consumes 10% of the CPU. It runs for a couple of seconds and then stops. I can see the process coming up in 'Top', but the name ...
Vincent's user avatar
  • 2,928
3 votes
0 answers
934 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 ...
New to Rails's user avatar
2 votes
0 answers
332 views

ssh shell freezes with incomplete output after running top or tmux a

I'm sshing from my Mac into an Ubuntu Server 20.04 instance (using key-based authentication). When I type any variety of commands, I get partial output, and then the shell becomes unresponsive to any ...
mark's user avatar
  • 165
2 votes
1 answer
497 views

How can I use htop or top to monitor CPUs' usage and output the infomation to a file?

I want to monitor the CPUs' usage when a program is running. I came out with the idea, that htop has the CPU usage information on the top. I wonder if I can somehow run htop, make it refresh every 0.1 ...
Erwin Zangwill's user avatar
2 votes
0 answers
252 views

python psutil vs top

I'm confused about the difference between CPU percentage as measured by the top command and by the psutil.cpu_percent Here are two samples from the same second : Python >>> while pct := ...
Stephen Boston's user avatar
2 votes
1 answer
395 views

Linux CPU usage appears incorrect

I'm familiar with how the top is supposed to work. The individual processes are relative to 1 vcpu, and the summary is relative to all vcpus. I have a process that does a lot of sleeping, and I'm ...
GoldenNewby's user avatar
2 votes
0 answers
514 views

Is there a program that will show me the average CPU usage over the last minute for every process?

One feature I miss from Windows is that the Resource Monitor program would show, among other statistics, the average CPU usage over the last minute for each program. On Linux I use either Gnome system ...
A. Kriegman's user avatar
2 votes
0 answers
2k views

TOP says 90% CPU Idle, but processes showing 100% usage

I am experiencing a strange issue on my Linux machine. I am using 6 CPUs, 12 Hyper threads. Top summary tab shows 90% idle. For 12 threads, 1200% should me the max usage. For 90% idle individual ...
Gopinath Ramasamy's user avatar
2 votes
0 answers
74 views

Command result at the top of terminal

Is there a way to display the command result at the top of the terminal and the prompt below it? So that I could see the result, e.g. while true; do sensors | grep temp1; sleep 2; done and ...
Paweł Selen's user avatar
2 votes
0 answers
48 views

Incorrect Top? or manpage?

According to top's manpage: 16. PR -- Priority The scheduling priority of the task. If you see `rt' in this field, it means the task is running under real time scheduling priority. ...
HCSF's user avatar
  • 213
2 votes
1 answer
113 views

Filter top(1) display by COMMAND=abc OR COMMAND=xyz

I'm experimenting with the top(1) program, and I'm trying to figure out how to display only specified program names. For example, if I invoke a command line like $ ssh localhost sleep 15 I'd like to ...
Jim Fischer's user avatar
2 votes
1 answer
967 views

Why is ps -u command not working?

When I use the 'top' command I get 10366 mithus 25 0 11120 1044 884 R 99.9 0.0 67:14.35 gm when I start a process using nohup ./gm &. showing that a process 'gm' is running. ...
Solidification's user avatar
2 votes
1 answer
94 views

List top processes of one user across machines?

Is there a cross-machine top -u myUsername command that I can see my processes (along with their CPU usages) across all the specified machines? If not, I have an idea in mind. I can write a script ...
Sibbs Gambling's user avatar
2 votes
0 answers
502 views

Can I see finger's user name in htop?

top/htop show userids. On our shared HPC, these are cryptic. I then need to manually do finger <username> to figure out who the user is. Is there a way of getting top or htop to include this ...
Yannick Wurm's user avatar
2 votes
1 answer
976 views

Does /usr/bin/top tool aggregate CPU and GPU usage in a single value?

I'm recently trying some crypto-coin mining and both on my desktop equipped with a decent GPU as well as on an AWS virtual machine with GPU support, CPU time is always reported at 99% by /usr/bin/top ...
funkoolow's user avatar
  • 120
2 votes
0 answers
3k views

Which process is causing high software interrupts?

I am running virtual machines on a physical host using devstack and I see very high si usage on one core. Is there a way to find out which process is responsible for this high si usage?
Wajahat's user avatar
  • 307
2 votes
0 answers
733 views

htop CPU time vs top CPU time

Both of the following pictures were taken with just seconds in between. htop shows 8:59.27 as consumed CPU time, while top shows it as 14:45:50 which seems legit. That's OS X 10.10 running on eight ...
bot47's user avatar
  • 1,288
2 votes
0 answers
1k views

How can the RES memory reported for a Java process be higher than the VIRT memory?

I've been monitoring a Java process (Oracle Weblogic) using TOP and have observed that sometimes the following will happen: RES will increase from it's usual stable level of 2,097,152 KB up to almost ...
Anon Gordon's user avatar
2 votes
1 answer
2k views

Average CPU utilization of a process

I am trying to conduct some experiments for determining what the CPU utilization of my process is. I am familiar with the top and ps commands. Which would be a better solution for getting the average ...
RagHaven's user avatar
  • 131
2 votes
0 answers
2k views

What's limiting my CPU usage in forked processes?

I am running some long-running programs (for scientific purposes) on a multi-core Linux box. The processes are controlled by a small daemon which restarts the next job when one finishes (I run 3-6 at ...
tehwalrus's user avatar
  • 161
2 votes
3 answers
201 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, 0....
cifer's user avatar
  • 611
2 votes
1 answer
4k 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.
trante's user avatar
  • 211
2 votes
1 answer
2k 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 ...
dreamzor's user avatar
  • 121
1 vote
0 answers
12 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/...
Pierre's user avatar
  • 1,793
1 vote
0 answers
37 views

How do i list all consuming program by cpu, memory

I wanna list down all consuming cpu, memory programs. there are bunch of top and questions about it, but all of them not list them by programs. like for example a python webservice could spawn ...
TomSawyer's user avatar
  • 133
1 vote
0 answers
61 views

macOS: ps's columns "nswap nvcsw majflt minflt" are always empty, values are correct in top

Is there a system setting to enable reporting "nswap nvcsw majflt minflt" for ps on macOS? These fields are listed in the manual installed on macOS, but their column is always empty (shows -)...
codepoet's user avatar
  • 596
1 vote
0 answers
1k views

How can I hide all the idle processes in htop?

top hides all the idle processes with the -i flag. From man of the top: PERFORMANCE/ACCURACY TRADEOFF Calculating detailed memory statistics is fundamentally resource-intensive. To reduce the ...
alper's user avatar
  • 467
1 vote
0 answers
373 views

load average calculation using top

I'm working on performance testing of application and would like to validate the performance of the server during testing. Currently, the server is a 16 multiprocessor with single core on each CPU. I'...
nimmi's user avatar
  • 11
1 vote
0 answers
444 views

Linux top command hang about 25 seconds before works fine

On my Linux server, top command hang about 25 seconds before works fine: $ time top -b -n 1 Output: ... real 0m25.199s user 0m0.018s sys 0m0.014s When top command is hang, I found the ...
Ren's user avatar
  • 273
1 vote
0 answers
158 views

When using atop as a systemd service it only runs and logs to file once

I am on CentOS 7 and using atop v2.6.0 If I run atop manually with the following command everything runs as expected and the log is written to every 10 seconds: /usr/bin/atop -w /var/log/atop/...
Pel's user avatar
  • 11
1 vote
1 answer
111 views

I want to merge the output of top with the start time from ps

I have several services running and a bash script that displays their current state using top e.g. top -b -n1 -p `pgrep -f "proc1|proc2|proc3|proc4|proc5" | tr '\n' ',' | # ...
M3Driver's user avatar
1 vote
0 answers
231 views

How to grep on a ncurses display (refreshed every second)?

When running the useful tool tcptrack in the terminal (over SSH), it displays this: Client Server State Idle A Speed 1.2.3.4:44054 5.5.5.5:443 ...
Basj's user avatar
  • 2,549
1 vote
1 answer
616 views

How to log CPU usage but only when it is high or touching certain treshold ? (+ formatting)

How can we log CPU usage but only when there is a process(s) with utilization above certain threshold (for example 30% or more) ? What i am trying to achieve (with shell script) are more or less like ...
Tommy Aria Pradana's user avatar
1 vote
1 answer
6k views

Why is memory (rss) from ps command different than memory seen in top command?

Here on MacOS Catalina, when checking the memory usage of a process I see that the ps command shows a RSS value which is different from the memory usage shown in top: $> ps e -o command,vsize,rss,%...
codependent's user avatar
1 vote
0 answers
38 views

TOP Data inconsistent Centos

One Process Is showing that is it consuming 2000 percent cpu but in the Overall percentage in TOP command , it is showing only 2-3 percent . Some other info : 1. There are total 32 cores in the ...
Sahil Aggarwal's user avatar
1 vote
0 answers
715 views

htop reports high CPU% for process with low CPU% in visualization

I am trying to get a practical understanding of load in a server application. The application reads a large volume of data on a TCP connection. When I examined CPU utilization with htop, the process ...
jimjiminy's user avatar
1 vote
1 answer
363 views

What (39) processor represents in /proc/[pid[/stat file?

As per procfs man /proc/[pid]/stat (39) processor %d (since Linux 2.2.8) CPU number last executed on. I can see, there is -1 value for some tasks $ cat /proc/1185/task/...
dgfjxcv's user avatar
  • 707
1 vote
0 answers
50 views

Two identical application different cpu usages behavior

I have two openstack instance node1 - 16 vCPU / 16GB memory node2 - 8 vCPU / 8GB memory both machine behind F5 load-balancer (round-robin) and running MongoosIM application, but i am noticing ...
Satish's user avatar
  • 1,652
1 vote
0 answers
730 views

multi-core CPU usage

I am using the Windows Subsystem for Linux (WSL). Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting well confused. I am on a computer with 2 cores and ...
Barbaud Julien's user avatar
1 vote
0 answers
770 views

How to display `top` results sorted by memory usage by a process in KB/MB?

I have known about top command. When I using this command, I got only the memory usage of a process in terms of PERCENTAGE(%MEM) only. Is there any option to get the memory details in terms of Bytes(...
Querier's user avatar
  • 11