From nobody Thu May 2 20:08:41 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1634618517; cv=none; d=zohomail.com; s=zohoarc; b=Q8+/ff99n3Nj7oEDUfKtXTaiSg2YSn5UJ4tPHD9MPDloeoS+SRF32VqhbYj+huS/58I0GQjHfIhIDIWw57tWLa8kwAJDPzeyNldm2p+om+mul7rtQBWLyr4TwyTf/RHTxLB4GaPCW1IgNdKz7laUczk+N6cpAFeKo1y1xB2Vbew= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634618517; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Hs3bU4aT9bwXquQpTV6SvDWgRHlT2YNCRl1zv/sJFoI=; b=MVm7bBYe75YNEIlFUWRdSMuKf8x2qkFkjiOUtfpmldDZVHJiH/hh+g6uRsKmJfjSGXNcDHW0KVbRH5u+Eb7Z0USD9fAj2aAT/jrMDeOCtMl+AwK7515hCJzmkfqy0v8ZsNKr9YLWYDec06CC/2YqlfMmfA7WNo4tUDtmnzuZ26k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1634618517956431.6881710453173; Mon, 18 Oct 2021 21:41:57 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.212639.370591 (Exim 4.92) (envelope-from ) id 1mcgwK-00077k-OJ; Tue, 19 Oct 2021 04:41:28 +0000 Received: by outflank-mailman (output) from mailman id 212639.370591; Tue, 19 Oct 2021 04:41:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mcgwK-00077d-LN; Tue, 19 Oct 2021 04:41:28 +0000 Received: by outflank-mailman (input) for mailman id 212639; Tue, 19 Oct 2021 04:41:27 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mcgwJ-00077X-Ei for xen-devel@lists.xenproject.org; Tue, 19 Oct 2021 04:41:27 +0000 Received: from smtp-out2.suse.de (unknown [195.135.220.29]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d124ab18-3096-11ec-82fd-12813bfff9fa; Tue, 19 Oct 2021 04:41:26 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 147241FD8A; Tue, 19 Oct 2021 04:41:25 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E2EB313C5C; Tue, 19 Oct 2021 04:41:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lpIwNnRMbmHdMgAAMHmgww (envelope-from ); Tue, 19 Oct 2021 04:41:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d124ab18-3096-11ec-82fd-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1634618485; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Hs3bU4aT9bwXquQpTV6SvDWgRHlT2YNCRl1zv/sJFoI=; b=DXLVrh9obNjgFJIjuloW39HvozOu5UEXBuLxppYuO4v1b2Ekq9mPteIWLuZdTYjFTiIxgs BaV3sRYY7DTFyHM4IB0qcl+SKwPXySSfnuxHnkBqlxeGHH2t92DfGtXkSVlyRHCoB9/n3D u+NI9JuRR8rMq3EVIFP+kazupUcMyxU= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Ian Jackson , Wei Liu Subject: [PATCH] tools: fix oom setting of xenstored Date: Tue, 19 Oct 2021 06:41:23 +0200 Message-Id: <20211019044123.29648-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1634618520245100001 Content-Type: text/plain; charset="utf-8" Commit f282182af32939 ("tools/xenstore: set oom score for xenstore daemon on Linux") introduced a regression when not setting the oom value in the xencommons file. Fix that. Fixes: f282182af32939 ("tools/xenstore: set oom score for xenstore daemon o= n Linux") Signed-off-by: Juergen Gross --- tools/hotplug/Linux/launch-xenstore.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/launch-xenstore.in b/tools/hotplug/Linux/l= aunch-xenstore.in index 8438af9977..2b99b98896 100644 --- a/tools/hotplug/Linux/launch-xenstore.in +++ b/tools/hotplug/Linux/launch-xenstore.in @@ -60,7 +60,7 @@ test -f @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons && . @C= ONFIG_DIR@/@CONFIG_LEAF echo "No xenstored found" exit 1 } - [ -z "$XENSTORED_OOM_MEM_THRESHOLD" ] || XENSTORED_OOM_MEM_THRESHOLD=3D50 + [ -z "$XENSTORED_OOM_MEM_THRESHOLD" ] && XENSTORED_OOM_MEM_THRESHOLD=3D50 XS_OOM_SCORE=3D-$(($XENSTORED_OOM_MEM_THRESHOLD * 10)) =20 [ "$XENSTORED_MAX_OPEN_FDS" =3D "unlimited" ] || { --=20 2.26.2