From: "Stephen C. Tweedie" <sct@redhat.com>
To: Aaron Lehmann <aaronl@vitelus.com>
Cc: linux-kernel@vger.kernel.org, Stephen Tweedie <sct@redhat.com>
Subject: Re: ext3 throughput woes on certain (possibly heavily fragmented) files
Date: Fri, 6 Sep 2002 17:06:14 +0100 [thread overview]
Message-ID: <20020906170614.A7946@redhat.com> (raw)
In-Reply-To: <20020903092419.GA5643@vitelus.com>; from aaronl@vitelus.com on Tue, Sep 03, 2002 at 02:24:19AM -0700
Hi,
On Tue, Sep 03, 2002 at 02:24:19AM -0700, Aaron Lehmann wrote:
> [aaronl@vitelus:~]$ time cat mail/debian-legal > /dev/null
> cat mail/debian-legal > /dev/null 0.00s user 0.02s system 0% cpu 5.565 total
> [aaronl@vitelus:~]$ ls -l mail/debian-legal
> -rw------- 1 aaronl mail 7893525 Sep 3 00:42 mail/debian-legal
> [aaronl@vitelus:~]$ time cat /usr/src/linux-2.4.18.tar.bz2 > /dev/null
> cat /usr/src/linux-2.4.18.tar.bz2 > /dev/null 0.00s user 0.10s system 16% cpu 0.616 total
> [aaronl@vitelus:~]$ ls -l /usr/src/linux-2.4.18.tar.bz2
> -rw-r--r-- 1 aaronl aaronl 24161675 Apr 14 11:53
>
> Both files were AFAIK not in any cache, and they are on the same
> partition.
>
> My current uninformed theory is that this is caused by fragmentation,
> since the linux tarball was downloaded all at once but the mailbox I'm
> comparing it to has 1695 messages, each of which having been appended
> seperately to the file. All of my mailboxes exhibit similarly awful
> performance.
Yep, both ext2 and ext3 can get badly fragmented by files which are
closed, reopened and appended to frequently like that.
> Do any other filesystems handle this type of thing more gracefully?
There are some ideas from recent FFS changes. One thing they now do
is to defragment things automatically as a file grows by effectively
deleting and then reallocating the last 16 blocks of the file.
Fragmentation will still occur, but less so, if we do that.
Cheers,
Stephen
next prev parent reply other threads:[~2002-09-06 16:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-03 9:24 ext3 throughput woes on certain (possibly heavily fragmented) files Aaron Lehmann
2002-09-06 16:06 ` Stephen C. Tweedie [this message]
2002-09-06 17:14 ` Nikita Danilov
2002-09-06 17:22 ` Hans Reiser
2002-09-06 21:02 ` Aaron Lehmann
2002-09-06 22:05 ` Hans Reiser
2002-09-06 17:24 ` Stephen C. Tweedie
2002-09-16 22:39 ` Simon Kirby
2002-09-17 16:53 ` Andreas Dilger
2002-09-17 21:55 ` jw schultz
-- strict thread matches above, loose matches on Subject: below --
2002-09-16 18:00 Peter Niemayer
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=20020906170614.A7946@redhat.com \
--to=sct@redhat.com \
--cc=aaronl@vitelus.com \
--cc=linux-kernel@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