[sheepdog] [PATCH v2 0/5] work: implement a dynamically changing thread pool
MORITA Kazutaka
morita.kazutaka at gmail.com
Thu Feb 28 13:11:59 CET 2013
At Thu, 28 Feb 2013 19:30:34 +0800,
Liu Yuan wrote:
>
> On 02/28/2013 06:46 PM, MORITA Kazutaka wrote:
> > This removes a short thread feature, and adds a worker thread pool
> > again with support of dymanic pool size. The reasons we need this
> > series are:
> >
> > - Currently, sheep calls a pthread_create for every I/O request, but
> > the overhead is not so cheap especially when the underlying disk is
> > fast (e.g. the disk has non-volatile cache).
> >
> > - Some operations (e.g. object cache pusher) consumes too many
> > threads and causes a problem. To control the maximum number of
> > threads, a thread pool model is better for us.
> >
> >
> > Changes from v1:
> > - introduce a protection period for shrining work queue to avoid
> > frequent creation/deletion of threads
> > - rebase onto the latest master
> > - some cleanups
> >
> > MORITA Kazutaka (5):
> > work: remove short thread
> > logger: use LWP for worker idx
> > work: remove unused codes
> > work: glow the number of worker threads dynamically
> > work: shrink the number of worker threads dynamically
>
> Can this patch set work with tracer enabled?
I'm not sure, but I guess the older version of tracer, which were used
before we introduce a short thread, would work with this series. I
think we can work on it after we merge this series.
Thanks,
Kazutaka
More information about the sheepdog
mailing list