From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753296AbbJGFRM (ORCPT ); Wed, 7 Oct 2015 01:17:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:52396 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbbJGFQx (ORCPT ); Wed, 7 Oct 2015 01:16:53 -0400 Subject: Re: can't oom-kill zap the victim's memory? To: Michal Hocko , Linus Torvalds References: <20150922160608.GA2716@redhat.com> <20150923205923.GB19054@dhcp22.suse.cz> <20150925093556.GF16497@dhcp22.suse.cz> <201509260114.ADI35946.OtHOVFOMJQFLFS@I-love.SAKURA.ne.jp> <201509290118.BCJ43256.tSFFFMOLHVOJOQ@I-love.SAKURA.ne.jp> <20151002123639.GA13914@dhcp22.suse.cz> <20151005144404.GD7023@dhcp22.suse.cz> Cc: Tetsuo Handa , David Rientjes , Oleg Nesterov , Kyle Walker , Christoph Lameter , Andrew Morton , Johannes Weiner , Vladimir Davydov , linux-mm , Linux Kernel Mailing List , Stanislav Kozina From: Vlastimil Babka Message-ID: <5614AAC0.60002@suse.cz> Date: Wed, 7 Oct 2015 07:16:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151005144404.GD7023@dhcp22.suse.cz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5.10.2015 16:44, Michal Hocko wrote: > So I can see basically only few ways out of this deadlock situation. > Either we face the reality and allow small allocations (withtout > __GFP_NOFAIL) to fail after all attempts to reclaim memory have failed > (so after even OOM killer hasn't made any progress). Note that small allocations already *can* fail if they are done in the context of a task selected as OOM victim (i.e. TIF_MEMDIE). And yeah I've seen a case when they failed in a code that "handled" the allocation failure with a BUG_ON(!page).