From: Jan Beulich <jbeulich@suse.com>
To: Matias Ezequiel Vara Larsen <matiasevara@gmail.com>
Cc: Matias Ezequiel Vara Larsen <matias.vara@vates.fr>,
Andrew Cooper <andrew.cooper3@citrix.com>, Wei Liu <wl@xen.org>,
George Dunlap <george.dunlap@citrix.com>,
Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Dario Faggioli <dfaggioli@suse.com>,
Anthony PERARD <anthony.perard@citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [RFC PATCH v1 0/2] Add a new acquire resource to query vcpu statistics
Date: Thu, 29 Sep 2022 17:55:50 +0200 [thread overview]
Message-ID: <268f8c2c-57ba-e4e3-59ef-45ed3cd794de@suse.com> (raw)
In-Reply-To: <cover.1661330065.git.matias.vara@vates.fr>
On 24.08.2022 15:27, Matias Ezequiel Vara Larsen wrote:
> The purpose of this RFC is to get feedback about a new acquire resource that
> exposes vcpu statistics for a given domain. The current mechanism to get those
> statistics is by querying the hypervisor. This mechanism relies on a hypercall
> and holds the domctl spinlock during its execution. When a pv tool like xcp-rrdd
> periodically samples these counters, it ends up affecting other paths that share
> that spinlock. By using acquire resources, the pv tool only requires a few
> hypercalls to set the shared memory region and samples are got without issuing
> any other hypercall. The original idea has been suggested by Andrew Cooper to
> which I have been discussing about how to implement the current PoC. You can
> find the RFC patch series at [1]. The series is rebased on top of stable-4.15.
>
> I am currently a bit blocked on 1) what to expose and 2) how to expose it. For
> 1), I decided to expose what xcp-rrdd is querying, e.g., XEN_DOMCTL_getvcpuinfo.
> More precisely, xcp-rrd gets runstate.time[RUNSTATE_running]. This is a uint64_t
> counter. However, the time spent in other states may be interesting too.
> Regarding 2), I am not sure if simply using an array of uint64_t is enough or if
> a different interface should be exposed. The remaining question is when to get
> new values. For the moment, I am updating this counter during
> vcpu_runstate_change().
>
> The current series includes a simple pv tool that shows how this new interface is
> used. This tool maps the counter and periodically samples it.
>
> Any feedback/help would be appreciated.
Before looking more closely - was there perhaps kind-of-review feedback
during the summit, which would make it more reasonable to look through
this once a v2 has appeared?
Jan
next prev parent reply other threads:[~2022-09-29 15:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 13:27 [RFC PATCH v1 0/2] Add a new acquire resource to query vcpu statistics Matias Ezequiel Vara Larsen
2022-08-24 13:27 ` [RFC PATCH v1 1/2] xen/memory : Add a stats_table resource type Matias Ezequiel Vara Larsen
2022-08-24 13:27 ` [RFC PATCH v1 2/2] tools/misc: Add xen-vcpus-stats tool Matias Ezequiel Vara Larsen
2022-09-29 15:55 ` Jan Beulich [this message]
2022-09-30 11:10 ` [RFC PATCH v1 0/2] Add a new acquire resource to query vcpu statistics Matias Ezequiel Vara Larsen
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=268f8c2c-57ba-e4e3-59ef-45ed3cd794de@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=dfaggioli@suse.com \
--cc=george.dunlap@citrix.com \
--cc=julien@xen.org \
--cc=matias.vara@vates.fr \
--cc=matiasevara@gmail.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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.