[pve-devel] [PATCH pve-manager] pvestatd: stream host pressure counters

Alexandre Derumier aderumier at odiso.com
Fri Oct 23 01:53:38 CEST 2020


Hi Dietmar,

I would like also to add some improvement for vm memory/cpu stats.

for cpu, currently, we only monitor the qemu process cpu usage, but
with virtio-net + vhost-net,
we are missing vhost-* process cpu usage.  (For vms will a lot of
traffic, this is really signifiant).

I would like to add something like "hostcpu" counter, will real metric
(reading the vm cgroup cpu.stat)

Also, for memory, when ballooning is enabled, we don't have anymore
the real memory usage on the host.
For example, a windows vm with 16g mem is filling memory with zeroes
at boot, so from the host all the 16G memory is used, but in windows
guest we only see something like 2G.

so, I would like to add something like "hostmemory" counter


what do you think about this ?


Le mar. 13 oct. 2020 à 07:57, Dietmar Maurer <dietmar at proxmox.com> a écrit :
>
> I wonder if we want to store that information with RRD instead?
>
> > On 10/06/2020 1:58 PM Alexandre Derumier <aderumier at odiso.com> wrote:
> >
> >
> > Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> > ---
> >  PVE/Service/pvestatd.pm | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/PVE/Service/pvestatd.pm b/PVE/Service/pvestatd.pm
> > index 5e533ca3..238c36ae 100755
> > --- a/PVE/Service/pvestatd.pm
> > +++ b/PVE/Service/pvestatd.pm
> > @@ -161,12 +161,16 @@ sub update_node_status {
> >      );
> >      PVE::Cluster::broadcast_rrd("pve2-node/$nodename", $data);
> >
> > +    my $pressure = PVE::ProcFSTools::read_pressure();
> > +    PVE::Cluster::broadcast_node_kv("pressure", encode_json($pressure));
> > +
>




More information about the pve-devel mailing list