Skip to main content

Questions tagged [vmstat]

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

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

vmstat + on RHEL machine high values of swpd

The swpd field indicates how much swap space has been used; this value increases when the systems physical memory is full and the Linux kernel starts to use the swap partition/file. When the systems ...
King David's user avatar
1 vote
0 answers
687 views

High Load Average in Solaris Operating System - Due to high read I/O

In Linux OS, the load average is dependent on multiple factors like CPU utilization, number of uninterruptible sleep processes, and others. On the other hand, Solaris OS load average is dependent on ...
cybermizz's user avatar
0 votes
1 answer
2k views

sar and top show high cpu usage, but vmstat and ps show low cpu usage. Why?

I'm diagnosing a high CPU usage event, and I found a weird difference between numbers from ps/vmstat, which show almost 0%, and sar/top, which show almost 100% (user + system): sar 1 5 Linux 2.6.9-67....
Emerson Prado's user avatar
1 vote
2 answers
4k views

3 different methods to count the number of context switches for a specific workload provide 2 different answers

I have a Centos7 system on a Google cloud machine, running a multithreaded database server that executes a particular set of queries in 70 secs (plus or minus 1 sec). I want to know how many context ...
Richard Gostanian's user avatar
0 votes
0 answers
467 views

runqueue length in vmstat and sar

i am looking at the vmstat output to assess certain performance degradation on our systems, specifically for long runqueue. i find frequently it looks like this on a 8 CPU m/c: Mon Jun 13 12:14:02 ...
raven's user avatar
  • 1
7 votes
1 answer
971 views

On Linux, what is the size of pages reported by vmstat command and/or /proc/vmstat?

As many have stated on StackExchange and elsewhere, a typical kernel/mmu page size for Linux is 4 KiB. I have verified that this is the case on my OS/architecture (RHEL 6.6, Intel Xeon E5-2690). Now ...
Marc C's user avatar
  • 81
0 votes
1 answer
231 views

Is the run-queue column in vmstat a sum of values or just one measurement?

When I run vmstat on a RHEL 6.6 machine with a time interval I sometimes see the run-queue column jump to "high" values. I know the first line reported by vmstat is averages since the machine booted ...
Ola Mattsson's user avatar
1 vote
1 answer
108 views

Two identical servers, one of them have 2x CPU load

Http requests are splitted 50/50 between two servers. Servers are running FreeBSD 9.2, their hardware, software & application configurations are absolutely identical. But one of servers is getting ...
Kirzilla's user avatar
  • 583
2 votes
1 answer
900 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 ...
subash's user avatar
  • 21
1 vote
1 answer
167 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 ...
Alexey's user avatar
  • 11
0 votes
1 answer
315 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 ...
jimbotron's user avatar
3 votes
2 answers
1k 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 ...
wfaulk's user avatar
  • 6,988
0 votes
2 answers
274 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 ...
ntcong's user avatar
  • 101
0 votes
1 answer
837 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 ...
oshai's user avatar
  • 109
2 votes
1 answer
5k 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 ...
soupagain's user avatar
  • 141
3 votes
2 answers
1k 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 ...
Simone Gianni's user avatar
0 votes
1 answer
6k 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 ...
ramazan polat's user avatar
1 vote
1 answer
371 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 ...
ramazan polat's user avatar
0 votes
2 answers
3k 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 ...
Mingfei.hua's user avatar
-1 votes
2 answers
219 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 ...
Olgun Kaya's user avatar
0 votes
1 answer
950 views

VMstat explanation needed

can somebody explain me this graph please? What does it show? What those green peaks mean?
Worker's user avatar
  • 647
4 votes
3 answers
4k 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 ...
APZ's user avatar
  • 974
-1 votes
1 answer
2k 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 ...
user99959's user avatar
3 votes
1 answer
1k views

Getting CPU steal times on Ubuntu 11.4 Virtual Box [closed]

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 ...
ThoughtfulHacking's user avatar
2 votes
1 answer
293 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 ...
tim's user avatar
  • 1,217
0 votes
3 answers
3k 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 ...
doon's user avatar
  • 119
2 votes
1 answer
1k 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 ...
Jacek Prucia's user avatar
13 votes
5 answers
16k 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 ...
futureal's user avatar
  • 397
15 votes
5 answers
56k 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-- --...
grzaks's user avatar
  • 335
3 votes
2 answers
2k 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-- --...
user avatar
0 votes
1 answer
336 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 ...
svrist's user avatar
  • 183
8 votes
2 answers
27k 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 ...
QuantumRob's user avatar
1 vote
3 answers
650 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 ...
Michael Galos's user avatar
6 votes
1 answer
20k 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 ...
Nate's user avatar
  • 204
1 vote
2 answers
8k 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 ...
knorv's user avatar
  • 1,829
4 votes
1 answer
2k 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 ...
knorv's user avatar
  • 1,829
2 votes
6 answers
5k 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 ...
IVR Avenger's user avatar
11 votes
2 answers
9k 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 ...
knorv's user avatar
  • 1,829
1 vote
2 answers
212 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 ...
Michael Galos's user avatar
10 votes
4 answers
56k 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 -----------...
His's user avatar
  • 249
4 votes
5 answers
7k 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 -...
Taylor Leese's user avatar