Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2863950ybl; Thu, 19 Dec 2019 23:15:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyIWN9xcP9rHvJHPc+xdNGNeWg/tTebrl5O/6Ak7bhaEdZ5miO4gJccea5q+sxach0uymh4 X-Received: by 2002:a9d:4e97:: with SMTP id v23mr12538640otk.201.1576826139485; Thu, 19 Dec 2019 23:15:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576826139; cv=none; d=google.com; s=arc-20160816; b=mZLdixBoVLSFFOBqXMxIsQmd18XgZXV/7mpUHZc3ABYSTmnaDbt7uX9nR1n92x7DiD r8fh5OPewvLmRis/qxat3cziPg92h7FKKfojBcEBRsahxg1e4gZoJBsFH0zHQSnz73yW MxMUHogvy9LL5eLtyrleHnSkFOLYFjP28B2kkPh0K5iw+OlLSa9EYrL5ZVtIKJLoOhkB PphgckUzAFtSoPYLQAwtosE8hTKZhP3L27kXNlLJZRpIiSwl88wUJW29PfCnkQEsR0sM Y7pwC9BSVWjEmCq5vXouCWYOkdsqmz8S3J4aiFhDWm5qc0mCVQHyWyf0O0LOHtQbLgaQ hD0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FOQzWpHfx4pdEUl4NggtZJqU0xFxHqL/b5XZR3ZC39E=; b=cLGiIMClxTj651gLtIQegxrKHZwDbiOoAAl5wJIbE/PR5SplOHJdm/qGlphM36ko0u Q5ZhA2jmgCRMV158EVm3+dp84BLBI2hc13RVcRZSNMJoEQfh6erbE/42WRQrlofkygVm 9gtU+AKneXenJK+TOTRpPu6caPQvfq6eVp9x/B8C4DfeVHQLH+c3Zig6jDWg16otcegu IT1AZhQ8Q87h3Hh0XugXpowu+tnhn+EARD32q6aVv3Z+p+P8dCjHiG2uKrKJ3ebdV0MB ftw+ZGx2hU4Z73qeoEy96Tt6l3bHXsKRTwQdztAwVZg/Gezkd9cg7uZhCs7KNeS75vId ECiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si4538075otq.134.2019.12.19.23.15.27; Thu, 19 Dec 2019 23:15:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbfLTHNh (ORCPT + 99 others); Fri, 20 Dec 2019 02:13:37 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45464 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbfLTHNh (ORCPT ); Fri, 20 Dec 2019 02:13:37 -0500 Received: by mail-wr1-f66.google.com with SMTP id j42so8309245wrj.12; Thu, 19 Dec 2019 23:13:36 -0800 (PST) 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:user-agent; bh=FOQzWpHfx4pdEUl4NggtZJqU0xFxHqL/b5XZR3ZC39E=; b=QkGVKx++/WV6H4PtmjKdkwN4r8XbhV9bLtp6el9zG87BCvk5DoWsjDhTEFV5beMA8m LlOvVMuzWcxKCQv55Gv0rx9sYHQC6bpIZtfhTtBoFaEzRpcAKXg73PpNUbH+lNmpJOeL Z/eB//GPeKU/fuXX6XOod/hyCb1wzssu21pH6byoydZQm0hmA9PygZOoBRVjfP3oHuc3 nubRBDhGb4CQtGpoEc948GLFBb6ZOI0UfYM5IfUicJho+FQrDZVdJPC0gJDYLxboZkz+ P0ZrFAOofGhKbALH81zsPwjn1RyOguKxLCDZEtxudLFl8vlRoTJnGh1EoXTLsR7Gvh5J w+6g== X-Gm-Message-State: APjAAAXxQkJ2Bb4F2HNrer0N+buuIof3L4PqFiYjfg9dIDz7EfBJldkR eAIBN3t0y03IGFcUBpeOkXGdF83n X-Received: by 2002:adf:f7c4:: with SMTP id a4mr13025777wrq.332.1576826015587; Thu, 19 Dec 2019 23:13:35 -0800 (PST) Received: from localhost (ip-37-188-150-151.eurotel.cz. [37.188.150.151]) by smtp.gmail.com with ESMTPSA id g7sm8987211wrq.21.2019.12.19.23.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 23:13:34 -0800 (PST) Date: Fri, 20 Dec 2019 08:13:34 +0100 From: Michal Hocko To: zgpeng.linux@gmail.com Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, shakeelb@google.com, linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, zgpeng Subject: Re: [PATCH] oom: choose a more suitable process to kill while all processes are not killable Message-ID: <20191220071334.GB20332@dhcp22.suse.cz> References: <1576823172-25943-1-git-send-email-zgpeng.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1576823172-25943-1-git-send-email-zgpeng.linux@gmail.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 20-12-19 14:26:12, zgpeng.linux@gmail.com wrote: > From: zgpeng > > It has been found in multiple business scenarios that when a oom occurs > in a cgroup, the process that consumes the most memory in the cgroup is > not killed first. Analysis of the reasons found that each process in the > cgroup oom_score_adj is set to -998, oom_badness in the calculation of > points, if points is negative, uniformly set it to 1. Can you provide an example of the oom report? -- Michal Hocko SUSE Labs