Re: [patch 03/11] mm, mempolicy: remove per-process flag

2014-03-07 Thread Andrew Morton
On Fri, 07 Mar 2014 09:20:39 -0800 Andi Kleen wrote: > David Rientjes writes: > > > > Per-process flags are a scarce resource so we should free them up > > whenever possible and make them available. We'll be using it shortly for > > memcg oom reserves. > > I'm not convinced TCP_RR is a

Re: [patch 03/11] mm, mempolicy: remove per-process flag

2014-03-07 Thread Andi Kleen
David Rientjes writes: > > Per-process flags are a scarce resource so we should free them up > whenever possible and make them available. We'll be using it shortly for > memcg oom reserves. I'm not convinced TCP_RR is a meaningfull benchmark for slab. The shortness seems like an artificial

Re: [patch 03/11] mm, mempolicy: remove per-process flag

2014-03-07 Thread Andi Kleen
David Rientjes rient...@google.com writes: Per-process flags are a scarce resource so we should free them up whenever possible and make them available. We'll be using it shortly for memcg oom reserves. I'm not convinced TCP_RR is a meaningfull benchmark for slab. The shortness seems like an

Re: [patch 03/11] mm, mempolicy: remove per-process flag

2014-03-07 Thread Andrew Morton
On Fri, 07 Mar 2014 09:20:39 -0800 Andi Kleen a...@firstfloor.org wrote: David Rientjes rient...@google.com writes: Per-process flags are a scarce resource so we should free them up whenever possible and make them available. We'll be using it shortly for memcg oom reserves. I'm not

[patch 03/11] mm, mempolicy: remove per-process flag

2014-03-04 Thread David Rientjes
PF_MEMPOLICY is an unnecessary optimization for CONFIG_SLAB users. There's no significant performance degradation to checking current->mempolicy rather than current->flags & PF_MEMPOLICY in the allocation path, especially since this is considered unlikely(). Running TCP_RR with netperf-2.4.5

[patch 03/11] mm, mempolicy: remove per-process flag

2014-03-04 Thread David Rientjes
PF_MEMPOLICY is an unnecessary optimization for CONFIG_SLAB users. There's no significant performance degradation to checking current-mempolicy rather than current-flags PF_MEMPOLICY in the allocation path, especially since this is considered unlikely(). Running TCP_RR with netperf-2.4.5 through