Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932456AbdIGOxR (ORCPT ); Thu, 7 Sep 2017 10:53:17 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:60726 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754005AbdIGOxN (ORCPT ); Thu, 7 Sep 2017 10:53:13 -0400 Date: Thu, 7 Sep 2017 15:52:39 +0100 From: Roman Gushchin To: Christopher Lameter CC: David Rientjes , , , Michal Hocko , , Vladimir Davydov , Johannes Weiner , Tetsuo Handa , Andrew Morton , Tejun Heo , , , , , Subject: Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer Message-ID: <20170907145239.GA19022@castle.DHCP.thefacebook.com> References: <20170904142108.7165-1-guro@fb.com> <20170904142108.7165-6-guro@fb.com> <20170905134412.qdvqcfhvbdzmarna@dhcp22.suse.cz> <20170905143021.GA28599@castle.dhcp.TheFacebook.com> <20170905151251.luh4wogjd3msfqgf@dhcp22.suse.cz> <20170905191609.GA19687@castle.dhcp.TheFacebook.com> <20170906084242.l4rcx6n3hdzxvil6@dhcp22.suse.cz> <20170906174043.GA12579@castle.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [2620:10d:c092:200::1:7e21] X-ClientProxiedBy: HE1PR05CA0193.eurprd05.prod.outlook.com (2603:10a6:3:f9::17) To DM3PR15MB1081.namprd15.prod.outlook.com (2603:10b6:0:12::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c41a99e1-c93f-48d4-a800-08d4f6001f45 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM3PR15MB1081; X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1081;3:m+ddaqIrzOkKGDS3Uof0yAPlWZKhSj6Exn+oj2AswIQg5pbjhcj42Fgd9DaVY12kB5XlqXa9V+7/a1H0dGVhosRMY608d4zAaHg33waWqXNRbWPfrAq3Z5rkiVC3p7FajSiXdfOH3DZgByabqqtxkmv4Kv5na96TN57fboH4GybV/SGzEJzVt+uwfLmCuN7hp4DcV16cT+yanI58zIpZmH3JCiZr1yC356FXScTxL8X7htj/vOLkoT8kYyj4gnnh;25:EDzBnh89EjNTyTvGKgVZsics3VJR6En3d7nm0xJ+3kYV5SwyafHSNEmJKerpPGOtgNndmVMGVCQ0r3CSfjVBAZ+NUxDNiP/8m/lSIk3GWKEcsQ/7UTQwpx3NQ9M6E4PN7DdOO3k9uuIawojFdYe7Tvjs0IPcs1GsWb1KifjVc40LzTwBIlfPpQLiOAlaYMTljMDm93lSghamZpUVXkmeQJtn4LgV/fVaMWLf4Wre8hpnAjjPoFOvhUZZs02bZ39CzaiXtGpKx8ypL+0MYLkQBbKhVJPXPP27/eyQ46w3h9zS4YIve1EXZgqC+h0uKupHZPJ79XR9BP8dZIq8nE46dA==;31:jJFFSIvKq9cDoAPE2cyl3zSvNrSHnrb6D9TwEQ3GaSlbyjCCxgL0lTZCos/XH7jQpESBCXFzYCGcdw6+2f//YtMmwIt36Cu334nVMxXXzZTOJ4gvC3E0oTKpryGZWbPZd4x4nm+6J0hAt56Jrtu5Sm5za1+QcKX4oOwa3TKaNskSSSLoLLF02EPdIRQqV0P2NmY1Kzwoo/j7KSbMf6chiC7mWlrdNZ6rVNFIjoHHLLE= X-MS-TrafficTypeDiagnostic: DM3PR15MB1081: X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1081;20:NeXZEVTCxi6zMfgphyOYPHs5ErU0YUx2q1HSFBkQC12Z0W162Ag521WUKgGxyKsJSi5SmXZLCHVWdsQJbzB1eKdaGJNQussBWb0PrAPn1enPRgWku81QCqYa5ex+9I5sLnYR3Nrf7tBmy38nut5Fv9mXZy2hOsah4E4H1qr0wl0tTuXRq8G6+hkY484gTdgG+7npBBthpYLAGNGF7itnmd0U6MsO0sy9WquKwjKFKHSxqqxaLM1MBgHmXzwmYbMYdVVOfquzkHyKrLbkhlHB8KAbismNkW/sFE0u+A4NEsPmq2ZLHstM8SUZmh0GRYZz95+ijy8QRQDnNlQivGg5rA/DaTz4zg1Zs3nrw87ZJz5ETth+oUtcB+1zzQG3hcu+68HmchFa5Btz+zocA9ph8K5JAIq8ES6Mw3yP34//EIgenUWGK+vg4T1LnIiZ94LmdNcSKgqW7DJ6T23TBCdpdAU0BO4Ac3mp4793MxfOCK7P0joAh0J66i0xILomzqzy;4:44fZMlx+rzlT30dEkbAwHat0yNJ3tIuHlq7wutjoRX+YMNhMu119hNUXe9AyZgKy7KKimETbJc3enjuzwm/RGhxANTEXZvYKAphYMvuIPzL0Fs5LcWJCG1ZkJ4dtgcmgqOOg8go8ugIO+ed7yqNj4/ImRIn2+ReRC85I4sf6hjLvD59ixURghZlWdNLyJwHypKRLFBOq9M2zdWplHr5i47XReJzb5EbuPCVJda1D8DBpl4UvGVF3MbxZ9qcAlvZ/ X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM3PR15MB1081;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM3PR15MB1081; X-Forefront-PRVS: 04238CD941 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(199003)(189002)(54356999)(189998001)(23726003)(6116002)(81166006)(83506001)(8676002)(8936002)(93886005)(47776003)(68736007)(6666003)(97736004)(4001350100001)(2950100002)(6506006)(53936002)(1076002)(33656002)(81156014)(2906002)(6246003)(6916009)(39060400002)(110136004)(9686003)(5660300001)(4326008)(54906002)(55016002)(229853002)(101416001)(50986999)(76176999)(478600001)(86362001)(25786009)(7416002)(7736002)(305945005)(50466002)(105586002)(106356001)(42186005)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM3PR15MB1081;H:castle.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM3PR15MB1081;23:lcGuY8fFu5+zlvXuKAlYwV3f5RGrqOdBLC16TPExE?= =?us-ascii?Q?ppYhWDiftgAKnQPG2sBzHDQMtfVA6pd7mvsRwkFUZQW+Zi86kC6yGLcflHSk?= =?us-ascii?Q?8jIsH9syQRDPlBEqERZsvG5mKvTNoOmf2yZq8HPvFFHxGcztt7bW/+nrQ7wy?= =?us-ascii?Q?qtIBXjqQnJHuMo3ASIg1NfZ5107M10Ar54OGp58LzeJFb68b6+E6tqW6OgL8?= =?us-ascii?Q?pzd70SK4JlYIdT6SebLMyD8MMJKv9gAEbSaWDgz9e0w8se/B0gZqiAHD3RLo?= =?us-ascii?Q?OqJSEbqnmirduRYgh++HYH9vQPhHtEOK1QCFGUo7u468b/J+l4S81jWXlIsd?= =?us-ascii?Q?3fQwpWapMxYyvayww5tTf+dUOzSpFpNSJY5RQRnRB/uyDXgKrZwD34pGQhLW?= =?us-ascii?Q?7usQ0HFNMuc2sM0gftj0yS5a0dbMEN15Qs/Bz5c1sOzYF/SYrDOAZ3kP18YW?= =?us-ascii?Q?mX+dJOp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U8s8mNAC0TIxC4GI6Tf0CsBx+ISUPldYZZrswJhFkaK1+D2inZNj65/PLt+f+DCfwasEpvYibmMCwZCCip8cycmIYPk1vplTHg4M81RNcwvlfbjoCbGz2/ExQtdWn199HxLUcuBEfIQjIH+1XhOLgLhUYNrDphivP9UnLu88S79Bi655Oz33NULkyGaYH+hTLEpgZ+1RaQSBAWPtEo400ihgSvmDBegsQ==;5:YzEQHCdWkgnIJss/jGqv0FL8ivdzljllM+D7hsFKxxXogH74vBy2SHZfUyb/LUFZJmMZfb9Qltt846TKemlXpY+L8YdzUlhvDAI4MxhK3eJegWHXgpeQJCTswTsBFtfxcmL3nSnCUNbWBSu725cYIg==;24:Zc3Lk9ldq7XSwpz/Q8qbBNh7LimaagFLV7BqASIkEN2WXtdvsL5KDuAtNHualxAfH8lf2GgYYiluSX6nPIETDcdSeKDXWuHuojPIsH3QzSk=;7:ZgAUP5DrEKZ6QKH2T6oGq/UerrMO2wxSTK4n5VwXuEIN9cAsAYzGVUVb4lTsO1FsfTZxUYpKF6GprgaRqIxdcc1QDqRFsJ+H7NPCXppvZe5qwIidSom8+6bBqrwU2eyewbyC2royz9K+pxnUhiKYjtvGl6yXpBMvoHVuNfiRMJFvlHhxLLlUNZZHJ+5eoFQCUn5eNxsvTOs3sat94Ok+6ATUwsNnqowjWNG7AUhQc9I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1081;20:lA2r+/488eTHp/r/YiRxiP2sulIxSEDvsejGpdtDulLHL2kXIDcXqu1CA31b+Bn9as4qm5yxebLvFP6r/JmcSs/wV4ynsKyUGTo/0AjVu7xap/ESCNIzNfgrGnTuQW4/pOXFmm3w5cToc6LavNUkpfl0ja9FEhSPUn5cA8pS2uw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2017 14:52:51.6797 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR15MB1081 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-07_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1270 Lines: 31 On Thu, Sep 07, 2017 at 09:43:30AM -0500, Christopher Lameter wrote: > On Wed, 6 Sep 2017, David Rientjes wrote: > > > > The oom_kill_allocating_task sysctl which causes the OOM killer > > > to simple kill the allocating task is useless. Killing the random > > > task is not the best idea. > > > > > > Nobody likes it, and hopefully nobody uses it. > > > We want to completely deprecate it at some point. > > > > > > > SGI required it when it was introduced simply to avoid the very expensive > > tasklist scan. Adding Christoph Lameter to the cc since he was involved > > back then. > > Really? From what I know and worked on way back when: The reason was to be > able to contain the affected application in a cpuset. Multiple apps may > have been running in multiple cpusets on a large NUMA machine and the OOM > condition in one cpuset should not affect the other. It also helped to > isolate the application behavior causing the oom in numerous cases. > > Doesnt this requirement transfer to cgroups in the same way? We have per-node memory stats and plan to use them during the OOM victim selection. Hopefully it can help. > > Left SGI in 2008 so adding Dimitri who may know about the current > situation. Robin Holt also left SGI as far as I know. Thanks!