From: Theodore Tso <tytso@mit.edu>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Does "32.1% non-contiguous" mean severely fragmented?
Date: Sat, 20 Oct 2007 09:17:20 -0400 [thread overview]
Message-ID: <20071020131719.GA8860@thunk.org> (raw)
In-Reply-To: <200710201239.BIF34800.OOJQFLMHFVtFOS@I-love.SAKURA.ne.jp>
On Sat, Oct 20, 2007 at 12:39:33PM +0900, Tetsuo Handa wrote:
> Theodore Tso wrote:
> > beginning of every single block group. You have a small number of
> > files on your system (349) occupying an average of 348 megabytes. So
> > it's not at all surprising that the contiguous percentage is 32%.
> I see, thank you. Yes, there are many files splitted in 2GB each.
>
> But what is surprising for me is that I have to wait for more than
> five minutes to save/restore the virtual machine's 512MB-RAM image
> (usually it takes less than five seconds).
> Hdparm reports DMA is on and e2fsck reports no errors,
> so I thought it is severely fragmented.
> May be I should backup all virtual machine's data and
> format the partition and restore them.
Well, that's a little drastic if you're not sure what is going on is
fragmentation.
5 minutes to save/restore a 512MB ram image, assuming that you are
saving somewhere around 576 megs of data, means you are writing less
than 2 megs/second. That seems point to something fundamentally
wrong, far worse than can be explained by fragmentation.
First of all, what does the "filefrag" program (shipped as part of
e2fsprogs, not included in some distributions) say if you run it as
root on your VM data file?
Secondly, what results do you get when you run the command "hdparm -tT
/dev/sda" (or /dev/hda if you are using an IDE disk)?
This kind of performance regression is the sort of thing I see on my
laptop when compile the kernel with the wrong options, and/or disable
AHCI mode in favor of compatibility mode, such that my laptop SATA
performance (as measured using hdparm) drops from 50 megs/second to 2
megs/second.
Regards,
- Ted
next prev parent reply other threads:[~2007-10-20 13:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 1:49 Does \"32.1% non-contigunous\" mean severely fragmented? Tetsuo Handa
2007-10-19 18:52 ` Theodore Tso
2007-10-20 3:39 ` Does "32.1% non-contiguous" " Tetsuo Handa
2007-10-20 13:17 ` Theodore Tso [this message]
2007-10-22 11:58 ` Tetsuo Handa
2007-10-22 13:02 ` Theodore Tso
2007-10-23 10:38 ` Tetsuo Handa
2007-10-23 12:34 ` Theodore Tso
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=20071020131719.GA8860@thunk.org \
--to=tytso@mit.edu \
--cc=linux-fsdevel@vger.kernel.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
/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;
as well as URLs for NNTP newsgroup(s).