linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	Christoph Hellwig <hch@infradead.org>
Subject: Re: bdi forker
Date: Wed, 7 Jul 2010 11:08:35 -0400	[thread overview]
Message-ID: <20100707150835.GA30235@infradead.org> (raw)
In-Reply-To: <1278502227.29620.161.camel@localhost>

> I was looking at the code and and found it to bee more complex that it
> has to be. I'd suggest to:
> 
> 1. Stop exiting per-bdi flushers after 5 minutes of inactivity.
> 2. Kill the forker thread and make the default bdi us the same flusher
> thread as every other bdi uses.
> 
> This will simplify many things, I believe. Various lists and locks and
> will go away, the code will become more readable.

They do.  I've actually implemented this and it simplifies the code a
lot.  But there's one big downside:  We now create a thread for every
block device, even if it's not used.  For a normal systems that's fine,
but on a system connected to a larger SAN this migh be quite a bit of
overhead.  Then again systems connected to a large SAN can usually deal
with the overhead.  I'm planning into just activating the thread if
a filesystems in mounted on the BDI, which should be just as a good as
the lazy startup/teardown.

I'll send out the preliminary series this week so that you can take a
look.


      parent reply	other threads:[~2010-07-07 15:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-07 11:30 bdi forker Artem Bityutskiy
2010-07-07 12:28 ` Artem Bityutskiy
2010-07-07 15:08 ` Christoph Hellwig [this message]

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=20100707150835.GA30235@infradead.org \
    --to=hch@infradead.org \
    --cc=axboe@kernel.dk \
    --cc=dedekind1@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).