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


Groups > linux.kernel > #1569229

Re: [PATCH 10/10] slab: use memcg_kmem_cache_wq for slab destruction operations

From Vladimir Davydov <vdavydov@tarantool.org>
Newsgroups linux.kernel
Subject Re: [PATCH 10/10] slab: use memcg_kmem_cache_wq for slab destruction operations
Date 2017-01-29 17:40 +0100
Message-ID <t50Gf-Ut-27@gated-at.bofh.it> (permalink)
References <t0LPs-54F-9@gated-at.bofh.it> <t0LPs-54F-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jan 17, 2017 at 03:54:11PM -0800, Tejun Heo wrote:
> If there's contention on slab_mutex, queueing the per-cache
> destruction work item on the system_wq can unnecessarily create and
> tie up a lot of kworkers.
> 
> Rename memcg_kmem_cache_create_wq to memcg_kmem_cache_wq and make it
> global and use that workqueue for the destruction work items too.
> While at it, convert the workqueue from an unbound workqueue to a
> per-cpu one with concurrency limited to 1.  It's generally preferable
> to use per-cpu workqueues and concurrency limit of 1 is safe enough.
> 
> This is suggested by Joonsoo Kim.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Reported-by: Jay Vana <jsvana@fb.com>
> Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
> Cc: Christoph Lameter <cl@linux.com>
> Cc: Pekka Enberg <penberg@kernel.org>
> Cc: David Rientjes <rientjes@google.com>
> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>

Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 10/10] slab: use memcg_kmem_cache_wq for slab destruction operations Tejun Heo <tj@kernel.org> - 2017-01-18 01:00 +0100
  Re: [PATCH 10/10] slab: use memcg_kmem_cache_wq for slab destruction  operations Vladimir Davydov <vdavydov@tarantool.org> - 2017-01-29 17:40 +0100

csiph-web