Questions tagged [top]

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

Filter by
Sorted by
Tagged with
-2
votes
0answers
25 views

Remove special characters while redirecting top command

Command used to redirect (as root): top -b n1 > 1.txt When I open 1.txt using vi I see: ^[[H^[[2J^[(B^[[mtop - 10:04:56 up 4 days, 5:58, 37 users, load average: 1.80, 1.96, 1.80^[(B^[[m^[[39;49m^...
0
votes
1answer
19 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
vote
1answer
45 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
23 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
22 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
24 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 ...
7
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
69 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
99 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
27 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
23 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
40 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
7 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
219 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
12 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
0answers
11 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
289 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
37 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
68 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
43 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
327 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
98 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?
0
votes
0answers
53 views

Enhance the CPU utilization in Linux

I'm using the below excellent command from this thread, and I want to enhance it a bit using your help. I will have a jenkins pipeline, which will run the below command every X minute: CPU_USAGE=$(...
2
votes
1answer
278 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
45 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
0answers
17 views

Load balancing tactic on Fedora

(1) Currently I am running Fedora Release 29. About 5 years back, I used to run CentOS 5. The machine has 32 cores. (2) When I used to run some data crunching scripts on CentOS 5, each script used to ...
0
votes
1answer
24 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
679 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
15 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
148 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
174 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 ...
2
votes
4answers
1k 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
68 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
28 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
31 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
632 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
45 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
22 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
1answer
160 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 ...
1
vote
0answers
60 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
167 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
48 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
42 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 ...
0
votes
1answer
3k 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
109 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
172 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
370 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
52 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
46 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
28 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 ...

1
2 3 4 5
9