xfs
[Top] [All Lists]

Re: XFS thread inflation in 2.6.23rc

To: Andi Kleen <ak@xxxxxxx>
Subject: Re: XFS thread inflation in 2.6.23rc
From: David Chinner <dgc@xxxxxxx>
Date: Wed, 8 Aug 2007 22:13:59 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <200708081240.21548.ak@xxxxxxx>
References: <200708081240.21548.ak@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Wed, Aug 08, 2007 at 12:40:21PM +0200, Andi Kleen wrote:
> 
> In 2.6.23rc I have a new kernel thread running from XFS:
> 
> 30137 ?        S<     0:00 [xfs_mru_cache]
> 
> Is that one really needed? Can it be started only on demand when that MRU
> feature is used? 

It uses a single threaded workqueue for reaping objects and the thread comes
along with that. Creating the workqueue on demand would require creating a
kernel thread inside a transaction and that's not some thing we want to do.
It can't really be put into an existing thread/workqueue because of
deadlock problems which is why it has it's own workqueue....

Besides, what's the point of having nice constructs like dedicated
workqueues if people complain when they get used to solve problems?

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>