Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?
Date: Thu, 30 Jul 2020 00:52:14
Message-Id: CAC=wYCEMyYPj_rk7Ys-QaY3qoHnogpG+RJ6RxWvqAVwSWri1yw@mail.gmail.com
In Reply to: Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained? by Sid Spry
1 >
2 > > So should I run something like: date ; time <some command that runs at
3 > > 100%CPU for a minute> ; date ?
4 >
5 > No, date will pull from your RTC, which is usually kept up to date with an
6 > asynchronous
7 > counter.
8 >
9 > First check GNU top(1) and look in the %Cpu line for "st." That is % CPU
10 > time stolen. If it is
11 > nonzero then the guest time's accounting is probably working. It's not
12 > typical for the
13 > hypervisor to hide this information. It's really important for load
14 > balancing.
15 >
16
17 Thanks for that. I haven't seen any non-zero stolen time yet, however.
18
19 FWIW vmstat also shows stolen time.

Replies

Subject Author
Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained? Jeremi Piotrowski <jeremi.piotrowski@×××××.com>