From: Alex Zarochentsev <zam@namesys.com>
To: Zhihui Zhang <bf20761@binghamton.edu>
Cc: reiserfs-list@namesys.com
Subject: Re: tail policy question
Date: Thu, 13 Nov 2003 13:27:35 +0300 [thread overview]
Message-ID: <20031113102735.GB1278@backtop.namesys.com> (raw)
In-Reply-To: <Pine.GSO.4.58.0311121737100.9552@bingsun2.cc.binghamton.edu>
On Wed, Nov 12, 2003 at 06:23:01PM -0500, Zhihui Zhang wrote:
> Hi,
>
> I spent a little time on Reiser4 tail code and was surprised to find out
> that the default policy given in reiser4.h is ALWAYS_TAIL_ID not
> DEFAULT_TAIL_ID.
>
> /* default tail policy plugin */
> #define REISER4_TAIL_PLUGIN (ALWAYS_TAIL_ID)
>
> Does this mean Reiser4 always use tails no matter how large a file is by
> default?
no. tail plugin is specified at mkfs time.
ALWAIYS_TAIL_ID is used if disk format plugin does not override it at mount
time. The only one existing disk format (disk_format40) does override the
default tail policy plugin (see
fs/reiser4/plugin/disk_format/disk_format40.c:get_ready_format40).
You can run debugfs.reiser4 -t on a reiser4 volume with some big files and see
extents there. :-)
> I must be wrong somewhere.
> Anyway, when tails are in use, will they incur more or less performance
> penalty on files using them when compared to ReiserFS V3 (remember that
> -notail mount option is sometimes preferred)?
Tail packing uses more CPU resources than pure extents but it saves I/O
operations. At current state default tail policy ("smart") is preffered for
most cases (i just do not remember when pure extents win).
But, we still expect that reiser extent handling code may be optimized a lot,
it is possible that pure extents will be better is some case as "notail" option
in reiser3 and even better because extents are better than indirect items).
> Also, does the offset part of a key for a tail item or an extent item refer
> to the byte offset of the first byte represented by the tail or extent item?
> In V3, I remember it is actually byte offset plus one for some reason.
> Please clarify this for
yes, there is a byte offset in the reiser4 key for file body items. AFAIK no
"plus one byte" there.
> me.
>
> Thanks
>
> -Zhihui
--
Alex.
prev parent reply other threads:[~2003-11-13 10:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-12 23:23 tail policy question Zhihui Zhang
2003-11-12 12:56 ` Hans Reiser
2003-11-13 18:34 ` Zhihui Zhang
2003-11-14 17:06 ` Alex Zarochentsev
2003-11-14 5:12 ` Hans Reiser
2003-11-14 17:27 ` Alex Zarochentsev
2003-11-14 6:02 ` Hans Reiser
2003-11-13 10:27 ` Alex Zarochentsev [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=20031113102735.GB1278@backtop.namesys.com \
--to=zam@namesys.com \
--cc=bf20761@binghamton.edu \
--cc=reiserfs-list@namesys.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.