From: Christian Horn <chorn@fluxcoil.net>
To: Igor Mammedov <imammedo@redhat.com>
Cc: "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 08:11:14 +0100 [thread overview]
Message-ID: <ZynFEr2vSeApNGG-@fluxcoil.net> (raw)
In-Reply-To: <20241104104900.1a2a0193@imammedo.users.ipa.redhat.com>
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.
- 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.
- 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,
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 13:38 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 [this message]
2024-11-05 12:19 ` Igor Mammedov
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=ZynFEr2vSeApNGG-@fluxcoil.net \
--to=chorn@fluxcoil.net \
--cc=aharivel@redhat.com \
--cc=berrange@redhat.com \
--cc=chorn@redhat.com \
--cc=imammedo@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).