Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757146AbcCBC2f (ORCPT ); Tue, 1 Mar 2016 21:28:35 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:43119 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbcCBC2d (ORCPT ); Tue, 1 Mar 2016 21:28:33 -0500 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Wed, 2 Mar 2016 11:28:46 +0900 From: Joonsoo Kim To: Michal Hocko Cc: Hugh Dickins , Vlastimil Babka , 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: <20160302022846.GB22355@js1304-P5Q-DELUXE> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160301133846.GF9461@dhcp22.suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 18 On Tue, Mar 01, 2016 at 02:38:46PM +0100, Michal Hocko wrote: > > I'd expect a build in 224M > > RAM plus 2G of swap to take so long, that I'd be very grateful to be > > OOM killed, even if there is technically enough space. Unless > > perhaps it's some superfast swap that you have? > > the swap partition is a standard qcow image stored on my SSD disk. So > I guess the IO should be quite fast. This smells like a potential > contributor because my reclaim seems to be much faster and that should > lead to a more efficient reclaim (in the scanned/reclaimed sense). Hmm... This looks like one of potential culprit. If page is in writeback, it can't be migrated by compaction with MIGRATE_SYNC_LIGHT. In this case, this page works as pinned page and prevent compaction. It'd be better to check that changing 'migration_mode = MIGRATE_SYNC' at 'no_progress_loops > XXX' will help in this situation. Thanks.