top is a Unix/Linux/BSD program to show what processing are running. It can show the top users of CPU or memory.
Questions tagged [top]
302 questions
1
vote
1 answer
Understanding top and tuning
I have allowed Postgres 30GB of RAM on our server. When running intensive tasks, I think it is swapping.
As I understand it:
VIRT - virtual memory (ie: swapped to disk)
RES - complete memory usage
SHR - shared memory - I'm not clear on what this…

port5432
- 173
- 2
- 5
- 17
1
vote
1 answer
Linux top in RES what does the 't' suffix stand for
When monitoring my system with top, I noticed that under RES some values have a 't' suffix, but I can't see any indication of what this means.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND …

Dave
- 143
- 1
- 5
1
vote
1 answer
disk space usage by process in ubuntu 12.04
Is there any way to know how much disk space currently running process is using? I have checked ps and top command but could not find out.
Background behind this question:
I have a server which is get filled 20Gb each day. I could not find out where…

chanchal118
- 111
- 4
1
vote
1 answer
htop 100% fake CPU load
Recently my VPS show 100% CPU usage of all cores in htop and observium, but there is no process that uses > 5% CPU. In fact, the statistics of my VPS host shows there is no activity at all. Is this a bug? I've read something about a leap second. But…

Maarten Oosting
- 11
- 2
1
vote
1 answer
top batch to dump CPU usage for all CPUs
I am looking for a command that I can run in a batch mode and report back to a monitoring server. I'd like a CPU usage across all CPUs (the equivalent of running top in interactive mode and then hitting the '1' key). It should work on Mac, Ubuntu…

user1130176
- 173
- 1
- 10
1
vote
2 answers
Confirm a memory leak by tracing "free" and "cached" in top?
I'm trying to confirm that there is a memory leak on my Linux device while in idle state (there should be no continuous memory consumption). I'm not interested in identifying the process that is causing the leak but just to conclude the memory is…

TheMeaningfulEngineer
- 259
- 3
- 16
1
vote
1 answer
how can I understand why apache is consuming so much cpu - ec2
I have an ec2 c3.medium instance running.
It has recently started maxing out the cpu making the server unresponsive.
Rebooting the instance doesn't really help for long, although it does make apache serve sites again for an hour or so.
When I look…

Tofuwarrior
- 239
- 1
- 3
- 10
1
vote
1 answer
System not being able to handle soft interrupts but having idle time?
I have a constant 5% and more CPU time spent in handling soft interrupts. Doe to that, the ksoftirqd is running almost constantly, but is using a very small amount of CPU (less than 1%).
However, regardless of this heavy load there is still a…

TheMeaningfulEngineer
- 259
- 3
- 16
1
vote
1 answer
Influence of kernel code execution to Load average in top?
I'm trying to tests the amount of CPU that iptables use for NAT. Perhaps it will be more accurate to say "the amount of CPU that the netfilter kernel module" uses.
The approach i took was to try and strip the system of all userspace processes, run…

TheMeaningfulEngineer
- 259
- 3
- 16
1
vote
0 answers
aws stolen cpu on dedicated machine
I'm running a dedicated m3.medium EC2 instance. How is it possible that my top says:
Tasks: 84 total, 1 running, 83 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.3%us, 1.5%sy, 0.0%ni, 90.8%id, 0.1%wa, 0.0%hi, 0.0%si, 3.2%st
Mem: 3840444k…

Josh Nankin
- 722
- 12
- 27
1
vote
2 answers
Something like `top` for vhosts
Is there any way of establishing what vhosts are keeping Apache processes busy, in real time?
Ideally I'd like a tool like top (or htop) that shows me which sites are busiest, or most costly, right now.
Could a tool like this be built on…

Marcus Downing
- 788
- 10
- 18
1
vote
1 answer
How to get atop to create daily logfile
I'm running a website on a VPS running Centos 6.5 and am having some issues. I'm new to serveradmin so just learning. atop was already installed on our machine and it's working. I wanted to go in and analyse the historical logs but there is nothing…

user23744
- 13
- 1
- 3
1
vote
2 answers
top and htop disagree on memory usage, but swap is being used on GlusterFS server. Can this be improved?
If I run free -m, top and htop, I get different memory uses. The system is also using a small amount of swap. I understand from this question why they are reporting different values (some of the data is considered "discardable" and so included by…

Luke Cousins
- 387
- 1
- 3
- 18
1
vote
1 answer
Top not accurately showing memory usage
Top is not showing my memory usage accurately or is my VPS provider doing something strange?
As you see in the picture bellow it uses 90%+ of the memory, but when you look at what processes that is actually using memory it doesn't even sum up to…

spydon
- 133
- 1
- 1
- 9
1
vote
1 answer
Load average 1.00 while top seems to show the server as idle
My server is not responding to HTTP requests, and it took me a long time before being able to log in with SSH; it all looks like the server is overloaded and on its knees.
It already did that a few days ago, but after a reboot everything was back to…

BenMorel
- 4,507
- 10
- 57
- 85