Questions tagged [top]

top is a Unix/Linux/BSD program to show what processing are running. It can show the top users of CPU or memory.

302 questions
0
votes
2 answers

Why linux "top" command shows different CPU utilizations values with only one CPU?

Why does "top" command shows two different values for a Linux server with only just one CPU. I understand that it can differs when there is a multi core processor but in this case I'm using a AWS LightSail $5 instance with only one CPU 512 MB RAM, 1…
Daniel Santos
  • 168
  • 1
  • 9
0
votes
1 answer

High server load on KVM VPS

I have a KVM single core VPS optimized for hosting static content running only Nginx 1.13.8 with SSD and 1GB RAM with a hosting provider on a package of 100 Mbit/s unmetered bandwidth. OS in use is 3.10.0-693.17.1.el7.centos.plus.x86_64 The server…
KDX
  • 233
  • 2
  • 12
0
votes
0 answers

Is there any way to sort processess by UNshared (private) memory use in ps or top?

I've been able to calculate unshared memory use by summing anonymous and stack mappings from pmap -x e.g. sudo pmap -x $THE_PID |egrep 'anon|stack' | awk '{print $2}' | paste -sd+ | bc but can't find any way to get similar info from ps at all. top…
Craig Ringer
  • 11,083
  • 9
  • 40
  • 61
0
votes
1 answer

Steal Time: How to interpret strange values for %st in top on an EC2 instance

I have an Amazon EC2 t2.medium instance that is showing very strange CPU Steal Time values, mostly large negative numbers and also very high idle CPU numbers. Anything that explains such strange numbers? Any system update/bugfix that we are missing…
centic
  • 221
  • 3
  • 12
0
votes
1 answer

Is my centOS dedicated server caching disk files appropriately, or not?

Here's the head of the top output from my centOS 5 server, at a moment with very low load. What I want to know is whether it is using its free memory wisely to cache files from disk. Of 2G of RAM, it seems to say 1G free - then it says also 600k…
peter
0
votes
1 answer

CPU wait state (RAM) stats?

As far as I understand, the wa % stat displayed by top is the I/O wait (i.e. hard drive). Is there a way to get similar wait stats, but for when the CPU is waiting for memory? My server is pretty much always 0.0 wa, because I've got an NVMe SSD, and…
BenMorel
  • 4,507
  • 10
  • 57
  • 85
0
votes
1 answer

top command from a VPS

When I run top from my VPS, at the %Cpu(s) row, I see a few values, e.g. %us, %sys, %wa, etc I'd like to ask whether these are the stats for the VPS only, or for the whole node (dedicated server)? For example, let's say %sys = 10, does it mean that…
aye
  • 229
  • 3
  • 11
0
votes
1 answer

Seeing `git status -s` in top every 30 seconds

I have been seeing a git status -s showing up in top every 30 seconds and can't figure out what's calling this command. It's showing 20%–60% CPU (on a busy 24gb production Linode running Debian 8.1) so I'd like to eliminate this from happening. Any…
Nate Beaty
  • 101
  • 3
0
votes
1 answer

SNMPD reporting conflicting CPU usage to top/htop

I've got a bit of an issue with reporting discrepancies. I've currently got a server running Ubuntu 14.04.1 trusty and am receiving SNMP alerts saying that 2 of my cores are at 100% usage. When I login to the server to check on this via top/htop it…
0
votes
2 answers

KVM Virtual Machine Guest - Get Top Output from KVM Host? Guest Monitoring Tools?

Is there a way to get the top output from a KVM virtual machine guest from the KVM host? I didn't see a way to get the list of processes using virsh. I'd really like to know what one of my virtual machines that is being managed by one of my…
OwN
  • 187
  • 3
  • 14
0
votes
0 answers

Nagios check_mem reports incorrect swap usage

We use check_mem.pl to check memory usage in Nagios. On one of our CentOS 6 servers, the check reports a warning about swap usage. However, upon checking, the server doesn't seem to use any swap. This is what top says: top output And the nagios…
Rens Verhage
  • 133
  • 1
  • 2
  • 7
0
votes
1 answer

linux + atop + chart alternative from atop

I use the atop in order to verify the performance top history and know by the values the status for each time my question is , what the alternative for atop that can view the values in chart? or maybe some tool that can get the atop logs and…
yael
  • 43
  • 1
  • 3
  • 9
0
votes
1 answer

Know which file is related to a process execution

In Unix, with top I have an output similar to this: 13916 root 18 0 903m 129m 9936 S 51.4 0.1 3:07.01 php How can I know which file is this php process executing? For example: 13916 root 18 0 903m 129m 9936 S 51.4 0.1 3:07.01 php…
0
votes
2 answers

Shell Script to check CPU Utilisation

I am trying to write a shell script which will check free memory of the server. I am trying below code top -M -n1 | grep "Mem" | awk '{print 0 + $7}' | awk '{ print $1 / 1024 }' | awk '{if ($1 < 1) print "\n Available Free memory is " $1…
Shyam
  • 1
0
votes
2 answers

top command + how to verify iowait value for one hour

my target is to check iowait value that not higher than 50 from top command and if value is higher than 50 for more then one hour , then need to give alarm about this ( by script or other option ) what I do until now is that: …
maihabunash
  • 443
  • 1
  • 11
  • 25