linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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: Tue, 23 Oct 2007 08:34:16 -0400	[thread overview]
Message-ID: <20071023123416.GH27132@thunk.org> (raw)
In-Reply-To: <200710231938.BAI69744.FHLOMJOFFVtSOQ@I-love.SAKURA.ne.jp>

On Tue, Oct 23, 2007 at 07:38:20PM +0900, Tetsuo Handa wrote:
> > Are you sure the file isn't getting written by some background tasks
> > that you weren't aware of?  This seems very strange; what
> > virtualization software are you using?  VMware, Xen, KVM?
> I'm using VMware Workstation 6.0.0 build 45731 for x86_64.
> It seems that there were some background tasks that delays writing.
> I tried the following sequence, "sync" didn't affect.

Or it may be that it takes a while to do a controlled shutdown.

One potential reason for the vmem file being very badly fragmented is
that it might not be getting written in sequential order.  If the
writer is writing the file in random order, then unless you have a
filesystem which can do delayed allocations, the blocks will get
allocated in the other that they are first written, and if the writer
is seeking to random locations to do the write, that's one way that
you can end up with a very badly fragmented file.

Regards,

							- Ted

      reply	other threads:[~2007-10-23 12:34 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
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 [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=20071023123416.GH27132@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).