From: Linda Walsh <xfs@tlinx.org>
To: Peter Grandi <pg_xf2@xf2.for.sabi.co.UK>
Cc: Linux XFS <xfs@oss.sgi.com>
Subject: Re: xfs_fsr question for improvement
Date: Sun, 25 Apr 2010 17:02:36 -0700 [thread overview]
Message-ID: <4BD4D81C.5040503@tlinx.org> (raw)
In-Reply-To: <19412.9412.177637.116303@tree.ty.sabi.co.uk>
Peter Grandi wrote:
>>> XFS resists fragmentation better than most other filesystems,
>>> so defragmentation, while possible, is generally not needed.
>
> That's a common myth. For most file systems and filesystems.
> Also most applications write files really badly.
> http://www.sabi.co.uk/blog/anno06-3rd.html#060914b
----
Do you have any evidence to back this up? The article you quote says nothing
about xfs allocation -- it's talking about Windows systems using FAT or NTFS -- unless,
you've ported XFS to Windows? If not, I'm I don't see how your comments are
relevant.
> Fortunately 'xfs_fsr' is mostly reliable, but in-place
> defragmentation is a risky propostion for several reasons even
> if 'xfs_fsr' is fairly reliable.
---
How is it risky? Do you have any evidence to back up this claim?
It copies from where it is at, to a pre-reserved, vacant space (which it finds just
before it does the copy). When the copy is done successfully, its points the inode
at the defragmented data, and frees the old copy -- or at least that's my
'not having looked at the code' understanding of it.
This is basically a file copy. So you are saying that file defragmentation
in place using file copy is risky? Doesn't this imply you are saying
that copying files is risky? How is this meaninful?
> Note also that 'xfs_fsr' uses a terrible "defragmentation"
> strategy (from 'man xfs_fsr'):
> "The reorganization algorithm operates on one file at a time,"
----
xfs_fsr does a superb job of file defragmenting. It doesn't
do disk defragmenting. But it does defragment single files well, which was
all it was designed to do. We can lament that it hasn't been improved on,
but no one with money or with 'free time' (ha) and the knowledge, has seen it as
a problem, so it hasn't been fixed.
> That also should not be the case unless your applications write
> strategy is wrong and you get extremely interleaved streams, in
> which case you get what you paid for the application programmer.
---
That's a rather naive view. It may not be one application but several
writing to the disk at once. Or it could be one, but recording multiple streams
to disk at the same time -- of course it would have to write them to disk as they
come in, as memory is limited -- how else would you prevent interleaving in such
a case? There are too many situations where fragmenting can occur to toss them
all off and say they are the result of not paying an application programmer to do it
"correctly".
I don't see why you posted -- it wasn't to help anyone nor to offer constructive
criticism. It was a bit harsh on the criticism side, as though something about it
was 'personal' for you.... Also sensed a tinge of bitterness in that last bit of
criticism about the video stream fragmentation. I'm sorry for your loss, but please
try to understand, that this is a forum/list for developers/users to help with xfs problems.
Please rethink your approach here, and I'm apologize in advance if I'm out of
line, but something seemed off-key in this post, but maybe I'm misreading things
completetely... its happened before. :-)
Linda Walsh
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-04-26 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 8:43 xfs_fsr question for improvement Michael Monnerie
2010-04-16 10:43 ` Stan Hoeppner
2010-04-17 1:24 ` Dave Chinner
2010-04-17 7:13 ` Emmanuel Florac
2010-04-25 11:17 ` Peter Grandi
2010-04-25 13:02 ` Emmanuel Florac
2010-04-25 21:04 ` Eric Sandeen
2010-04-25 21:44 ` Emmanuel Florac
2010-04-26 0:02 ` Linda Walsh [this message]
2010-05-03 6:49 ` Michael Monnerie
2010-05-03 7:41 ` Michael Monnerie
2010-05-03 12:17 ` Dave Chinner
2010-05-10 22:39 ` Michael Monnerie
-- strict thread matches above, loose matches on Subject: below --
2010-04-26 20:58 Richard Scobie
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=4BD4D81C.5040503@tlinx.org \
--to=xfs@tlinx.org \
--cc=pg_xf2@xf2.for.sabi.co.UK \
--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