From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id AAAC961F59 for ; Fri, 23 Oct 2020 01:54:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 937B42355A for ; Fri, 23 Oct 2020 01:53:58 +0200 (CEST) Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id CD1492354D for ; Fri, 23 Oct 2020 01:53:55 +0200 (CEST) Received: by mail-lf1-x141.google.com with SMTP id l2so4431630lfk.0 for ; Thu, 22 Oct 2020 16:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=odiso-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZbK2ONvrWuvXTCBzeYPDMWsJjb00py0p4J3vNa2N4U0=; b=RoIjiOc8qWDKxUyzNZnyj8UyeEgvAqq8V+piMDor9TSHTFN0bqwmpENAUebp/l+xyU R/HcYf+o4IgwMUg3fw4O8VdLHse8MlXcJyR1ESWz1DRaP4/Z5eh9IS/jL0mIiIum8gM4 BzQ1fqK2tSMkb2JpBDddl/eNiNmlguSXseqRhhxpG2v61MQMTf399EqsKep5/ZZ0Fy5N kmco/U6OvCcpzZBRa7lmQNEchpGVM57C+Ape/6V9gPG5ALV//b9jK4/w42O72S70cX1h 8zIKxU4VzeSWEezlXKsnoalN4A6XaGZu5k9kpE2RGKwAjcZmwMPxypUztuAwJbXpzBLD 5QLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZbK2ONvrWuvXTCBzeYPDMWsJjb00py0p4J3vNa2N4U0=; b=blYDqCFA8caOh+we9PPyCUrjEmbJn3gRuYekNEFDAI5WZCia4eFsDgPxFNC0obx7t2 Eitz8WmPdXtEyee8gZQ9UE/z5IJJGdSCwqGmwXNAbp8FKvqEozIPVWzCizMTozyDCI5S j5YwSfPPgSszV5yFte4hw7q0SlFkFlDqD4vw4Ck/+RFVxcYQkZ+GIaGbFS8EbOPH++7W +DU4Azt7oZ+MIosXcaKKKO3Aej3IsHyrfmK3238m5H581jZ5Rq4iF0A5waAWY6QrTReq acGX+3pPCwEFrFbsx45gOttBemiBPt4HPuoHgI65g7hVxRiIXmnm14YWZRRrMCBIi6tB pPzA== X-Gm-Message-State: AOAM532Ui5d6j9f9pLMxgTWagQvBvDh0kslRdoadlWAIWym4mdOz8v8s RgS9gAk+8V53ExHW/GRN4PMN1QNO0wk0TUuT7NcNgA== X-Google-Smtp-Source: ABdhPJzFjKfD5ItVxg2RQgxmfQl2RTbKXmTLnm6McvIx8h9YJ0WLZQxI3U8i0qFpH2iDsyl3Bk4T83wUKhVCaoY3vfY= X-Received: by 2002:a19:c811:: with SMTP id y17mr1786465lff.259.1603410829054; Thu, 22 Oct 2020 16:53:49 -0700 (PDT) MIME-Version: 1.0 References: <20201006115850.1026534-1-aderumier@odiso.com> <589366911.632.1602568628596@webmail.proxmox.com> In-Reply-To: <589366911.632.1602568628596@webmail.proxmox.com> From: Alexandre Derumier Date: Fri, 23 Oct 2020 01:53:38 +0200 Message-ID: To: Dietmar Maurer Cc: Proxmox VE development discussion Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.057 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [pvestatd.pm] Subject: Re: [pve-devel] [PATCH pve-manager] pvestatd: stream host pressure counters X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2020 23:54:28 -0000 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 =C3=A0 07:57, Dietmar Maurer a = =C3=A9crit : > > I wonder if we want to store that information with RRD instead? > > > On 10/06/2020 1:58 PM Alexandre Derumier wrote: > > > > > > Signed-off-by: Alexandre Derumier > > --- > > 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 =3D PVE::ProcFSTools::read_pressure(); > > + PVE::Cluster::broadcast_node_kv("pressure", encode_json($pressure)= ); > > + >