Messages in this thread | | | Date | Tue, 19 Nov 2013 19:42:00 +0100 | From | Andi Kleen <> | Subject | Re: [PATCH] Expose sysctls for enabling slab/file_cache interleaving |
| |
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
| |