From: Michael Monnerie <michael.monnerie@is.it-management.at>
To: xfs@oss.sgi.com
Subject: Re: [RFC, PATCH 0/2] xfs: dynamic speculative preallocation for delalloc
Date: Sun, 17 Oct 2010 16:31:48 +0200 [thread overview]
Message-ID: <201010171631.53183@zmi.at> (raw)
In-Reply-To: <20101015114508.GI4681@dastard>
[-- Attachment #1.1: Type: Text/Plain, Size: 2615 bytes --]
On Freitag, 15. Oktober 2010 Dave Chinner wrote:
> On Fri, Oct 15, 2010 at 09:14:54AM +0200, Michael Monnerie wrote:
> > The question is: what is a good value for preallocation?
>
> If you can't answer that, use the defaults.
Who can really without testing? For a webserver, hosting hundreds of
different websites, with many ftp uploads and where the rest of the
writes are webservers temp and log files, do you know the best value
without investigation? That's what I meant.
> > I'd guess for a database 1GB seems reasonable,
>
> depends on your database. If it does direct IO, then allocsize is
> completely meaningless....
True, I was thinking of postgresql and mysql (innodb, 1 file per table).
Both increment file sizes when needed.
> IIRC, that is the default behaviour for _physical_ extent allocation
> on files larger than one stripe unit (i.e stripe aligned and sized
> allocation). That is very different from speculative allocation done
> at delayed allocation time, which is purely in-memory until physical
> allocation occurs.
Together with your other answer (swalloc...) I get the picture now. So
delalloc, speculative prealloc, and physical allocation are done, where
the first two are in-memory. And the mount option allocsize sets the
delalloc size.
Now something comes to my mind: When I make an ftp upload, it's very
slow in terms of disk speed. Say 2MB/s. How long would delalloc wait
before flushing buffers on disk?
Isn't that controlled by the values of
vm.dirty_background_bytes and vm.dirty_expire_centisecs and
vm.dirty_writeback_centisecs? Then dirty_background_bytes would be the
maximum possible delalloc size? But it's value is the top for the whole
machine, so it would need to be much higher than I want it to be for a
specific filesystem.
Or are those values controllable per mount?
Sorry for my maybe boring questions, I'm trying to understand how to get
the most out of a server with lot's of VMs, and tuning seems to help
(and be needed) a lot in this situation.
> Nobody should need to use the allocsize mount option except in
> extreme corner cases, and that is what my patchset attempts to
> achieve.
Sounds good :-)
--
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc
it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31
****** Radiointerview zum Thema Spam ******
http://www.it-podcast.at/archiv.html#podcast-100716
// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-10-17 14:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-04 10:13 [RFC, PATCH 0/2] xfs: dynamic speculative preallocation for delalloc Dave Chinner
2010-10-04 10:13 ` [PATCH 1/2] xfs: dynamic speculative EOF preallocation Dave Chinner
2010-10-14 17:22 ` Alex Elder
2010-10-14 21:33 ` Dave Chinner
2010-10-15 6:51 ` allocsize mount option, was: " Michael Monnerie
2010-10-15 11:59 ` Dave Chinner
2010-10-04 10:13 ` [PATCH 2/2] xfs: don't truncate prealloc from frequently accessed inodes Dave Chinner
2010-10-14 17:22 ` Alex Elder
2010-10-14 21:28 ` Dave Chinner
2010-10-14 17:22 ` [RFC, PATCH 0/2] xfs: dynamic speculative preallocation for delalloc Alex Elder
2010-10-14 21:16 ` Dave Chinner
2010-10-14 21:50 ` Ivan.Novick
2010-10-15 7:14 ` Michael Monnerie
2010-10-15 11:45 ` Dave Chinner
2010-10-17 14:31 ` Michael Monnerie [this message]
2010-10-17 23:49 ` Dave Chinner
2010-10-18 6:39 ` Michael Monnerie
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=201010171631.53183@zmi.at \
--to=michael.monnerie@is.it-management.at \
--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