From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "João Vilaça" <jvilaca@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: How to query the number of processes queueing for the CPU inside the VM
Date: Fri, 29 Nov 2024 15:17:10 +0000 [thread overview]
Message-ID: <Z0na9lvoTM2V4iFY@redhat.com> (raw)
In-Reply-To: <CAOw09wu31aROKJaYA7igHR_toegozssDXsTBNuUhusoRX+Yvng@mail.gmail.com>
On Fri, Nov 29, 2024 at 02:38:52PM +0000, João Vilaça wrote:
> In KubeVirt, through libvirt, we need to know the number of processes
> queued for the CPU inside the VM.
>
> Can we get this information through the qemu-guest-agent?
The only CPU stats related command in QGA is 'guest-get-cpustat's
returning:
# @user: Time spent in user mode
#
# @nice: Time spent in user mode with low priority (nice)
#
# @system: Time spent in system mode
#
# @idle: Time spent in the idle task
#
# @iowait: Time waiting for I/O to complete (since Linux 2.5.41)
#
# @irq: Time servicing interrupts (since Linux 2.6.0-test4)
#
# @softirq: Time servicing softirqs (since Linux 2.6.0-test4)
#
# @steal: Stolen time by host (since Linux 2.6.11)
#
# @guest: ime spent running a virtual CPU for guest operating systems
# under the control of the Linux kernel (since Linux 2.6.24)
#
# @guestnice: Time spent running a niced guest (since Linux 2.6.33)
none of which match your rquest
Essentially what you're asking for seems to be the "load average" which
is a measure of waiting runnable tasks, over some period (1, 5, 15 minutes
typically).
I imagine guest-get-cpustat could be enhanced to include load info without
too much work.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2024-11-29 15:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 14:38 How to query the number of processes queueing for the CPU inside the VM João Vilaça
2024-11-29 15:17 ` Daniel P. Berrangé [this message]
2024-11-29 18:49 ` João Vilaça
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z0na9lvoTM2V4iFY@redhat.com \
--to=berrange@redhat.com \
--cc=jvilaca@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.