Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755413AbcCBMh5 (ORCPT ); Wed, 2 Mar 2016 07:37:57 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:32812 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754658AbcCBMh4 (ORCPT ); Wed, 2 Mar 2016 07:37:56 -0500 Date: Wed, 2 Mar 2016 13:37:53 +0100 From: Michal Hocko To: Joonsoo Kim Cc: Vlastimil Babka , Hugh Dickins , Andrew Morton , Linus Torvalds , Johannes Weiner , Mel Gorman , David Rientjes , Tetsuo Handa , Hillf Danton , KAMEZAWA Hiroyuki , linux-mm@kvack.org, LKML Subject: Re: [PATCH 0/3] OOM detection rework v4 Message-ID: <20160302123752.GE26686@dhcp22.suse.cz> References: <1450203586-10959-1-git-send-email-mhocko@kernel.org> <20160203132718.GI6757@dhcp22.suse.cz> <20160229203502.GW16930@dhcp22.suse.cz> <20160301133846.GF9461@dhcp22.suse.cz> <56D5DBF0.2020004@suse.cz> <20160302025507.GC22355@js1304-P5Q-DELUXE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160302025507.GC22355@js1304-P5Q-DELUXE> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 26 On Wed 02-03-16 11:55:07, Joonsoo Kim wrote: > On Tue, Mar 01, 2016 at 07:14:08PM +0100, Vlastimil Babka wrote: [...] > > Yes, compaction is historically quite careful to avoid making low > > memory conditions worse, and to prevent work if it doesn't look like > > it can ultimately succeed the allocation (so having not enough base > > pages means that compacting them is considered pointless). This > > aspect of preventing non-zero-order OOMs is somewhat unexpected :) > > It's better not to assume that compaction would succeed all the times. > Compaction has some limitations so it sometimes fails. > For example, in lowmem situation, it only scans small parts of memory > and if that part is fragmented by non-movable page, compaction would fail. > And, compaction would defer requests 64 times at maximum if successive > compaction failure happens before. > > Depending on compaction heavily is right direction to go but I think > that it's not ready for now. More reclaim would relieve problem. I really fail to see why. The reclaimable memory can be migrated as well, no? Relying on the order-0 reclaim makes only sense to get over wmarks. -- Michal Hocko SUSE Labs