Questions tagged [top]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

tracker-extract CPU usage is consistently at ~100%

I have a CentOS 7 machine where tracker-extract is consistently at more than 98% of a CPU core (on top). Looking at journalctl -b, I see numerous lines like: tracker-extract[22061]: unable to create ...
0
votes
0answers
23 views

Within a docker container, top shows the used memory much less than sum of all process virtual memory

We are running a k8s cluster with docker as the container engine. Recently we found that within a particular container, after some operations, the "used" memory can be smaller than the sum of all (in ...
1
vote
1answer
23 views

Why can ec2-user see root processes?

I was under the impression that, for security reasons, one user cannot see processes (and their respective command-lines) run by another user. Why is it when I run top on a Linux 2 AMI I can see root'...
0
votes
1answer
47 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
1answer
55 views

Why can't top find my python processes on ubuntu?

I am running a Kubuntu (ubuntu), and I executed two command-line apps through the terminal. My user is 'martin'. In the 'top' window, i can't see my python3 processes: python3 command-line-1 python3 ...
1
vote
1answer
130 views

SSH refuses to timeout if a top session is open [Linux]

If I ssh to a server and i open top packets are being sent over the network, so the normal ssh timeout(because of idling) will not work. This means an ssh connection can stay open forever if a top ...
0
votes
1answer
71 views

CPU LOAD Average + when to set when threshold

We have a cluster with physical machines HW Each machine contains 32 CPU # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): ...
0
votes
0answers
36 views

What is the difference between PR shown in top output vs PRI shown in ps output

I would assume both to be the same, but on my system these are different. Top displays PR=20,NI=0 while ps displays PRI=80,NI=0. Whats going on here?? Top: PID USER PR NI VIRT RES SHR ...
0
votes
2answers
440 views

Check if a process is running on a remote machine

I am running a python programme on a remote machine using ssh. It includes a timer, so the main body of the code won't do anything until a certain time of the day. I want to check that the code is ...
0
votes
0answers
159 views

osx top command - memory usage in bytes

Is there a option in osx to print stats -"MEM" in bytes. I see that it either prints in M or K which is difficult to parse as I need to check for the unit before grabbing the number.
1
vote
0answers
23 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/...
2
votes
2answers
1k views

List Top 10 CPU and Memory consumption processes - Linux

I am trying to find the top 10 processes which are consuming more CPU and Memory using the command ps -Ao user,uid,comm,pid,pcpu,pmem --sort=-pcpu | head -n 10 But it's not showing the correct data ...
0
votes
1answer
71 views

Understanding Linux CPU usage

I'm stuck with profiling a process of mine, named (see top output) xspectra-frameb. Its inner structure can be summarized as the following: 8 threads are recving bursts of data from socket ...
1
vote
1answer
409 views

What am I seeing in htop on Linux?

Not sure if this is the right place for this question but I'll ask it anyway and see where it lands! I have a node process running on Centos and when I run htop, I see a whole bunch of processes that ...
1
vote
2answers
100 views

System unresponsive, but no CPU load

One of my servers is completely unresponsive: top - 06:16:53 up 2:14, 1 user, load average: 30.95, 29.96, 22.92 Tasks: 168 total, 2 running, 166 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 ...
1
vote
0answers
64 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 ...
0
votes
1answer
155 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
0answers
218 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 ...
1
vote
0answers
127 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" ...
0
votes
0answers
54 views

I am getting an unknown process when i run top in my linux machine

i killed that particular process but when i run "netstat -tunap" command it was there with an ip address and port(178.63.48.196:80) allocated to it -The ip address is changing continuously when i run ...
1
vote
0answers
34 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 ...
3
votes
0answers
136 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 ...
1
vote
0answers
183 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): ...
0
votes
0answers
67 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% ...
1
vote
1answer
66 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. ...
0
votes
0answers
726 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 ...
0
votes
1answer
225 views

Integrating “watch” with “top” logging until finished - HOW?

I stumbled across this link: "watch" the output of a command until a particular string is observed and then exit I know the PID of the process. I want to log the process "resource-...
0
votes
0answers
710 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 ...
12
votes
1answer
25k views

What does TIME+ (cpu time, hundredth) in top mean?

See the example below. Automount is showing 3019:57 in the TIME+ column. Tasks: 241 total, 1 running, 240 sleeping, 0 stopped, 0 zombie Cpu(s): 0.7%us, 0.7%sy, 0.0%ni, 98.5%id, 0.0%wa, 0.1%...
2
votes
1answer
1k views

How is this machine at 100% cpu when there is nothing high on the htop list?

I have a machine that is being slow and htop is telling me that the processor is locked at 100% but all the processes under it seem to be running pretty low CPU usage... How is this possible? Shouldn'...
0
votes
1answer
2k views

Using Linux Top, How do I view the thread count of a process

With ps I can view the NLWP (number light weight processes) with ps -o NLWP. How do I show this column in top? Only interested in the count.
1
vote
1answer
318 views

top memory used and percent don't match

I have an ec2 server and sometimes I have memory issues - I've had the mysql process killed due to out of memory. This breaks my website and game and sometimes it takes me hours or days to notice :(. ...
0
votes
2answers
186 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, ...
3
votes
1answer
612 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'...
1
vote
1answer
991 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 pid,ppid,lwp,nlwp,osz,rss,...
0
votes
1answer
354 views

Find location of process running in top command

When I run 'top' I see a process running named "watchdog" I read up on watchdog via the man page ala Google but I don't have that program installed. I've done a whereis and checked the /dev file to no ...
7
votes
2answers
3k 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, ...
3
votes
1answer
4k 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
506 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 ...
1
vote
1answer
675 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
619 views

Should I trust htop or top when it comes to RES memory?

I am writing a program to test some memory usage metrics on our systems and I want to hit a target memory consumption. You execute my program via meminflate.exe -G 103.1 if you want to take up 103.1 ...
0
votes
1answer
3k views

What would cause a high `%wa` value when there is nothing performing heavy io?

I have a 92.3%wa value on top right now under linux and when I run iotop -a, I see nothing causing heavy io. What might be the cause of the large %wa value and how can I go about diagnosing this? The ...
1
vote
1answer
221 views

how to check how much memory processes take?

As we know in Linux machines, we have RAM memory and swap memory. My first question is: What is the reason that the swap memory is increasing – because high level of using the RAM memory or ...
2
votes
3answers
791 views

Find *where* the executable is for a currently running process

If I have 2 executables (/path/to/gcc/myapp.exe, and /path/to/intel/myapp.exe) where one is compiled with an intel compiler and one is compiled with standard gcc, running both will show up in top as ...
0
votes
1answer
114 views

Why Menu Meter and htop report inconsistent occupied memory and total memory?

On my Macbook Pro running OS X 10.10.3, Menu Meter and htop seem to be reporting inconsistent memory results:
2
votes
1answer
44 views

How can I safely remove timeout from a script?

I started a script with timeout --signal 2 --kill-after 10 14400 and now decided that it should rather run as long as it must, so I need to remove that timeout from the running script. top -p $(...
1
vote
0answers
70 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
2answers
73 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.
0
votes
1answer
133 views

How much time does top command consider while finding CPU usage percentage? [duplicate]

Top gives me an output like: %Cpu(s): 4.7 us, 1.3 sy, 0.0 ni, 93.9 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st if my CPU has spent 4.7% of its time on user processes, how much of time history has it ...
0
votes
1answer
47 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.