Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1273413 > unrolled thread

Re: [PATCH v2 4/6] slab: add SLAB_ACCOUNT flag

Started byJohannes Weiner <hannes@cmpxchg.org>
First post2015-11-19 20:10 +0100
Last post2015-11-19 20:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 4/6] slab: add SLAB_ACCOUNT flag Johannes Weiner <hannes@cmpxchg.org> - 2015-11-19 20:10 +0100

#1273413 — Re: [PATCH v2 4/6] slab: add SLAB_ACCOUNT flag

FromJohannes Weiner <hannes@cmpxchg.org>
Date2015-11-19 20:10 +0100
SubjectRe: [PATCH v2 4/6] slab: add SLAB_ACCOUNT flag
Message-ID<qwCKJ-549-7@gated-at.bofh.it>
On Tue, Nov 10, 2015 at 09:34:05PM +0300, Vladimir Davydov wrote:
> Currently, if we want to account all objects of a particular kmem cache,
> we have to pass __GFP_ACCOUNT to each kmem_cache_alloc call, which is
> inconvenient. This patch introduces SLAB_ACCOUNT flag which if passed to
> kmem_cache_create will force accounting for every allocation from this
> cache even if __GFP_ACCOUNT is not passed.
> 
> This patch does not make any of the existing caches use this flag - it
> will be done later in the series.
> 
> Note, a cache with SLAB_ACCOUNT cannot be merged with a cache w/o
> SLAB_ACCOUNT, i.e. using this flag will probably reduce the number of
> merged slabs even if kmem accounting is not used (only compiled in).
> 
> Suggested-by: Tejun Heo <tj@kernel.org>
> Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web