Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1156304ybt; Wed, 8 Jul 2020 23:26:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkT+NOp6um7GpKG80ROtHljesbCG1Dnk4eaLtoSXFBnWzKySvBbtegK+i2zcr8A+Tdy3lw X-Received: by 2002:a05:6402:1ac4:: with SMTP id ba4mr67907190edb.60.1594276007486; Wed, 08 Jul 2020 23:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594276007; cv=none; d=google.com; s=arc-20160816; b=jQZn8cq+Rx0Bbnhp3qhHwtazNYdwKal1ibX2Hz3LHSpoDXIQwqOurtYNV8YM7RxpNx XpzDTdjdAhR73/Fhafu/yy11Zf6YWR8X87rL2OD6qzHYhikw+5xuz+DTdr5tgyljETtu 799rbB1h6eyGckff/fqdqUt8AiJqUdS2vZV8VWzOv/9cCSbARONoOhdX1bFzI+wNNpwa o+EFqo+TIdUmjr++7DmlM4HbSgODw+7lVa7Oci7xiZeF0am50P5M0oJAU1UXX9p5OnxB PXPsuDL0PZXGQOSnNAqzdk237IUjKwkXh5saeuE0YYUl4nO6f8N7V/6Q9LEn1r0dAUa3 AmYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6NZSnpbUFjk+i8hote9Z3Fy5fgxJodX2Ccl1BtVgBd0=; b=M8ad/ruLM1FiQgYw7GgZLQfaIEQp99YsUZnGwUBBSAJamEWw1+4rN3+beyq4dUSxVZ A7eZg27G8doNUe/X19T/HWzjG9rgntsL6BKDOLmGTl942hYZz/0M8/TZiYbn+ar1ylGm /tpbmA5syRH0YHziXmpjDgRg4ejr8gvsM9Sei9mlPS7UTLCKQrpTbI3PuJsQ8jDd1Bnq MGduAwOgT1siY2r/skv0tiGP7fd+lodBU0QJTP5dbQgZQx1w/8HlxHtrRyNdhxqsPfiz ZLfrGBwErLYDsAcF35rAWgGmXYuFogagfWi2nTaiP7PSlKocnWjEZj6zMzAmhPtaNw5u gG9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si1202684ejj.516.2020.07.08.23.26.25; Wed, 08 Jul 2020 23:26:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726185AbgGIG0Q (ORCPT + 99 others); Thu, 9 Jul 2020 02:26:16 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43007 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgGIG0P (ORCPT ); Thu, 9 Jul 2020 02:26:15 -0400 Received: by mail-wr1-f65.google.com with SMTP id o11so1030125wrv.9 for ; Wed, 08 Jul 2020 23:26:14 -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:mime-version :content-transfer-encoding; bh=6NZSnpbUFjk+i8hote9Z3Fy5fgxJodX2Ccl1BtVgBd0=; b=IrQbDeolmkNk2z4S8sQRCmpJ0Nd70CJY/OgOZuOZt4RSXHWTAhT2QmEl5t1Q371Yty JN9HAXz38j2oAX+b30YxQ35Dq7yEyJ/qSbE5sxP+SJNk8NjzlXfQ8R9H9fpeEcpKSSG4 DLCISZnPdUgdoESTfdnfWNbEgHVMSY63EpYG+/+AdIc38opOHj06jncc2uKk1gUG+Tlz eGFhx1Ts2RBt/ySJ0tN8FT53zBU+CaDsJy2rYHP9Hd1+S76Dmx5vcRotALyDMu574rIK TxJKLhxiFGscHixA0M9nSj499KOenL3HPZlb4mQ8WAtY2wEqCi/q0FZg8Z0GF7gC5Q07 WmpQ== X-Gm-Message-State: AOAM531DBZbFZi64ZHJYvD6Icb3RNkMn4R6wIfoV4M3vQ5XA9D3Coxn5 BIGYDz2tmA21xBkEyzBnBPU= X-Received: by 2002:a5d:4c82:: with SMTP id z2mr59134849wrs.287.1594275973500; Wed, 08 Jul 2020 23:26:13 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 23:26:12 -0700 (PDT) From: Michal Hocko To: Jonathan Corbet , Andrew Morton Cc: David Rientjes , Yafang Shao , , LKML , Michal Hocko Subject: [PATCH 1/2] doc, mm: sync up oom_score_adj documentation Date: Thu, 9 Jul 2020 08:26:02 +0200 Message-Id: <20200709062603.18480-1-mhocko@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michal Hocko There are at least two notes in the oom section. The 3% discount for root processes is gone since d46078b28889 ("mm, oom: remove 3% bonus for CAP_SYS_ADMIN processes"). Likewise children of the selected oom victim are not sacrificed since bbbe48029720 ("mm, oom: remove 'prefer children over parent' heuristic") Drop both of them. Signed-off-by: Michal Hocko --- Documentation/filesystems/proc.rst | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 996f3cfe7030..8e3b5dffcfa8 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -1634,9 +1634,6 @@ may allocate from based on an estimation of its current memory and swap use. For example, if a task is using all allowed memory, its badness score will be 1000. If it is using half of its allowed memory, its score will be 500. -There is an additional factor included in the badness score: the current memory -and swap usage is discounted by 3% for root processes. - The amount of "allowed" memory depends on the context in which the oom killer was called. If it is due to the memory assigned to the allocating task's cpuset being exhausted, the allowed memory represents the set of mems assigned to that @@ -1672,11 +1669,6 @@ The value of /proc//oom_score_adj may be reduced no lower than the last value set by a CAP_SYS_RESOURCE process. To reduce the value any lower requires CAP_SYS_RESOURCE. -Caveat: when a parent task is selected, the oom killer will sacrifice any first -generation children with separate address spaces instead, if possible. This -avoids servers and important system daemons from being killed and loses the -minimal amount of work. - 3.2 /proc//oom_score - Display current oom-killer score ------------------------------------------------------------- -- 2.27.0