Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Using vmstat on a vmware machine

    Hi all,

    I apologise in advance if this is the wrong section to post in.

    I have two SuSE Linux vmware machines running. I am currently running a little script that collects vmstat output and puts it to a log file in order to do some diagnostics.

    However, I am wanting to find out if vmstat will show me the system resources for the virtual machine or the physical machine on which the virtual machine is installed.

    If the vmstat output is showing me the system resources for the virtual machine, is there a way I can collect the system usage data of the physical machine from running within the virtual machine?



  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    1) It shows the data from the virtual machine.
    2) No direct way, afaik.
    Imho, you should treat host and VMs like independent machines and monitor them separately.

    Maybe group them together in your monitoring tool, so that the host load and vm load can be seen in one view.
    Which may be tricky once you introduce live migration of VMs, but itīs a start
    Last edited by Irithori; 08-01-2011 at 02:02 PM. Reason: typo
    You must always face the curtain with a bow.

  3. #3
    Okay, thank you for confirming that for me...

    I only ask because when I give the VM machines a specific workload, the vmstat output shows that the CPU is idling at 0% whereas on the native machines, the same workload doesn't overload the CPU. The vmstat output on the native machines shows me about 70% idle for the CPU.

  4. $spacer_open
  5. #4
    How much "CPU time" is the VM really getting? This is the point of virtualization - give the VM just enough resources to keep it running smoothly and then idle the rest of those resources or provide them to another VM. Different hypervisors work differently - their documentation and forums are a good place to start.

  6. #5
    Okay, thanks. I will have a bit of a read around. Thanks for your help, has helped me understand something a little better.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts