Received: by 10.223.176.5 with SMTP id f5csp3279325wra; Mon, 29 Jan 2018 11:13:08 -0800 (PST) X-Google-Smtp-Source: AH8x226css5R1dX1Jw8s0MlbuWFvVaGu7vjp3A3AMxoRnx+Dg8sxu0EUThvxERFDqWvYQ/cLk1a6 X-Received: by 2002:a17:902:bd47:: with SMTP id b7-v6mr22676869plx.300.1517253187964; Mon, 29 Jan 2018 11:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517253187; cv=none; d=google.com; s=arc-20160816; b=PIdgRTQpr4vlMKMiEqU1IYrS+2D0NH8NkME1Aq3RplfPl9ir9nrV7ZKYYy5OxYF3hA NruqLVuOOUJXLskn7Y1uhS6d5qA/343MeFiBzq9bUhRTeNFSOHhCJ/ywqfH2nY7UUl8q M19B7UygEgqHka8lsShOAzcBrjuVmWGfEeAsaKk9OQ/bF3H8RujLGKj9zMTRV/v6tq2S 1EXG0nycZKI40Fb/fFaYGjknuAjeSpLbL2HF6U9v/3meiMneElFs1y8CxoHvtkE1IwS1 hIsl9Y+zSQUJ2D6bouvSCEW+m0lyVs4TiYGioqp5hgTiANU5t+1iyfpQieCfLv93WAmP /BUg== 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:dkim-signature:arc-authentication-results; bh=sEY4FAXJnQkgtEeq8rKVIY12bu5wu6D5y3KdOgaL6Oc=; b=rxX1M1Z9IJwrvUAQpvTW4CvZ/FfLBQUk6ulHbdHw3Tj4E7vtGSrkbfYCnubL9ucSkI +y3/0BiUXTiHI3PGGwYfZV3b48XVqxFEBrXAuXFrtVH3cOEI3vadPlRyW+FKmInfVKGJ g3jSdF0pIYhCDes4lrYuO4oMEjs2Ov6ieQo/a0pmChCpXfncf3MeySCATTQGTMtbd3Iq ksCeLb9vY08aWSgHreN/E+0CKngM92dFhUN9lmGjwdUar2j9X33gAMgKtLeNBBUWgQU1 oy/w+GvY1cYKngq0bvLEf9BAOPhMkOs3xSGQ/Bs7SVOwRMFzO3oHtDy1rvZxWFhFm95l mGJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nc9Z8CeU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si5761344pfa.311.2018.01.29.11.12.53; Mon, 29 Jan 2018 11:13:07 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nc9Z8CeU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751534AbeA2TLp (ORCPT + 99 others); Mon, 29 Jan 2018 14:11:45 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:38781 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbeA2TLn (ORCPT ); Mon, 29 Jan 2018 14:11:43 -0500 Received: by mail-qk0-f194.google.com with SMTP id t134so6956916qke.5; Mon, 29 Jan 2018 11:11:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sEY4FAXJnQkgtEeq8rKVIY12bu5wu6D5y3KdOgaL6Oc=; b=nc9Z8CeUcEe1iY5o8LdyuPdPKH78yAw+qyWjHJKC/d1Q9vjzzv08LqJ0WYBOSg44T/ klwjYaeCVg/9IG0ytfJsEd9D3NkcSVuhOn8FvfTIRNQ8mE7X8N9QCJ4plhlXnL6K5Kpw uudZhqqwScuqTYvyXl5czwyCgLN1sDQaUkSeCGVu9VTxx7eOj8cTKmH9e4/RoYX9z02Z EFvxdOB4qSNuBvqgS3480otVhjEE/If7Yl2wzsqRxhNY2lUfrb3l48qw06eR9/nW0CpI 64Wa3P7nCwbVdJbWdHj4t9jnkICaieVVeWP8+nU91pIdC/sa32DZdz00b1/bvU2q/Jyb qBbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=sEY4FAXJnQkgtEeq8rKVIY12bu5wu6D5y3KdOgaL6Oc=; b=fXpSjOr8Mj8oKWvETwXi6L5PRqki41CvyeVi3TMGPu49md0QyPdO1VB6XICWZ5SYzk aU9Y2cFnjresP7r98cp7sOkrS5RxbeOUJ4ZBswQWmThHCnHpWMpAzUXPlvD0EqkBaz4X gV4mz86m4qHwn0Jef6FWNTdxuiATNKF8OJC5239N4FulOAsmTjBe3inPPAJDFwjWQQdT xMwqulL7Q7522aYoBFVJ+Nsju1o16vyWxKGs9nrtOVFJ+155RggIgs1ohZiPsl4um3UU DBoyzBnHMIXjwVMkvZvvP60/NcozIYXyso4+8pzDfwUkJFXqZyw9TJ8jC4Oj2+YfJAC7 pJ9g== X-Gm-Message-State: AKwxytfEGQKITGqigCrI3I9BADcuoXegOHHJsg593VCWB4tQdJSjB43U c2qhYvA11vEf1SzhgZW7jKs= X-Received: by 10.55.2.83 with SMTP id 80mr36465352qkc.203.1517253102488; Mon, 29 Jan 2018 11:11:42 -0800 (PST) Received: from localhost (dhcp-ec-8-6b-ed-7a-cf.cpe.echoes.net. [72.28.5.223]) by smtp.gmail.com with ESMTPSA id 24sm8630585qkv.64.2018.01.29.11.11.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 11:11:41 -0800 (PST) Date: Mon, 29 Jan 2018 11:11:39 -0800 From: Tejun Heo To: Michal Hocko Cc: Andrew Morton , David Rientjes , Roman Gushchin , Vladimir Davydov , Johannes Weiner , Tetsuo Handa , kernel-team@fb.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch -mm v2 2/3] mm, memcg: replace cgroup aware oom killer mount option with tunable Message-ID: <20180129191139.GA1121507@devbig577.frc2.facebook.com> References: <20180125160016.30e019e546125bb13b5b6b4f@linux-foundation.org> <20180126143950.719912507bd993d92188877f@linux-foundation.org> <20180126161735.b999356fbe96c0acd33aaa66@linux-foundation.org> <20180129104657.GC21609@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180129104657.GC21609@dhcp22.suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Michal. On Mon, Jan 29, 2018 at 11:46:57AM +0100, Michal Hocko wrote: > @@ -1292,7 +1292,11 @@ the memory controller considers only cgroups belonging to the sub-tree > of the OOM'ing cgroup. > > The root cgroup is treated as a leaf memory cgroup, so it's compared > -with other leaf memory cgroups and cgroups with oom_group option set. > +with other leaf memory cgroups and cgroups with oom_group option > +set. Due to internal implementation restrictions the size of the root > +cgroup is a cumulative sum of oom_badness of all its tasks (in other > +words oom_score_adj of each task is obeyed). This might change in the > +future. Thanks, we can definitely use more documentation. However, it's a bit difficult to follow. Maybe expand it to a separate paragraph on the current behavior with a clear warning that the default OOM heuristics is subject to changes? Thanks. -- tejun