Received: by 10.213.65.68 with SMTP id h4csp961455imn; Wed, 14 Mar 2018 05:41:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELu3bjPhKLFmXZWeNIGfH6iis9EFFjXkLP5g6H6p6QBX+NTkE3LIi7i0EOXCX87ZOONfAMNK X-Received: by 10.101.72.199 with SMTP id o7mr3566147pgs.303.1521031263204; Wed, 14 Mar 2018 05:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521031263; cv=none; d=google.com; s=arc-20160816; b=rzceNKGxU5aBeYzuubZi9mmzdcLr+DV+zb0qt6P2JsoVrAup3BNI/8eaNcgONGjplW 7pfhWYk8x8t3GaLA/jHzUwtFNP5yOVm9Bry5BPcS4OmmrbbYpvEivV1TZ+mKFVeZiLiz NPc0dip5hFr0mf30rr5orF0hXMp4/fdrlQL5HcJTeoANpah5ahH0f6+XdPuxUwVr3332 e8fczVmUl2N0AfIZsivyR+ENEL19u+AMvl4bmAOfiYeTzmPSyBF0nB9ZBPsMMSFu6nvc n0CISiFFeMQcq5ofYYe91WdGBW72XMfoMDYaLoMeyvDkMTiGVUHOjeNjLgm/Wfg03B0P KKXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:arc-authentication-results; bh=Dy6puvisM2mT62ReAIi2nSU52U2txJ2w1dbH9f40fEg=; b=k21JH7ou5AZns0mQqJRygdBa7QamUjTXWYlUCtTgCRLyWxqUYcYlXX0bYvEXIGY7FI 4vmsqbniEOiMITvvinn6inVIu+O2FNLP5NBYKO8BlMbSgALYaWfxSbQZRTM9ogqZro2P FFFweCOQ+G0YIrGB2vReFfoeTe6FXdZ3i7wcvyJ6E8mGU3Wg+Z8YsVYuKCsDPr6qz8P+ xiJr0pomYW14tp8mXw7w+HrhYK/YsRiGVTmCcJkcm/T0hfURnO8KFknVLd5XlYJPsPkQ W8670+8U2Th3ohasHk5dBielY1Ftf62kAxGaAcO7bhd5i/m07jyMmQYVQY+RqzuBzo0e LBDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=DBbk0wmO; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=jqUvSzIg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6-v6si1922001plm.448.2018.03.14.05.40.48; Wed, 14 Mar 2018 05:41:03 -0700 (PDT) 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=pass header.i=@fb.com header.s=facebook header.b=DBbk0wmO; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=jqUvSzIg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751543AbeCNMjY (ORCPT + 99 others); Wed, 14 Mar 2018 08:39:24 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:35586 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750905AbeCNMjW (ORCPT ); Wed, 14 Mar 2018 08:39:22 -0400 Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.16.0.22/8.16.0.22) with SMTP id w2ECb3CM015058; Wed, 14 Mar 2018 05:39:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=Dy6puvisM2mT62ReAIi2nSU52U2txJ2w1dbH9f40fEg=; b=DBbk0wmOCYBD2OR3DKdhyjHL2jFD8r2fqT0/pell33AmXWjS9gKsng4xUDrrVYKz6F1N ctiJ4MvyLFPZPpZcTZpxx3A2U/Fhg6y8Z03IJ3LPFqnLE9kaJILERBRXTcXSPF+XjEmR zhOPa+C2A7TJdO0XRRKLUX0Qwz15hmCcrVo= Received: from maileast.thefacebook.com ([199.201.65.23]) by m0001303.ppops.net with ESMTP id 2gq2aw06qw-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 14 Mar 2018 05:39:10 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.28) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 14 Mar 2018 08:39:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Dy6puvisM2mT62ReAIi2nSU52U2txJ2w1dbH9f40fEg=; b=jqUvSzIgRFSokSeO98iVpDiB5LC6YoNXGZnEcFJtczyG1/0+nFKQhP9At3U9r3GeprKiuf0n/p5Mg4HWciShp6m4RANSTlv5wZ07Ye6M9QDrgwQYJV2ilDnadqIylpeaH1KDvu26kPFNSPL9ha/IScqPBESsrVFLhP7MIcOUoSA= Received: from castle.DHCP.thefacebook.com (2620:10d:c092:200::1:aa00) by CO1PR15MB1077.namprd15.prod.outlook.com (2a01:111:e400:7b66::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Wed, 14 Mar 2018 12:39:04 +0000 Date: Wed, 14 Mar 2018 12:38:52 +0000 From: Roman Gushchin To: David Rientjes CC: Andrew Morton , Michal Hocko , Vladimir Davydov , Johannes Weiner , Tejun Heo , , , Subject: Re: [patch -mm v3 1/3] mm, memcg: introduce per-memcg oom policy tunable Message-ID: <20180314123851.GB20850@castle.DHCP.thefacebook.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [2620:10d:c092:200::1:aa00] X-ClientProxiedBy: VI1PR0902CA0038.eurprd09.prod.outlook.com (2603:10a6:802:1::27) To CO1PR15MB1077.namprd15.prod.outlook.com (2a01:111:e400:7b66::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 39f3eb8e-a465-4910-263e-08d589a893d9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:CO1PR15MB1077; X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB1077;3:nDzPawswvMSBbpIp1cP7G8EjiCDjz5WjpscFlepMSaqc33DCSJsTkT1aNPzVaEH2WmK8cdsef0ruqMHK1ayL7Tkri2yeHin3LbdAbvSFfzAdorg6TFDWatOcmqcvuksF9YVOgHMF6dxVg60+k7t6b8E+xQT2SoNTt4Z4xIbWVHhEBRm0GWZRg2obb9hYsExokQBzPr5teutMdIhZU+cVSf2c9Lv2we9iKQ53yIFpgsLxCXpkpFxIb4UDrJxdZDn3;25:h916w7/e5n2uC9AiriCKHRp+n5RUvyFxaY0tRvtuxuAsk1UTRgnvX8VpX4t/pqt5OqQV6To/t5IyXTZqPugH/WeYZuUK63eZ1c6cSOx/YhZcH12lwhCI0LEzYUSB3r01IbetXFoAhLLLlq/Ck+UCko3qtBjPE4IpF8sqAOY7RaVzhvzYhJK8gihjLRbxUiBVDAUIeH0DYjzAuenPMho5GbWslA4ZFOPWU2heW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7HckPDdKO7QgnFGXhhZHQvXTtn12WZ0qIyOM6LnGBMuM/21eJ7B3nKAuE5wr41VkGoMZzs9pBQYIlyojjSZzNpnv3rABqhsixC9/Y31mKp6hUMMxcRasYViYXtRmsapvOAr52r13Jh0dSHWoAI5SLQTGlqzQP+/UFwOOFBPy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(11241501184)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CO1PR15MB1077;BCL:0;PCL:0;RULEID:;SRVR:CO1PR15MB1077; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(39860400002)(346002)(376002)(366004)(189003)(199004)(9686003)(53936002)(478600001)(47776003)(55016002)(106356001)(2906002)(25786009)(4326008)(68736007)(305945005)(39060400002)(33656002)(7736002)(6246003)(46003)(6916009)(23726003)(86362001)(1076002)(105586002)(2950100002)(54906003)(58126008)(97736004)(186003)(316002)(5660300001)(16586007)(229853002)(16526019)(8676002)(386003)(50466002)(81166006)(7696005)(76176011)(8936002)(6116002)(6666003)(52396003)(52116002)(6506007)(81156014)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1PR15MB1077;H:castle.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO1PR15MB1077;23:86DRFsOCJ84PxZe8hWPXAxH2IAFf4Q7wZxkherRdn?= =?us-ascii?Q?Gy3o5+U7fr8uUOrjnXBP3IzKM7ROOdqApW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bgx24uEpghNsPrRff4iMF9E/CyeZKC5xzzsO93gIU3+W+RH4uQBUwxMoJfNMim/GI42jPs0=;24:mIqpK2YH7EIKpb4cTl0BxwcnlGgPHh2S7IDlDGh3cPGPuW09qQQwCyUs3Eh0GcZtWWWMs70l0kkqMy55gaZpSP2U4iV+fAPc23i9Gn06Js4=;7:hk3bBHWv+3d0y/XP9eUGzNjYMB3weDpR/DuCT/ods5uRIMI9Ep10tcslPJVnLUbjZGNNO0gL2oYcqKAxbCpkuUEuNw8SGuVu5hPuivE+JYmKKYwDcC2sycbOOeBzDlHNRUQCRt3nvwzMjolMUa2tXYolyELWZnMsnA2xni6wFiyhlxw9FyF3V2XjF0MU4a+KehX4IhmwXAg86+KfXAgOg7WG1XAiztIB4PTPlUR9hBW+IKEdZVdvXO2eRGI7dTlg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB1077;20:9zBVDDDQlAizESkmZvD0wOJU0ozANfFng47jzd7+aWyd41dki1KjsdneXZcUhD0mUZPe+JxmrFw8AioTRCkrdr1DCIqi1UDNWpKDntocpHKolrfMS/nLyDONLTchRpTwCgApNnvi1MCvkjNryDXokp45X5dG/AENyP+Js083aD8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 12:39:04.8441 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 39f3eb8e-a465-4910-263e-08d589a893d9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR15MB1077 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-14_06:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 12, 2018 at 05:57:53PM -0700, David Rientjes wrote: > The cgroup aware oom killer is needlessly enforced for the entire system > by a mount option. It's unnecessary to force the system into a single > oom policy: either cgroup aware, or the traditional process aware. Can you, please, provide a real-life example, when using per-process and cgroup-aware OOM killer depending on OOM scope is beneficial? It might be quite confusing, depending on configuration. From inside a container you can have different types of OOMs, depending on parent's cgroup configuration, which is not even accessible for reading from inside. Also, it's probably good to have an interface to show which policies are available. Thanks!