Questions tagged [top]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

How to add width to a specific column in TOP

I would like to have the nTH (Number of threads column) wider on the top output I have configured. right now it is truncated a 4 place value (2K+ thread count). to 28+ I would like it to display all ...
0
votes
1answer
22 views

What's the difference between memory shown with the free command and the top command? [duplicate]

I am new to running a linux server and wanted to know the difference between the total memory shown with the top command (which appears to be 78GB) and the free command which shows that I have 743GB ...
-2
votes
0answers
19 views

Alibaba Cloud Monitor agent VS top command. Who should I trust?

Alibaba agent says the system CPU is hitting over 90% But when I login to the system and check CPU with top command, it says it's around 60%. This repeatedly happens but I don't know which one to ...
0
votes
0answers
37 views

Equivalent of nvtop (NVIDIA graphics cards) for AMD graphics card on MacOS Big Sur 11.1

I have a AMD Radeon Pro 5600M 8 Go graphic card on my MacBook pro 16" and I would like to know if there exists a tool like nvtop for AMD cards on MacOS Big Sur : this would be for seeing the ...
0
votes
0answers
23 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 ...
0
votes
2answers
59 views

Unix Commands Questions - mv, pwd, chmod, and others

I wanted to make sure Im matching the correct command to the description, including possible tags I may need and I'd really appreciate if someone could confirm them for me: Show file permissions for ...
1
vote
1answer
20 views

Is RAM usage of IPC a part of the RAM usage of a program

I'm learning how to use Message Queue in Linux and I've found a simple example: https://www.geeksforgeeks.org/ipc-using-message-queues/. With the reader and writer in this link, I can read and write ...
2
votes
1answer
255 views

Firefox taking 200+% CPU Usage

What is wrong with firefox (Web content)? Is this an issue? Is there a way to reduce it? This 'Web content' always pops-up when I start Firefox (I guess these are different tabs because I closed this ...
0
votes
1answer
57 views

Difference between CPU usage in top and /proc/stat

I'm trying to write a little script that, among other things, calculates the cpu usage by reading /proc/stat, and I can't seem to get consistent results. I'm basically doing a grep cpu /proc/stat and ...
0
votes
1answer
43 views

What value of “wa” from the top command is too high?

I have a server with 64 GB of ram, 16 CPU cores and an SSD drive. I am running a relational database on the machine. I would like to increase the writes to the database, and my guess would be that the ...
1
vote
1answer
12 views

How to use top or htop to gather filtered time series

My goal is to track the resource usage of a certain command in a easily parse-able time-series. Here's an example where I'm tracking all the node commands for 3 batches: top -b -n3 | grep node ...
0
votes
1answer
138 views

How come the top command displays >80% CPU idle time but individual processes use >80% CPU?

Please see screenshot below. The values highlighted jump between 80 and 95 percent. As you can see, the postgres process is taking up all the CPU. However, the user processes percentage is only 5%. ...
0
votes
0answers
12 views

TOP/FREE into log file

I'm running Centos 7 and I want to store TOP command into a file ( LOG ) during 24 hours or more. I have something strange running in the VPS on OPENVZ container with CWPanel which have 16 CPU Cores ...
0
votes
0answers
22 views

To read kernel space process

Can I use the following command to read all (including user space and kernel space) processes ps aux And use the following command to read all (including both user space and kernel space) processes ...
0
votes
1answer
39 views

get the wrong value when trying to get it by column name and process name

I'm writing a script to monitor CPU and MEMORY utilization during stability test and in the end I want to present it in a graph or another visual tool. to do so I'm trying to extract %CPU and %MEM ...
6
votes
1answer
190 views

How to make `top` only display a group of processes matching a specific pattern?

I want to show all processes whose command line includes .*git.* using top. I've considered the following command: top -p $(pgrep -d',' -f '.*git.*') However, the above command has several caveats: ...
0
votes
1answer
50 views

Why process is using more than 100% of CPU

I need to know why those processes are using so many CPUs. Are there any commands or tools to check? PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...
0
votes
1answer
26 views

Differences between swap part in top command vs swap -l command

I have a system running with 256Gb RAM. My swap space is getting exhausted due to some process. So as a diagnostics, we put a crontab to monitor the usage and space. This is where I am confused. The ...
-1
votes
1answer
57 views

How to get number of threads/tasks per core in Linux?

As you may know, in Linux, each CPU core has its own run queue. How can I get the number of threads currently running on each core in Linux (Ubuntu)?
0
votes
0answers
24 views

Opening top with interactive interface option

On a SUSE Linux Enteprise 12 system, I'm trying to out the top command + the interactive interface option 1 but can't seem to figure out how to 'send' the 1 option. The 1 option gives you an overview ...
1
vote
1answer
31 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 ...
1
vote
2answers
33 views

Need to get average waiting time for a month

I'm not much familiar with Linux. So, it might be an easy question for everyone else. When we run top c command - we get average waiting time(wa) on server for current state. I need to know how ...
6
votes
2answers
3k views

Does Pulseaudio leak memory?

I invoked the top command and got this: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3433 klutt 20 0 4790760 1.0g 282208 S 8.3 4.2 1261:...
0
votes
0answers
282 views

fatal: division by zero attempted

The below command is successful if run in a shell script. top -n 1 | awk 'FNR ==4 {print $5/$3*100}' 67.7902 It does not work, however, if run from a cron job. Hence I changed the command but now ...
0
votes
1answer
632 views

kswapd0 in ubuntu slows down the system

We don't have any service running in the ubuntu but currently, we see the system becomes very slow from the morning, When I tried top command, I see there are two new services running like below, top ...
0
votes
0answers
31 views

CPU load and CPU usage impact on processes

I have looked into a fair bit of online forums and blogs to understand the impact of CPU load and CPU usage on processes. By CPU Load I mean the Load average which appears in top command. 1min, 5min, ...
4
votes
1answer
26 views

is there a Linux command like top to view CPU utilization in the Past?

If I use the top -i in Red Hat 7.4, I can view CPU utilization and the PID of the respective process in real time. Is there a way to view a capture of CPU utilization and PID for a date/time in the ...
0
votes
1answer
148 views

Linux “top” command: What are “be” and “un” (for CPU usage)?

This question complements Linux "top" command: What are us, sy, ni, id, wa, hi, si and st (for CPU usage)?. In Ubuntu Xenial the top gives e.g.: %CPU(s): 0,6 be, 0,1 sy, 1,5 ni, 97,6 ...
0
votes
0answers
8 views

Which output column of the top utility corresponds to the “physical memory” consumption stated by the Windows 10 task manager?

In top, I've got the VIRT and RES columns denoting RAM consumption: top - 21:43:27 up 38 min, 2 users, load average: 0,97, 0,72, 0,48 Tasks: 120 total, 1 running, 65 sleeping, 0 stopped, 0 ...
4
votes
2answers
422 views

What is the “debian-+” user?

While watching top some process flashed before my eyes with strange USER-column debian-+. I checked that this particular process belongs to /usr/bin/tor. But I can't see the user debian-+ in Linux ...
0
votes
0answers
18 views

How to run top for one iteration, -n flag not working

I am running top and only want a snapshot of the CPU usage values at the current moment so I tried using top -n 1 | grep "%CPU(s). However, top outputs the same exact values every single time I run it....
0
votes
1answer
33 views

Linux top Single/Separate-Cpu-States

Is it possible to execute Linux top from console with Single-Cpu-States (without clicking 1 after top executes), even if someone set/saved /root/.toprc to run top with Separate-Cpu-States? I was ...
0
votes
0answers
637 views

Getting this weird error in zsh shell 'top: failed tty set: Interrupted system call'

nano works fine if I try to run in the background [~]$ nano & [1] 739 [~]$ [1] + 739 suspended (tty output) nano [~]$ fg [1] + 739 continued nano But if I try to run top in this way then it ...
1
vote
1answer
113 views

Linux swap space usage not freed

i received alerts on one of my systems (RHEL6) saying that it had a high swap space usage. after looking at the VM, i can indeed see that the swap is fully utilized, while we have more than enough ...
1
vote
1answer
332 views

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

When checking the memory usage of a process I see that ps command shows a RSS value which is different than memory shown in top: $> ps e -o command,vsize,rss,%mem|grep "myapplication"|head -n 1 ...
2
votes
0answers
45 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 ...
2
votes
2answers
915 views

Display PPID and output to file using top

I am trying to monitor the CPU, RAM and computing time of a process, and all the children processes that it generates, using the Linux top command. I found that I could store the output of the top ...
1
vote
1answer
183 views

what does htop stand for in Linux?

Can someone please explain to me what htop mean? or refer me to a resource that explains it NOT tell me how to use it?
2
votes
1answer
524 views

Why are `top` CPU numbers different from those of System Monitor and Conky Process Panel?

When my laptop gets slow for a moment during somewhat heavier processing I expect to see higher numbers (for CPU use) than what I in fact see in the conky Process Panel that I have on the desktop and ...
2
votes
2answers
87 views

How can I view the full command in top?

I've been using top with -c to view the command that started the process. Some commands with long argument lists get cut off though. Is there a way to see these on full? On screen or written to a file ...
0
votes
1answer
42 views

`top` – Any Shortcut for Showing Only Current User’s Processes?

When I run top, after having looked at all currently running processes, I often want to filter down to only my own processes. So I hit u, type my user name and hit Enter. However, in our company, ...
0
votes
1answer
1k views

top: failed tty get

I am running following script to monitor some processes and store the output in html file. But on running, it gives the error top: failed tty get. Here is the script: var=4 while [ $var -ge 0 ] do `...
1
vote
1answer
24 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
1answer
494 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
361 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 ...
3
votes
4answers
2k 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
1answer
30 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
32 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
1k 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 ...
1
vote
1answer
55 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 ...

1
2 3 4 5
9