Reason for abnormal value in vmstat output


 
Thread Tools Search this Thread
Operating Systems Solaris Reason for abnormal value in vmstat output
# 1  
Old 02-28-2018
Reason for abnormal value in vmstat output

Hi,

Recently from the vmstat output in the image attached, the first line of the cpu idle column shows a value of 15. Although the subsequent values show higher than 90, is there a reason why the first value is so low?

Is this a problem?

Thanks.
Reason for abnormal value in vmstat output-image001-1-.png
# 2  
Old 02-28-2018
Hi,

There could be any number of reasons for the CPU having so much resource assigned to a user task - in this case it could even be the fact that you have been running "vmstat" and the system has had to fetch it from disk and run the binary.

If your system has "sar" installed, you could run sar -u 5 20 in one shell and run your "vmstat" command in an other - you should be able to see a more or less matching picture.

Regards

Gull04
# 3  
Old 02-28-2018
From man vmstat (on linux but it's the same on any operating system) :
Code:
DESCRIPTION
       vmstat  reports  information about processes, memory, paging, block IO,
       traps, disks and cpu activity.

       The first report produced gives averages since the last reboot.   Addi‐
       tional  reports  give information on a sampling period of length delay.
       The process and memory reports are instantaneous in either case.

So, since the last reboot CPU line is average.

What is troublesome here that the line shows 85% average system utilization, 0% user and 15% idle.
This means 85% of time in average from last reboot is spent in kernel code.

On normal operations on system, minimal time should be spent in kernel and most in user.
This can be different with, for instance, when using high compression and dedup on zfs, system line can go a lot higher then user.

What is that server doing (database, file server, java app etc.) ?
Do you have metrics for longer periods ?
What is your number of cores and load average ?

Regards
Peasant.
# 4  
Old 03-05-2018
Hi Peasant,

Thanks for the detailed explanation. Answers :

What is that server doing (database, file server, java app etc.) ?
It has database, and the application that is used to register user information into the database.
Do you have metrics for longer periods ?
Unfortunately not.
What is your number of cores and load average ?
Number of cores : 16
Load average : 0.23, 0.25, 0.25
# 5  
Old 03-05-2018
1. Database kind and the way it stores data files (filesystems or ASM) ?
This effects operating system configuration, especially if you have zfs filesystems.

2. You should really have some metrics, at least via SNMP or crontab.
Without them, analysis will be much more difficult if not impossible.

Current load average (in the time of execution 1,5,15 minutes) says the machine is heavily underutilized CPU wise.

In the past 1,5,15 minutes one core would run that and have free time Smilie


Hope that helps
Regards
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Pls. help with vmstat output...

Hi, Users are reporting performance issue on my Sun Solaris 10 server. I am on the server. I don't see a issue or I might be looking at the wrong thing. Please help. I don't see anything on sar. it's all zero on that. Not sure why users are reporting high CPU and unresponsive at times. ... (1 Reply)
Discussion started by: samnyc
1 Replies

2. Solaris

Different VMSTAT output on Linux and Solaris machines

Hi, I am porting a piece of code from Solaris to Linux. Code uses VMSTAT command. On Solaris machine VMSTAT output is following: uname -a: SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440 vmstat: kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr m1 m2... (3 Replies)
Discussion started by: Basant Mishra
3 Replies

3. AIX

fr and sr (from vmstat output) values are very high

Hi AIX Expert, the fr (page freed/page replacement) and sr (pages scanned by page-replacement algorithm) values from the vmstat output (see below please) are very high. I usually see this high value during the oracle database backup. In addition, the page scan/page steal/ page faults values... (7 Replies)
Discussion started by: Beginer0705
7 Replies

4. Solaris

help with vmstat output

Hi all. I need some assistance with my vmstat output. We have several oracle db's running on our solaris machine: SunOS rcworaprd 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Fire-480R Recently I bumped up our main Oracle database to use 6 GB instead of 4 GB as vmstat output was showing... (1 Reply)
Discussion started by: jamie_collins
1 Replies

5. AIX

vmstat incomprehensible output

Hello everybody, When i run Nmon the output is really incomprehensible vmstat 5 System configuration: lcpu=16 mem=24576MB ent=4.00 kthr memory page faults cpu ----- ----------- ------------------------ ------------ -----------------------... (3 Replies)
Discussion started by: Vit0_Corleone
3 Replies

6. UNIX for Advanced & Expert Users

vmstat's cpu stats on first line of output are always the same

Hello, I'm seeing this problem with vmstat, where the first line of output always has the same CPU statistics. For example: neked@nekedmachine:~$ date && vmstat Fri Jul 24 06:57:08 EDT 2009 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd ... (0 Replies)
Discussion started by: neked
0 Replies

7. HP-UX

abnormal process HPUX

i am using HP-UX and i have this process called HPUX childwrapper taking about 99% cpu.i want to know what the process does? and if i should kill it (4 Replies)
Discussion started by: tomjones
4 Replies

8. Shell Programming and Scripting

Capturing and sending of vmstat output everyday

I need to capture the vmstat output of a server every 5 minutes, in a text filename with the name in the format vmoutput. yesterday's date.txt. I need to get the vmstat o/p for the whole day with 5 minutes interval and send it (preferably ftp) to my local desktop folder. eg: vmstat 300... (1 Reply)
Discussion started by: yuvanash
1 Replies

9. UNIX for Dummies Questions & Answers

vmstat output with date & timestamp

Hello all This is a sample vmstat output ... $ vmstat 2 2 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr hx hx hx hx in sy cs us sy id 1 0 0 23105784 7810488 323 767 1742 5 5 0 0 0 0 0 0 683 780 457 43 ... (9 Replies)
Discussion started by: luft
9 Replies

10. UNIX for Advanced & Expert Users

output of vmstat

i have 2 question about vmstat 1) pin (pagein) output of vmstat is always zero for our system what is the meaning of this? (pout significantly changes depending on the running processes) 2) sometimes react output of vmstat is given in K like 44K sometimes it is given without any unit... (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies
Login or Register to Ask a Question