public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Alexandre Derumier <aderumier@odiso.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH V2 pve-common 4/4] systemd: add CPUWeight encoding
Date: Fri,  6 Nov 2020 09:24:55 +0100	[thread overview]
Message-ID: <20201106082455.3288332-5-aderumier@odiso.com> (raw)
In-Reply-To: <20201106082455.3288332-1-aderumier@odiso.com>

---
 src/PVE/Systemd.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Systemd.pm b/src/PVE/Systemd.pm
index 85b35a3..ed13a60 100644
--- a/src/PVE/Systemd.pm
+++ b/src/PVE/Systemd.pm
@@ -105,7 +105,7 @@ sub enter_systemd_scope {
     foreach my $key (keys %extra) {
 	if ($key eq 'Slice' || $key eq 'KillMode') {
 	    push @{$properties}, [$key, $extra{$key}];
-	} elsif ($key eq 'CPUShares') {
+	} elsif ($key eq 'CPUShares' || $key eq 'CPUWeight') {
 	    push @{$properties}, [$key, dbus_uint64($extra{$key})];
 	} elsif ($key eq 'CPUQuota') {
 	    push @{$properties}, ['CPUQuotaPerSecUSec',
-- 
2.20.1




  parent reply	other threads:[~2020-11-06  8:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-06  8:24 [pve-devel] [PATCH V2 pve-common 0/4] add generic CGroup module Alexandre Derumier
2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 1/4] move PVE::LXC::CGroup to PVE::CGroup Alexandre Derumier
2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 2/4] Cgroups: remove specific lxc code Alexandre Derumier
2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 3/4] bugfix: cpushares : default value is 1024 for cgroup v1 Alexandre Derumier
2020-11-06  8:24 ` Alexandre Derumier [this message]
2020-11-06  8:31 ` [pve-devel] applied-series: [PATCH V2 pve-common 0/4] add generic CGroup module Thomas Lamprecht
2020-11-08 14:10   ` Alexandre Derumier

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=20201106082455.3288332-5-aderumier@odiso.com \
    --to=aderumier@odiso.com \
    --cc=pve-devel@lists.proxmox.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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal