lkml.org 
[lkml]   [2013]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Expose sysctls for enabling slab/file_cache interleaving
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.

>
> static inline int cpuset_do_slab_mem_spread(void)
> {
> - return current->flags & PF_SPREAD_SLAB;
> + return (current->flags & PF_SPREAD_SLAB) ||
> + sysctl_spread_slab;
> }
>
> extern int current_cpuset_is_being_rebound(void);
[...]
--
Michal Hocko
SUSE Labs


\
 
 \ /
  Last update: 2013-11-19 12:21    [W:0.095 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site