From: Andi Kleen <ak@suse.de>
To: David Chinner <dgc@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: XFS thread inflation in 2.6.23rc
Date: Wed, 8 Aug 2007 15:26:06 +0200 [thread overview]
Message-ID: <200708081526.06860.ak@suse.de> (raw)
In-Reply-To: <20070808131404.GQ52011508@sgi.com>
On Wednesday 08 August 2007 15:14:04 David Chinner wrote:
> Memory allocation failure + dirty transaction == filesystem shutdown.
You mean if the workqueue creation would fail?
Surely not having the MRU cache is not a catastrophe and would
allow the transaction to commit anyways?
The other alternative would be to start it when a directory with
the flag is first seen. That should be before any transactions.
The other thing is that it would be nasty to switch do_fork
to use GFP_NOFS, but I doubt that's really needed.
> > > Besides, what's the point of having nice constructs like dedicated
> > > workqueues
> >
> > It's a resource that shouldn't be overused.
>
> A workqueue + thread uses, what, 10-15k of memory? That's the cost of about
> 10 cached inodes. It is insignificant...
A little bloat here and a little bloat there and soon we're talking
about serious memory.
e.g. on a dual core box in a standard configuration we're going towards
~50 kernel threads out of the box now and that's just too much IMNSHO.
Given there are other really bad wastes of memory (don't get me
started on some of the hash tables), but it's not totally insignificant.
Threads also have some CPU costs even when sleeping, e.g. there is still code
which walks all threads to do various things.
> Hmmm. I guess you are really not going to like the patch I
> have that moves the AIL pushing to a new thread to solve
> some of scalability issues in the transaction subsystem......
Per CPU or single? If the later definitely the workqueues would need to be
fixed first.
-Andi
next prev parent reply other threads:[~2007-08-08 13:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 10:40 XFS thread inflation in 2.6.23rc Andi Kleen
2007-08-08 12:13 ` David Chinner
2007-08-08 12:22 ` Andi Kleen
2007-08-08 13:14 ` David Chinner
2007-08-08 13:26 ` Andi Kleen [this message]
2007-08-09 11:03 ` David Chinner
2007-08-10 19:34 ` Eric Sandeen
2007-08-10 23:49 ` David Chinner
2007-08-11 1:21 ` Eric Sandeen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200708081526.06860.ak@suse.de \
--to=ak@suse.de \
--cc=dgc@sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox