Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-19 Thread Vladimir Davydov
On Mon, Sep 18, 2017 at 02:49:19PM -0400, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups

Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-19 Thread Vladimir Davydov
On Mon, Sep 18, 2017 at 02:49:19PM -0400, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups

Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-19 Thread Michal Hocko
On Mon 18-09-17 14:49:19, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups = order-5, 16k

Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-19 Thread Michal Hocko
On Mon 18-09-17 14:49:19, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups = order-5, 16k

Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-18 Thread Josef Bacik
On Mon, Sep 18, 2017 at 02:49:19PM -0400, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups

Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-18 Thread Josef Bacik
On Mon, Sep 18, 2017 at 02:49:19PM -0400, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups

[PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-18 Thread Johannes Weiner
For quick per-memcg indexing, slab caches and list_lru structures maintain linear arrays of descriptors. As the number of concurrent memory cgroups in the system goes up, this requires large contiguous allocations (8k cgroups = order-5, 16k cgroups = order-6 etc.) for every existing slab cache and

[PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-18 Thread Johannes Weiner
For quick per-memcg indexing, slab caches and list_lru structures maintain linear arrays of descriptors. As the number of concurrent memory cgroups in the system goes up, this requires large contiguous allocations (8k cgroups = order-5, 16k cgroups = order-6 etc.) for every existing slab cache and