CLI tool that reports information about processes, memory, paging, block IO, traps, and cpu activity

learn more… | top users | synonyms

8
votes
5answers
11k views

Performance Tuning a High-Load Apache Server

I am looking to understand some server performance problems I am seeing with a (for us) heavily loaded web server. The environment is as follows: Debian Lenny (all stable packages + patched to ...
6
votes
2answers
14k views

How to get % memory usage with vmstat?

I need to get a memory usage in % from vmstat, but I don't quite understand some of the numbers relating to memory displayed in vmstat. In particular, given an output like this procs ...
5
votes
4answers
9k views

Find out which task is generating a lot of context switches on linux

According to vmstat, my Linux server (2xCore2 Duo 2.5 GHz) is constantly doing around 20k context switches per second. # vmstat 3 procs -----------memory---------- ---swap-- -----io---- -system-- ...
5
votes
2answers
5k views

How would you interpret the following vmstat output?

Consider the following five machines (named c, h, j, s and u) and their respective vmstat 1 outputs. Given the information from the vmstat output: Which machines would you consider being in a good ...
4
votes
1answer
5k views

Server load high, CPU idle. NFS the cause?

I am running into a scenario where I'm seeing a high server load (sometimes upwards of 20 or 30) and a very low CPU usage (98% idle). I'm wondering if these wait states are coming as part of an NFS ...
4
votes
1answer
10k views

determining free memory from command line on Windows

I would like to monitor the free memory on four machines each running Windows Server 2003 R2 SP2 64-bit. Each box has 31.7gb of RAM. I would like to periodically run a command line tool so I can ...
3
votes
5answers
2k views

vmstat -f shows large number of forks

I have a production server that is showing a very large number of forks when running vmstat -f. Any suggestions on steps that could be used to help find out what the origin of the forks are? vmstat ...
3
votes
1answer
343 views

Getting CPU steal times on Ubuntu 11.4 Virtual Box

I'm trying to check on CPU steal times in a virtual machine. The goal is for me to be able to detect if my app is running in a VM on over-committed hardware. I'm currently just testing, in ...
2
votes
2answers
543 views

The CPU idle is set to 99 while using vmstat, what does this mean?

I am confused with the CPU idle time is set to 99. Does this mean the CPU is idle not doing anything for 99% of the time? #vmstate procs -----------memory---------- ---swap-- -----io---- --system-- ...
2
votes
1answer
619 views

Very long IO wait times

Following scenario has happened twice with different RAID controllers. One was LSI MegaRAID running RAID5, the second was HP Smart Array E200i running RAID1. At first server works smoothly for few ...
2
votes
3answers
964 views

awk on vmstat to get si,so

I am writing a shell script to check the vmstat si and so data at various time intervals vmstat 1 sample output: procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b ...
2
votes
2answers
116 views

Reporting historical system activity in FreeBSD

I'd like to record data about system activity under FreeBSD for future analysis. If I were running a SysV system, I'd just sar and its related utilities, but that doesn't exist in the BSDs. (And ...
2
votes
0answers
48 views

how to efficiently monitor system stat using vmstat?

Am getting the real-time memory stats from vmstat command. I did this using following steps: $nohup vmstat 60 > vmstatrecord.app & the command executes in background and writes the log to ...
2
votes
1answer
216 views

inonice not working properly in xen dom0

I have a Xen Dom0 (3.2) with a bunch of domUs (paravirt). DomU VBDs are on local LVM volumes. Now I want to get backups of the LVM volumes using snapshots. I use rsync ioniced to idle (ionice -c3). I ...
1
vote
3answers
411 views

How much resources does vmstat really use?

We have a server running Tru64 Unix, which is our main production server for a single application our organisation uses. The software vendor has complete control of the hardware and software (we ...
1
vote
2answers
3k views

Interpretation of non-zero vmstat “bi/bo” values

What are useful rule-of-thumbs with regard to interpreting non-zero vmstat "bi/bo" values? When are the values "okay" and when are they an indication of that the system is under heavy stress? The ...
1
vote
1answer
140 views

vmstat is consuming most of the CPU power

when I issue the vmstat command without any parameter I get this result: # vmstat procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache ...
1
vote
1answer
717 views

Interpretation of non-zero vmstat “si/so” values

What are useful rule-of-thumbs with regard to interpreting non-zero vmstat "si/so" values? When are the values "okay" and when are they an indication of that the memory situation is problematic? The ...
1
vote
1answer
48 views

Advice on web server performance troubleshooting is needed

I'm renting a virtual CentOS based server where I have about 5 active sites running. Several months ago I noticed a significant performance degradation in how my sites are running. First symptom was ...
0
votes
2answers
738 views

load average in top and procs in vmstat

As far as I know, the load average in top is the numbers of precess(threads) in running or uninterrupted sleep status, So it should be equal to (procs-r +1 )+ procs-b in vmstat, but in practice, this ...
0
votes
6answers
2k views

Chop headers off of vmstat command?

Is there a way to run the VMSTAT command (or something like it) and have a timestamp be included in the line? I know that I can pipe the output of the command and manipulate the results, but if I do ...
0
votes
1answer
2k views

What to do if bo value in vmstat is too high?

I don't know what to do about high bo values is vmtstat. bi is 0 but bo is about 6000. So I don't know what that means and what to do. The application running on server is hanging. I don't know if it ...
0
votes
3answers
962 views

what kind of context switch is counted in the cs parameter in the output of vmstat command

vmstat provides a counter cs for context switch. As this explains, the context switch can be from one process to another , kernel to user or due to a interrupt being fired. Does the cs give a total of ...
0
votes
1answer
338 views

Top showing 64% idle on first screen or batch run, while there is no idle time at all

I'm running a quite heavy number crunching thing on a few 4 core servers, all running Ubuntu Precise Pangolin LTS 64 bit, in the cloud (so I suppose in a virtualized environment). To monitor the cpu ...
0
votes
1answer
179 views

running vmstat around a command

Im trying to automate a long list of database experiments. I would like to save vmstat output while specific parts of the experiments are running. Does something exist along the lines of time(1) or ...
0
votes
2answers
170 views

Vmstat seems to give non-standard values?

We have a proprietry system, which runs on Tru64 Unix. It is a terminal based system. We are able to use the login 'vmstat' to the system which brings up a vmstat-like view. However, the information ...
0
votes
0answers
6 views

vmstat uninterruptable sleep calculation vs. wa

How is uninterruptable sleep calculated? Is the 'b' figure a reasonable figure to estimate the number of processes waiting for I/O over the course of that second? For a synthetic test : i=1; while ...
0
votes
1answer
49 views

Vmstat indicates memory is disappearing

I wanted to profile the memory usage of a script. Here's the output before it was running: procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff ...
0
votes
2answers
80 views

vmstat spend writing/reading explaination

I ran vmstat -D for 1s interval and take the different of milli reading/writing between two interval. Then I start copy a file to test. bytes write per secs is 23.9M/s, and mili writing is 7244. As ...
0
votes
0answers
68 views

Strange lockups on Amazon virtual server

The server today had some difficult times - the load suddenly grows up to 5000%, but I did not find any local processes that cause extensive CPU load. But I've found following in vmstat 1 listing. ...
0
votes
1answer
77 views

how can I tell if there is a cpu trashing on my linux machine

I want to write a script that will kill my processes when my machine is doing "too much" swapping of process memory from disk to memory. What is the best way to determine that? I saw top has %wa and ...
0
votes
1answer
555 views

Huge CS value in #vmstat - what does it mean?

Here is the output for #vmstat for my VPS (Parallels virtualization): procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so ...
0
votes
1answer
472 views

VMstat explanation needed

can somebody explain me this graph please? What does it show? What those green peaks mean?
0
votes
1answer
531 views

How do I troubleshoot high vmstat sy

I have a Solaris server with very high vmstat sy time. What tools can I use to identify which process is causing the high system cpu usage? kthr memory page disk ...
-1
votes
2answers
145 views

vmstat output incompatible

as you can see when run a vmstat like below. bash-3.00# vmstat 1 5 kthr memory page disk faults cpu r b w swap free re mf pi po ...