Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2320027pxy; Tue, 3 Aug 2021 03:33:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxglF7qUxPey5ceqpYjB4SENAChqVUXPSUFURsRvVY5b4YpfoY1M/Si652LQaXHTjPdXo+C X-Received: by 2002:a92:ad12:: with SMTP id w18mr752323ilh.3.1627986831136; Tue, 03 Aug 2021 03:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627986831; cv=none; d=google.com; s=arc-20160816; b=nsMWI2vD0sR9DUBhGCXZyGEBAv58W5IgKHTgrCL9cPc9+Xbf9sZ+wo5udhejAaD1mJ lkhOUE7OEPrVj7VKgPhYP56KpY61COheRcdge3kMLKFWMb2VA2CIbryZr16i+j9wUyhT 4SE8R4+CO+CudeR8+qFS0TEheX8MzF4TyxQr3Ku3WoqirjHh5/ayjcyc1x1wGkyeYdyJ qK+/5I2W6l19y/jTJM4nHpifFQuR7tNermf3NaBScr7yvq1AicOCy4g8LU2hFBZmbs0a 1LOPB/4JtiL8M+415MzmYt9X3i2mNSXx2BEwyR02VzG63CFIgo9j/uJlynbWYlmJuo+L a+CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cbPTa2hEWdD7Y8ezaxCFaxMcbtkwVc60EGzp199OkUI=; b=WRVtmP4EFAxNNRgboReAneiZloKY8I/FxpTfmkOVT+wmo1vMkJ9gKpwIN3/M3qgx8r oWChrHXCt8u7rWpXH0dI1biYvSHeLYu3j9qi3slzjourWdnfAcC0AwOE7Ya0LeFiWt/J U58XJcQPgr65kWEPgT/5fZyD/zd/YtEMk/ElLmZFE05Be1uwb8NCzjQWeaq9yBPzU+jD VXC629AW6Z0ojtnKUnUOUjLYJ0T5s5kjJ1mvYZtZUhY7Y36pw6d2Ys+nbXpH75Z0G7PF FkiWpSFPDG1f0h9M5pflo9s8wtEi7VbjyV1Z7HchsTPp3S+L4/zIFzn+mk8JYuP6wOa9 +cdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IgwI4MQ+; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si14729738ila.112.2021.08.03.03.33.37; Tue, 03 Aug 2021 03:33:51 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IgwI4MQ+; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235223AbhHCKcr (ORCPT + 99 others); Tue, 3 Aug 2021 06:32:47 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:57979 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235229AbhHCKcn (ORCPT ); Tue, 3 Aug 2021 06:32:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627986748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cbPTa2hEWdD7Y8ezaxCFaxMcbtkwVc60EGzp199OkUI=; b=IgwI4MQ+9twVZqvHjZPiEqeXmTNhftHHunW/pNyynSa61Gsm7BlYXiZbDU+FQYpuVEmOJ8 KSJe+yuvi1hfJwOYNAX3l45e1q30sAoW7BnhXZIDKRJC+UgbVkHgStTiOpQZK0fvjyDVuA 5hpn+PE6GjyFlGTMP0g3M6t5xidBX/I= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-472-n1Xrql6DOGS5C6KKCGc9CA-1; Tue, 03 Aug 2021 06:32:27 -0400 X-MC-Unique: n1Xrql6DOGS5C6KKCGc9CA-1 Received: by mail-wm1-f72.google.com with SMTP id d72-20020a1c1d4b0000b029025164ff3ebfso767793wmd.7 for ; Tue, 03 Aug 2021 03:32:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cbPTa2hEWdD7Y8ezaxCFaxMcbtkwVc60EGzp199OkUI=; b=ApYph/4cXc2peO9lEfOUgLHkY0NalGsaIlZiOduv8gu9MpwJERWE5bhyS1j734StsM 9571Y/GriPr60zsMGXqYbQyEPkdz7ZhcvFqfGwqk5G/HaBg9CQAjlNi2HMhBr9mS5dWI FMgO4ppW3HJBgT81REmgCjnY0UmrADQiEQ9YIIqRLCYB/vNHE/I5o2efyxvLPh8KIKpL B7hCWK77upC2YZFSpxLK9AiVVD31hPfGLoB9NLBNKESV5LeNd0oNEn0we28sI6F27My5 lNz4zfbbwaHBy3m9I3ybfUEaItIHE3ZVMMSrIFZ0luRWrZqAJOjrWmU6N6kG+1f9QPRy oAeQ== X-Gm-Message-State: AOAM532D+dhr8OHxdaZWSD6MVOaQl0Hzsgi8bi/zR+8lkzOYfmP2jDs3 K7pl4vxxMRHDGB3iIVRFbwWMjqSwRbg5xcOgxaiOido3TGOEQHPMTHyoR7MBZTkwbEYHkYOUEhi bJv7TJ42L6nWdWG1Vq9WCZmY= X-Received: by 2002:a1c:4487:: with SMTP id r129mr3499611wma.62.1627986745758; Tue, 03 Aug 2021 03:32:25 -0700 (PDT) X-Received: by 2002:a1c:4487:: with SMTP id r129mr3499602wma.62.1627986745629; Tue, 03 Aug 2021 03:32:25 -0700 (PDT) Received: from localhost ([79.67.181.135]) by smtp.gmail.com with ESMTPSA id d15sm7442140wri.96.2021.08.03.03.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 03:32:25 -0700 (PDT) Date: Tue, 3 Aug 2021 11:32:22 +0100 From: Aaron Tomlin To: Michal Hocko Cc: linux-mm@kvack.org, akpm@linux-foundation.org, penguin-kernel@i-love.sakura.ne.jp, rientjes@google.com, llong@redhat.com, neelx@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mm/oom_kill: show oom eligibility when displaying the current memory state of all tasks Message-ID: <20210803103222.wethf6pj3rh2b2uq@ava.usersys.com> X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 References: <20210730162002.279678-1-atomlin@redhat.com> <20210802151250.lqn5fu5pioygsry6@ava.usersys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2021-08-03 09:05 +0200, Michal Hocko wrote: > There were some attempts to print oom_score during OOM. E.g. > http://lkml.kernel.org/r/20190808183247.28206-1-echron@arista.com. That > one was rejected on the grounds that the number on its own doesn't > really present any real value. It is really only valuable when comparing > to other potential oom victims. I have to say I am still worried about > printing this internal scoring as it should have really been an > implementation detail but with /proc//oom_score this is likely a > lost battle and I am willing to give up on that front. Understood. > I am still not entirely convinced this is worth doing though. > oom_badness is not a cheap operation. task_lock has to be taken again > during dump_tasks for each task so the already quite expensive operation > will be more so. Is this really something we cannot live without? Fair enough and I now agree, it is unquestionably not worth it. Kind regards, -- Aaron Tomlin