From: Chris Mason <mason@suse.com>
To: Toby Dickenson <tdickenson@geminidataloggers.com>
Cc: Michael Carmack <karmak@karmak.org>, reiserfs-list@namesys.com
Subject: Re: Benchmarks from Guru Labs
Date: 18 Jul 2002 09:02:22 -0400 [thread overview]
Message-ID: <1026997343.3188.26.camel@tiny> (raw)
In-Reply-To: <200207181342.19138.tdickenson@geminidataloggers.com>
On Thu, 2002-07-18 at 08:42, Toby Dickenson wrote:
> On Thursday 18 Jul 2002 1:24 pm, Chris Mason wrote:
>
> > notail is faster in most cases. With some tail tuning, tails could be
> > faster for synchronous applications (like mail servers) when the file
> > size is <= blocksize. This is because flushing the tail to disk would
> > be free with flushing the new inode information.
>
> Is there any way to control the size of tails that get merged?
>
> I have an application for which notail gives a performance increase, but I
> also have a majority of files sized under 10 bytes, so notail is a big space
> penalty
>
> I suspect I _might_ be able to get a nice compomise if it was possible to
> "tail" the tiny files, and "notail" the larger ones.
>
> (alternatively, Im looking at two different filesystems, with one mounted
> "notail")
At one point in time, there was a patch floating around that made this a
mount option (Nikita's?) But right now all you can do is change the
STORE_TAIL_IN_UNFM macro in reiserfs_fs.h
There are really only two rules. #1 you don't want a tail when the tail
size is zero. #2 The tail can't be bigger than MAX_DIRECT_ITEM_LEN.
Something like this would only make tails for files < 4k in size (but
you should check my paren matching) it should read
if (!n_tail_size || (n_tail_size > max_direct_item_len ||
n_file_size > n_block_size)
return 1
#define STORE_TAIL_IN_UNFM(n_file_size,n_tail_size,n_block_size) \
(\
(!(n_tail_size)) || \
(((n_tail_size) > MAX_DIRECT_ITEM_LEN(n_block_size)) || \
(n_file_size) >= (n_block_size)) \
)
-chris
prev parent reply other threads:[~2002-07-18 13:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 11:53 Benchmarks from Guru Labs Michael Carmack
2002-07-18 12:24 ` Chris Mason
[not found] ` <200207181342.19138.tdickenson@geminidataloggers.com>
2002-07-18 13:02 ` Chris Mason [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=1026997343.3188.26.camel@tiny \
--to=mason@suse.com \
--cc=karmak@karmak.org \
--cc=reiserfs-list@namesys.com \
--cc=tdickenson@geminidataloggers.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.