[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170117164238.GA28948@mtj.duckdns.org>
Date: Tue, 17 Jan 2017 08:42:38 -0800
From: Tejun Heo <tj@...nel.org>
To: Joonsoo Kim <iamjoonsoo.kim@....com>
Cc: vdavydov.dev@...il.com, cl@...ux.com, penberg@...nel.org,
rientjes@...gle.com, akpm@...ux-foundation.org, jsvana@...com,
hannes@...xchg.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, cgroups@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH 7/8] slab: remove synchronous synchronize_sched() from
memcg cache deactivation path
On Tue, Jan 17, 2017 at 09:26:11AM +0900, Joonsoo Kim wrote:
> > + INIT_WORK(&s->memcg_params.deact_work, kmemcg_deactivate_workfn);
> > + schedule_work(&s->memcg_params.deact_work);
> > +}
>
> Isn't it better to submit one work item for each memcg like as
> Vladimir did? Or, could you submit this work to the ordered workqueue?
> I'm not an expert about workqueue like as you, but, I think
> that there is a chance to create a lot of threads if there is
> the slab_mutex lock contention.
Yeah, good point. I'll switch it to its own workqueue w/ concurrency
limited to one.
Thanks.
--
tejun
Powered by blists - more mailing lists