From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F332CC433E2 for ; Thu, 9 Jul 2020 06:26:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C239920708 for ; Thu, 9 Jul 2020 06:26:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C239920708 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D1BD36B000C; Thu, 9 Jul 2020 02:26:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CCAB06B000D; Thu, 9 Jul 2020 02:26:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE2246B000E; Thu, 9 Jul 2020 02:26:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id A870B6B000C for ; Thu, 9 Jul 2020 02:26:16 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 58E07181AC553 for ; Thu, 9 Jul 2020 06:26:16 +0000 (UTC) X-FDA: 77017552752.23.pipe92_5e0063126ec3 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin23.hostedemail.com (Postfix) with ESMTP id 262F637608 for ; Thu, 9 Jul 2020 06:26:16 +0000 (UTC) X-HE-Tag: pipe92_5e0063126ec3 X-Filterd-Recvd-Size: 3433 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Thu, 9 Jul 2020 06:26:15 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id z2so1055154wrp.2 for ; Wed, 08 Jul 2020 23:26:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZvurmaEhiDORUIXWHx/5zZKOFGfrQC85VP7M/ADppWE=; b=GJMQvf0k4xZCYtvJ2+VKXoijk3qNKXhGK6kDK2WbMx5+DrTL9Dq1yWMabWvkD4MYpl Kjs8fR2mzUVTFH0srj9r+x6NGAyF1SYYGy5ngynW/2YsBoUgJ5JUNEFOiYBYlVc3zJ+E 1z88BsMc3dRmGcZkThfiYjzuII1mo1NLmKr0RbyHj5vxL36XYPQ6R9fso74y+Cge6Mf/ pRjuNpuhVGffuko5pkIL0CewAQ95ZMnAQSJ82PQ2OM3osfwFaZdVtu8eJhOKAL/VOSVN dEfaw9emcbjLgs+uOhaESzq1cJYq92NKS5JbMRj6AkyNUISg0B4cIzTkB6056GrWHXUv CRdA== X-Gm-Message-State: AOAM533CDjAJZyG6uqtSKLl/TciSyPvA9Y+ygvy1VgrJe2i7onK2Yn5A xhJosaqzx9E3U79K4+opOKU= X-Google-Smtp-Source: ABdhPJyuQOKQaP1k4yx1bb8YTA/GAEH2wIYZA+1TJ4gunRYB89gmzN5iYVQJ425ZtUl//4kqcvKAKw== X-Received: by 2002:a05:6000:1182:: with SMTP id g2mr57634636wrx.44.1594275974851; Wed, 08 Jul 2020 23:26:14 -0700 (PDT) Received: from tiehlicka.suse.cz (ip-37-188-179-51.eurotel.cz. [37.188.179.51]) by smtp.gmail.com with ESMTPSA id p4sm4178410wrx.63.2020.07.08.23.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 23:26:14 -0700 (PDT) From: Michal Hocko To: Jonathan Corbet , Andrew Morton Cc: David Rientjes , Yafang Shao , , LKML , Michal Hocko Subject: [PATCH 2/2] doc, mm: clarify /proc//oom_score value range Date: Thu, 9 Jul 2020 08:26:03 +0200 Message-Id: <20200709062603.18480-2-mhocko@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200709062603.18480-1-mhocko@kernel.org> References: <20200709062603.18480-1-mhocko@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 262F637608 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Michal Hocko The exported value includes oom_score_adj so the range is no [0, 1000] as described in the previous section but rather [0, 2000]. Mention that fact explicitly. Signed-off-by: Michal Hocko --- Documentation/filesystems/proc.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesyste= ms/proc.rst index 8e3b5dffcfa8..78a0dec323a3 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -1673,6 +1673,9 @@ requires CAP_SYS_RESOURCE. 3.2 /proc//oom_score - Display current oom-killer score ------------------------------------------------------------- =20 +Please note that the exported value includes oom_score_adj so it is effe= ctively +in range [0,2000]. + This file can be used to check the current score used by the oom-killer = is for any given . Use it together with /proc//oom_score_adj to tune = which process should be killed in an out-of-memory situation. --=20 2.27.0