Re: [PATCH 1/5] mm: uncharge kmem pages from generic free_page path

2015-10-01 Thread Vladimir Davydov
On Wed, Sep 30, 2015 at 12:51:18PM -0700, Greg Thelen wrote: > > Vladimir Davydov wrote: ... > > diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h > > index 416509e26d6d..a190719c2f46 100644 > > --- a/include/linux/page-flags.h > > +++ b/include/linux/page-flags.h > > @@ -594,6

Re: [PATCH 1/5] mm: uncharge kmem pages from generic free_page path

2015-09-30 Thread Greg Thelen
Vladimir Davydov wrote: > Currently, to charge a page to kmemcg one should use alloc_kmem_pages > helper. When the page is not needed anymore it must be freed with > free_kmem_pages helper, which will uncharge the page before freeing it. > Such a design is acceptable for thread info pages and kma

Re: [PATCH 1/5] mm: uncharge kmem pages from generic free_page path

2015-09-30 Thread Vladimir Davydov
On Tue, Sep 29, 2015 at 03:43:47PM -0700, Andrew Morton wrote: > On Sat, 26 Sep 2015 13:45:53 +0300 Vladimir Davydov > wrote: > > > Currently, to charge a page to kmemcg one should use alloc_kmem_pages > > helper. When the page is not needed anymore it must be freed with > > free_kmem_pages help

Re: [PATCH 1/5] mm: uncharge kmem pages from generic free_page path

2015-09-29 Thread Andrew Morton
On Sat, 26 Sep 2015 13:45:53 +0300 Vladimir Davydov wrote: > Currently, to charge a page to kmemcg one should use alloc_kmem_pages > helper. When the page is not needed anymore it must be freed with > free_kmem_pages helper, which will uncharge the page before freeing it. > Such a design is acce

[PATCH 1/5] mm: uncharge kmem pages from generic free_page path

2015-09-26 Thread Vladimir Davydov
Currently, to charge a page to kmemcg one should use alloc_kmem_pages helper. When the page is not needed anymore it must be freed with free_kmem_pages helper, which will uncharge the page before freeing it. Such a design is acceptable for thread info pages and kmalloc large allocations, which are