Questions tagged [top]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
9 views

Getting error when using FILTERING in a Window on top command

Trying to filter results of top command by Filtering in a Window, pressing o then typing filter, like described in a tutorial here: http://man7.org/linux/man-pages/man1/top.1.html but when I typing ...
0
votes
0answers
21 views

Is there a way to collapse the list of processors in htop?

Now that I have a computer with 64 processors, I have a real display problem with htop. When I look at the screen in my console, all I see are the 64 processors and nothing about what's running (well,...
0
votes
2answers
35 views

Clear up some memory by removing processes shown by Top

I have an old user (bob) in my system. As per output of 'top' it seems that many processes are run by this user (command for most of them is'java'). As I have root access I deleted the user however ...
0
votes
2answers
95 views

Linux Mint - Frontend process, what is it?

when I run top command in my console after fresh start, I have a frontend process that uses a lot of CPU. Does anyone know what it is? Or how to check where it comes from?
0
votes
0answers
13 views

plist-sz value not matching with actual process running

My plist-sz (sar -q) value is around 28000 but when I check ps -ef |wc -l it shows only around 300. What could cause high value of plist-sz?
0
votes
1answer
24 views

Get data about system load in an easy-to-process format

Often I feel the need to run some computation on the data about my system load. For instance about the data that top shows. And possibly iotop and htop as well. Some of the things I'd like to do are ...
1
vote
0answers
26 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 ...
2
votes
2answers
50 views

Formatting data as table with AWK print

I'm trying to write a code to print the top 10 processes running on macOS. But when I run this code top -l 1 -u -o cpu -n10 | awk 'NR==12, NR==22 {print $2,$3,$8}'; the output is not organized in a ...
0
votes
0answers
33 views

What does the output in `top -b -n 1 -p <PID>` mean? [duplicate]

When running top -b -n 1 -p <PID>in Debian 8, what do the outputted elements mean? Example output: $ top -b -n 1 -p 781 top - 14:44:21 up 18:19, 1 user, load average: 0.66, 0.56, 0.52 Tasks: ...
1
vote
1answer
14 views

How do I display the thread / child process count of a process in top?

I know there is a one-line-per-thread view (-H), but the particular threads are not grouped by master process. In fact, I would be completely satisfied with the sole thread count per process (= how ...
0
votes
0answers
109 views

Inconsistent CPU Usage in Top

I'm experiencing very strange behaviour with some hardware we're working on. My setup consists of Linux 4.9.87 w/ SMP & PREEMPT RT on a dual-core iMX6 CPU. The application running on this setup ...
0
votes
0answers
23 views

How does htop calculate times? (Impossible times shown)

I was running what was supposed to be a small make job on a small node in our cluster, but a sorting process seemed to be overwhelming the allocated RAM, so I killed it after 20 hours (same jobs on ...
3
votes
3answers
117 views

Excluding users from the top command

I'm trying to use the top command and exclude two users from showing in the iteration I'm sending to the textfile. I have used the -u='!user' command-line option, but I can only exclude 1 user with ...
0
votes
0answers
44 views

Linux processes - Too large for RAM usage. What is it? [duplicate]

This is what I see in my Linux Debian Server: The values "Size" (1. image) or "VIRT" (2. image) are too big for "RAM usage". What are they?
0
votes
1answer
35 views

top “Command Name” column

On Ubuntu 18.04, I have a C++ compiled program MyServer. top -c shows the "command line" correctly as ./MyServer, but the "command name" with top is shown as "main". I wanted to know how to get ...
1
vote
1answer
526 views

CPU load average + how to get cpu load average for history of X hours

We all know we can get average CPU load as: uptime 10:09:22 up 2 days, 1:44, 1 user, load average: 20.01, 20.03, 22.05 but this shows only load average over the last 1 minute is 22.05 load ...
0
votes
2answers
51 views

List top 5 processes for a specific user

I am trying to get the top five processes of a specific user in a bash: ps -Ao user,uid,comm,pid,pcpu,tty --sort=-pcpu | head -n 6 | grep <username> However, this selects the top 5 processes ...
1
vote
0answers
77 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 ...
3
votes
0answers
103 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 ...
1
vote
1answer
45 views

In the Top program, what does it mean for a process to be in state I?

I'm using Top from the procps-ng package, version 3.3.12. The man page leaves out what the I state stands for 28. S -- Process Status The status of the task which can be one of: D = ...
0
votes
1answer
28 views

How to get server name inline with top output?

I've been given the task to use top(htop is not an option on our system) to monitor CPU usage over time. If a user is on a server and using over 100% for longer than an hour, an email alert will be ...
1
vote
0answers
24 views

Why one application is shown several times in htop? [duplicate]

I run a simple Python script in a docker container (single process, no multiprocessing or multithreading). When looking at it with ps (one instance): root@srv ~# ps -ef | grep homemonitor root ...
2
votes
1answer
105 views

Make usual programs use the alternate screen

This has been annoying me for ages. Even though I use a modern terminal emulator and most CLI programs, such as less and vim, are able to use the alternate screen adequately (i.e. entering it on ...
1
vote
1answer
72 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/...
9
votes
1answer
145 views

List of busiest files

I'm looking for a tool which will list open files sorted by amount of activity in the file. So lsof does not do the job (unless I'm overlooking a way to use lsof). Ideally, the tool should work like ...
0
votes
2answers
213 views

Does Linux kernel 5.0.9 have a memory leak?

likely similar to Linux memory usage higher than sum of processes except that I have observed used memory going both below and above the sum of process RSS by GBs. uname -sr Linux 5.0.9-... cat /...
2
votes
1answer
66 views

How to assign one process on two CPUs

I have an Ubuntu server, which has 16 CPUs. (nproc --all show me 16) I wrote a bash script named test.sh as below: #!/bin/bash while : do echo xxx done I executed it: ./test.sh >/dev/null &...
1
vote
0answers
36 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 ...
0
votes
0answers
16 views

What is the best way to get average aggregation of resource stats in Ubuntu 18?

I am trying to get CPU usage %, RAM usage %, Network usage (receive MBPS, sent MBPS, packets received, packets sent) AVERAGE over a period of time (60 seconds). I have used sysstat and seems to do ...
1
vote
1answer
2k views

“buff/cache” is very high, how I can free it? [duplicate]

The output of the top command shows that 29GB of memory is used by "buff/cache". What does it mean and how I can free it? It is near to 90% of memory.
0
votes
1answer
90 views

Top command output for Virtual or Physical Machine

Does top output display information particular to the VM I am in, or the entire physical machine? top - 17:22:04 up 22:37, 1 user, load average: 72.55, 73.18, 66.84 Tasks: 140 total, 1 running, ...
1
vote
1answer
507 views

top command, why such a big difference between VIRT and RES, while swap is 0?

I've read some posts that says a process's VIRT = RES + SWAP. But look at the screenshot below, the whole system's Swap is 0 (0 used). So I expect each process's VIRT at least ≈ RES. But as you can ...
0
votes
0answers
35 views

Cmd to check pids used by particular cpu's

In our environment we have applications running in servers with 0-3( total 4 cpu's). While seeing 'top' command and choosing 1 option, able to see 4 cpu's ( example: a server has 4 cpu's). In this ...
1
vote
1answer
521 views

User not listed in /etc/passwd

As far as I thought, the list of users for my system can be printed in the terminal with: sed 's/\([^:]*\).*/\1/' /etc/passwd But I have noticed that when I use top In the USER column, my user ...
1
vote
2answers
120 views

Top-like command configurable from command line

For Ubuntu Bionic, is there a tool that will, like top, show various data on processes and refresh automatically, but can be configured from the command line to specify what data (columns) to show?
3
votes
2answers
238 views

differences between `top` and `system-monitor`

I noticed a difference in CPU percentage between two utility: top and gnome-sytem-monitor (but the same happens with htop...) The screenshot shows the issue. You can see as first item both is the ...
3
votes
2answers
66 views

Output redirection is not working with top piped to grep

When I run this command in Linux: $ top -b -d 20 | grep "load average" -A 20 > top.log top.log is always empty. But when I run this command: $ top -b -d 20 | grep "load average" -A 20 | tee top....
0
votes
1answer
375 views

What is the meaning of the R/D flag in ps output?

What is the meaning of R / D from ps ax? Does it indicate a problem? 3 ? R 522:45 [ksoftirqd/0] 4380 ? Rl 1240:31 gdm-session-worker [pam/gdm-launch-environment] 5938 ? ...
0
votes
1answer
62 views

How to format automatically top output for logging?

Currently my top command output is shown as: 14861 root 20 0 0.252t 0.028t 556 S 13.3 92.8 8:45.64 I want the display of this in m. It is presently showing in t. I am getting the above ...
0
votes
0answers
112 views

CPU core is very busy and top shows 0.0 %CPU on it

This Ubuntu server is booted with CPU isolation isolcpus=0-7, so 8 cores from 16 are reserved and the only processes that use them are numbered as worker_0 - worker_7. As can be see by top's per CPU ...
0
votes
2answers
533 views

uptime + cpu load average [closed]

we have the follwing CPU details more lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 32 On-line CPU(s) list: 0-...
1
vote
0answers
309 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 ...
1
vote
0answers
524 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(...
1
vote
2answers
227 views

How can I get CPU overall usage and individual core usage information just once?

Is there a command which can show CPU usage information (both for overall cpu and for individual cores), in a static way (i.e. just once) similar to how free shows memory usage information? When we ...
1
vote
1answer
371 views

How to analyze top command results: CPU & RAM consumption

I am working on ARM-based processor (OS version: Linux 3.4.35) and I need to analyze the processor's performance while some processes are running, by typing top command, I can see some statistics but ...
3
votes
1answer
617 views

htop / top with specifying process name filter on the command line - at program startup?

I'm on Ubuntu 18.04. I'm already aware that I can start htop, and then hit F4 for filter, then type or paste a process name search query (say, gphoto2 for looking for gvfs-gphoto2-volume-monitor....
1
vote
3answers
177 views

How to remove the summary at the beginning of the “top” command in Linux?

I used top -b -n 2 | awk '{if ($9 != 0.0) print $0,sed -n '8,20p'}'>>text.txt , then the output is : top - 16:24:42 up 3:49, 3 users, load average: 0.23, 0.29, 0.31 Threads: 503 total, 2 ...
0
votes
2answers
236 views

Filtering processes with top in FreeBSD

➥ When using top utility to view processes and their activity, how does one filter the list to a subset by name? For example when I want to see only the processes with a name containing postgres or ...
1
vote
1answer
190 views

Why is top command showing users that the who command is not?

Working on a Raspberry Pi 2, running Raspbian GNU/Linux 9 (stretch). I am simply trying to understand why, when I run the top command I can see some users that I cannot see in the who command. Here ...
0
votes
1answer
61 views

How to record PID and its command every 15s?

For troubleshooting purpose, I'd like to record PID and its command every 15s and write them to a text file. The desired output: TimeStamp, PID, Command