From: Igor Mammedov <imammedo@redhat.com>
To: Christian Horn <chorn@fluxcoil.net>
Cc: chorn@redhat.com, "Anthony Harivel" <aharivel@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
pbonzini@redhat.com, mtosatti@redhat.com, qemu-devel@nongnu.org,
vchundur@redhat.com, rjarry@redhat.com, nathans@redhat.com,
kenj@kenj.id.au, sunyanan.choochotkaew1@ibm.com,
vibhu.sharma2929@gmail.com
Subject: Re: [PATCH v6 0/3] Add support for the RAPL MSRs series
Date: Tue, 5 Nov 2024 13:19:27 +0100 [thread overview]
Message-ID: <20241105131927.5a038d3f@imammedo.users.ipa.redhat.com> (raw)
In-Reply-To: <ZynFEr2vSeApNGG-@fluxcoil.net>
On Tue, 5 Nov 2024 08:11:14 +0100
Christian Horn <chorn@fluxcoil.net> wrote:
> Hi all,
>
> some thoughts:
>
> - I vote for making the metrics as much as possible in the guest available
> as on the host. Allows cascading, and having in-guest-monitoring working
> like on bare metal.
> - As result, really just plain vCPU consumption would be made available
> in the guest as rapl-core. If the host can at some point understand
> guests GPU, or I/O consumption, better hand that in separately.
> - Having in mind that we will also need this for other architectures,
> at least aarch64. RAPL comes from x86, rather than extending that
> to also do I/O or such, we might aim at an interface which will also
> work for aarch64.
+1 to both points
> - Bigger scope will be to look at the consumption of multiple systems, for
> that we will need to move the metrics to network eventually, changing
> from MSR or such mechanisms.
That's aren't VM scope though, which this topic is about.
But yes, the same tools as on baremetal can collect data and send/aggregate
them elsewhere. The main point from VM perspective is act just like baremetal
systems so the same monitoring tools could be reused.
> - For reading the metrics in the guest, I was tempted to suggest PCP with
> pmda-denki to cover RAPL, but it's right now just reading /sysfs, not
> MSR's. pmda-lmsensors for further sensors offered on various systems,
For NVF usecase, I also was eyeing pmda-denki.
How hard it would be to add MSR based sampling to denki?
Can we borrow Anthony's MSR sampling from
qemu-vmsr-helper, to reduce amount of work needed.
Also, for guest per vCPU accounting, we would need per thread
accounting (which I haven't noticed from a quick look at denki).
So some effort would be needed to add it there.
I didn't know about pmda-lmsensors, I guess we should be able to use
it out of box with 'acpi power meter' sensor, if QEMU were to provide such.
I've also seen denki supporting battery power sensor, we can abuse that
and make QEMU provide that, but I'd rather add 'acpi power meter' sensor
to denki (which to some degree intersects with battery power sensor
functionality).
PS:
In this series Anthony uses custom protocol to get data from
privileged MSR helper to QEMU. Would it be acceptable?
Or is there a preferred way for PCP to do inter-process comms?
> and pmda-openmetrics for covering anything appearing somewhere on
> /sysfs as a number.
>
>
> > > Not that I disagree with all you said, to the contrary, but the amount
> > > of change is quite significant and it would be very annoying if results
> > > of this work doesn't make upstream because of Y & X.
> >
> > split frontend/backend design is established pattern in QEMU, so I'm not
> > suggesting anything revolutionary (probability that anyone would object
> > to it is very low).
> >
> > sending an RFC can serve as a starting point for discussion.
>
> +1,
> Christian
>
next prev parent reply other threads:[~2024-11-05 12:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-22 15:34 [PATCH v6 0/3] Add support for the RAPL MSRs series Anthony Harivel
2024-05-22 15:34 ` [PATCH v6 1/3] qio: add support for SO_PEERCRED for socket channel Anthony Harivel
2024-05-22 15:34 ` [PATCH v6 2/3] tools: build qemu-vmsr-helper Anthony Harivel
2024-05-22 15:34 ` [PATCH v6 3/3] Add support for RAPL MSRs in KVM/Qemu Anthony Harivel
2024-10-16 12:17 ` Igor Mammedov
2024-10-16 13:04 ` Anthony Harivel
2024-06-26 14:34 ` [PATCH v6 0/3] Add support for the RAPL MSRs series Anthony Harivel
2024-10-16 11:52 ` Igor Mammedov
2024-10-16 12:56 ` Anthony Harivel
2024-10-18 12:25 ` Igor Mammedov
2024-10-18 12:59 ` Daniel P. Berrangé
2024-10-22 12:46 ` Igor Mammedov
2024-10-22 13:15 ` Daniel P. Berrangé
2024-10-22 14:16 ` Anthony Harivel
2024-10-22 14:29 ` Daniel P. Berrangé
2024-10-22 14:40 ` Anthony Harivel
2024-11-01 15:09 ` Igor Mammedov
2024-11-02 9:32 ` Anthony Harivel
2024-11-04 9:49 ` Igor Mammedov
2024-11-05 7:11 ` Christian Horn
2024-11-05 12:19 ` Igor Mammedov [this message]
2024-11-06 3:14 ` Christian Horn
2024-10-22 15:35 ` Igor Mammedov
2024-10-22 13:49 ` Anthony Harivel
2024-11-04 9:40 ` Igor Mammedov
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=20241105131927.5a038d3f@imammedo.users.ipa.redhat.com \
--to=imammedo@redhat.com \
--cc=aharivel@redhat.com \
--cc=berrange@redhat.com \
--cc=chorn@fluxcoil.net \
--cc=chorn@redhat.com \
--cc=kenj@kenj.id.au \
--cc=mtosatti@redhat.com \
--cc=nathans@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rjarry@redhat.com \
--cc=sunyanan.choochotkaew1@ibm.com \
--cc=vchundur@redhat.com \
--cc=vibhu.sharma2929@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).