From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754323AbcL3OIn (ORCPT ); Fri, 30 Dec 2016 09:08:43 -0500 Received: from outbound-smtp09.blacknight.com ([46.22.139.14]:43537 "EHLO outbound-smtp09.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754212AbcL3OIm (ORCPT ); Fri, 30 Dec 2016 09:08:42 -0500 Date: Fri, 30 Dec 2016 14:08:39 +0000 From: Mel Gorman To: Michal Hocko Cc: David Rientjes , Andrew Morton , Jonathan Corbet , "Kirill A. Shutemov" , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch] mm, thp: always direct reclaim for MADV_HUGEPAGE even when deferred Message-ID: <20161230140839.qg3maz4ifyf7nwgq@techsingularity.net> References: <20161222100009.GA6055@dhcp22.suse.cz> <20161230123620.jcuquzof3bpxomdn@techsingularity.net> <20161230125615.GH13301@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20161230125615.GH13301@dhcp22.suse.cz> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 30, 2016 at 01:56:16PM +0100, Michal Hocko wrote: > On Fri 30-12-16 12:36:20, Mel Gorman wrote: > [...] > > I'll neither ack nor nak this patch. However, I would much prefer an > > additional option be added to sysfs called defer-fault that would avoid > > all fault-based stalls but still potentially stall for MADV_HUGEPAGE. > > Would you consider changing the semantic of defer=madvise to invoke > KSWAPD for !madvised vmas as acceptable. It would be a change in > semantic but I am wondering what would be a risk and potential > regression space. > I'd worry a little, but not a lot. The concern would be that kswapd waking up would reclaim pages and cause major faults that would have remained resident with the current semantics. -- Mel Gorman SUSE Labs