From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by kanga.kvack.org (Postfix) with ESMTP id A68DB6B0031 for ; Tue, 19 Nov 2013 13:42:06 -0500 (EST) Received: by mail-pa0-f44.google.com with SMTP id fb1so7131421pad.17 for ; Tue, 19 Nov 2013 10:42:06 -0800 (PST) Received: from psmtp.com ([74.125.245.193]) by mx.google.com with SMTP id ob10si12221229pbb.277.2013.11.19.10.42.03 for ; Tue, 19 Nov 2013 10:42:04 -0800 (PST) Date: Tue, 19 Nov 2013 19:42:00 +0100 From: Andi Kleen Subject: Re: [PATCH] Expose sysctls for enabling slab/file_cache interleaving Message-ID: <20131119184200.GD29695@two.firstfloor.org> References: <1384822222-28795-1-git-send-email-andi@firstfloor.org> <20131119104203.GB18872@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131119104203.GB18872@dhcp22.suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: Andi Kleen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andi Kleen On Tue, Nov 19, 2013 at 11:42:03AM +0100, Michal Hocko wrote: > On Mon 18-11-13 16:50:22, Andi Kleen wrote: > [...] > > diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h > > index cc1b01c..10966f5 100644 > > --- a/include/linux/cpuset.h > > +++ b/include/linux/cpuset.h > > @@ -72,12 +72,14 @@ extern int cpuset_slab_spread_node(void); > > > > static inline int cpuset_do_page_mem_spread(void) > > { > > - return current->flags & PF_SPREAD_PAGE; > > + return (current->flags & PF_SPREAD_PAGE) || > > + sysctl_spread_file_cache; > > } > > But this might break applications that explicitly opt out from > spreading. What do you mean? There's no such setting at the moment. They can only enable it. -Andi -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org