- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Vmstat interpretation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 01:00 PM
тАО02-06-2006 01:00 PM
Hi Guys,
I'm trying to interpret vmstat output on an AIX machine, I need to know what 'cs' field is really and how it works, what are the numbers underneath the 'cd' field..
Well 'cs' means context switch, but what is a context switch???
2. My other question is underneath the 'fre' field if this field is closer to zero constantly, does that mean we need to add more physical memory????
Thanks Guys
Raf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 01:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 01:54 PM
тАО02-06-2006 01:54 PM
Re: Vmstat interpretation
Thanks Stephenson for your help and quick response. I have a couple of more queries.
Question 1. If the process is being blocked in the CPU waiting for something, what could the CPU be waiting for? If the CPU is waiting for something then is it still CPU bound??
Question 2. underneath the 'fre' field if this field is closer to zero constantly, does that mean we need to add more physical memory????
Thanks for your help, we have a great team here.
Kind Regards,
Raf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 02:16 PM
тАО02-06-2006 02:16 PM
Re: Vmstat interpretation
http://www.unixguide.net/ibm/faq/faq1.300.shtml
Best regards,
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 03:17 PM
тАО02-06-2006 03:17 PM
Re: Vmstat interpretation
Thanks for your quick response, I'm doing lot of research and reading documents...
Thanks Guys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 03:25 PM
тАО02-06-2006 03:25 PM
Re: Vmstat interpretation
Some good links about Unix Processes,
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Unix/Processes.html
http://userpages.umbc.edu/~jack/ifsm498/processes.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 03:32 PM
тАО02-06-2006 03:32 PM
Re: Vmstat interpretation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 08:53 PM
тАО02-07-2006 08:53 PM
Re: Vmstat interpretation
Replies are Inline to your questions:
Question 1. If the process is being blocked in the CPU waiting for something, what could the CPU be waiting for? If the CPU is waiting for something then is it still CPU bound??
No . For ex. CPU may be waiting for I/O , In this case it will be I/O Bound.
Question 2. underneath the 'fre' field if this field is closer to zero constantly, does that mean we need to add more physical memory????
Yes . Suggest to Compare this value with other systems having plenty of Memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 09:02 PM
тАО02-07-2006 09:02 PM
Re: Vmstat interpretation
cs = context switching.
Switching process in processor resource usage based on priroity. It uses a scheduling method for switching.
2) free field on memory?
Is it free field on memory right. Not fr field on page.
If so,
It is indicating free virtual memory available presently. You can also interpret with sam as,
sam -> performance monitor -> system properties -> memory tab for all activities
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 09:04 PM
тАО02-07-2006 09:04 PM
Re: Vmstat interpretation
# UNIX95= ps -ef -o sz,vsz,cpu,pcpu,pid,comm
it will give that.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 09:08 PM
тАО02-07-2006 09:08 PM
Re: Vmstat interpretation
You can use #swapinfo -tam.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 10:00 PM
тАО02-07-2006 10:00 PM
Re: Vmstat interpretation
If you've Glance on the servers, you use it to analyse why CPU, Disk or Memory usage for a specific process is high.
What is blocking etc.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 09:33 AM
тАО02-08-2006 09:33 AM
Re: Vmstat interpretation
Muthu one more question,
So a context switch is physical thing on CPU or doest context swictch means proceses in processor resource as you said??? and I'm not able to read a lot about it on internet, if you could sched more light on context switch in a bit more detail...and in the vmstat ouput under 'cs' field what those numbers means when they changes, and whether the system is cpu bound or ioound??
Thanks Muthu and everyone for your responses, your info would definitely help, I have also done lot of reading on vmstat, so i can understand better how each field works....
Thanks Guys, I will assign points now...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:17 PM
тАО02-08-2006 03:17 PM
Re: Vmstat interpretation
You asked,
So a context switch is physical thing on CPU or doest context swictch means proceses in processor resource as you said??? and I'm not able to read a lot about it on internet, if you could sched more light on context switch in a bit more detail...and in the vmstat ouput under 'cs' field what those numbers means when they changes, and whether the system is cpu bound or ioound??
Yes, It is physical thing related to Processor. Just remember, Unix is a time sharing, multi tasking OS, where all the processes share the same resource like CPU, RAM, etc..
Hope this is clear.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:38 PM
тАО02-08-2006 03:38 PM
Re: Vmstat interpretation
Thanks for your response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:44 PM
тАО02-08-2006 03:44 PM
Re: Vmstat interpretation
A bound CPU is a CPU that is assigned to and handles I/O interrupts for a virtual partition. Every virtual partition must have at least one bound CPU to handle its I/O interrupts.
CPUs that are not assigned to any virtual partition or that are assigned to a virtual partition but do not handle its I/O interrupts are unbound CPUs. Unbound CPUs are sometimes called floater CPUs.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:48 PM
тАО02-08-2006 03:48 PM
Re: Vmstat interpretation
Here is a good Wikipedia link,
http://en.wikipedia.org/wiki/Context_switching
It will clear all the doubts you have.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:54 PM
тАО02-08-2006 03:54 PM
Re: Vmstat interpretation
Thanks
Raf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:57 PM
тАО02-08-2006 03:57 PM
Re: Vmstat interpretation
You can assign points as well, :-)
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 04:07 PM
тАО02-08-2006 04:07 PM
Re: Vmstat interpretation
Thanks Arun, I always assign points and in this instance, I have assigned points as well, thanks for reminding me....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 10:26 PM
тАО02-08-2006 10:26 PM
Re: Vmstat interpretation
The book linked below covers this stuff in an understandable way and in more detail. I recommend it.
http://www.amazon.com/gp/product/0131463969/ref=sr_11_1/002-9020949-4683225?%5Fencoding=UTF8
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2006 10:00 AM
тАО02-09-2006 10:00 AM
Re: Vmstat interpretation
Thanks Steven, we have a great team here.
Regards,
Raf