Gentoo Archives: gentoo-user

From: Sid Spry <sid@××××.us>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?
Date: Mon, 27 Jul 2020 15:02:37
Message-Id: e27d2069-3baa-4676-a3c0-0cac5b7c8a6f@www.fastmail.com
In Reply to: Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained? by Adam Carter
1 On Sun, Jul 26, 2020, at 11:21 PM, Adam Carter wrote:
2 > On Mon, Jul 27, 2020 at 1:35 PM Ashley Dixon <ash@××××××××××.uk> wrote:
3 > > On Mon, Jul 27, 2020 at 01:23:46PM +1000, Adam Carter wrote:
4 > > > Having performance issues on a linux vmware guest that doesnt run vmtools
5 > > > because its an 'appliance', but it does allow shell access. I assume CPU
6 > > > utilisation shown by top etc is the utilisation of the vCPUs. Is there any
7 > > > way to discover or infer host CPU issues?
8 > >
9 > > Do you mean that you want to monitor the host system from the guest? Can you not
10 > > just SSH into the host from the guest? You can also infer CPU usage from the
11 > > /proc/stat file on the host system, if you can share files over NFS or some
12 > > other file-sharing means.
13 >
14 > I have ssh access (including root) to the guest but no access to the host.
15
16 Compare realtime it to measured CPU time. If one realtime second is shorter than a
17 CPU second then you know the host is pausing your VM. There are other ways to
18 check, but this should always work if you can contact an asynchronous time standard.
19 You may need to average the time over tens of seconds or a minute.
20
21 This method will allow you to figure out that AWS spot instances are
22 oversubscribed ~1.5x.

Replies

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