lkml.org 
[lkml]   [2008]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/45] Create a dynamically sized pool of threads for doing very slow work items [ver #41]
Quoting David Howells (dhowells@redhat.com):
> Create a dynamically sized pool of threads for doing very slow work items, such
> as invoking mkdir() or rmdir() - things that may take a long time and may
> sleep, holding mutexes/semaphores and hogging a thread, and are thus unsuitable
> for workqueues.
>
> The number of threads is always at least a settable minimum, but more are
> started when there's more work to do, up to a limit. Because of the nature of
> the load, it's not suitable for a 1-thread-per-CPU type pool. A system with
> one CPU may well want several threads.
>
> This is used by FS-Cache to do slow caching operations in the background, such
> as looking up, creating or deleting cache objects.
>
> Signed-off-by: David Howells <dhowells@redhat.com>

Acked-by: Serge Hallyn <serue@us.ibm.com>


\
 
 \ /
  Last update: 2008-12-19 05:23    [W:0.327 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site