public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Sync over loop devices takes ages? [2.4.17]
Date: Thu, 28 Feb 2002 10:05:34 -0800	[thread overview]
Message-ID: <3C7E716E.9DC59B12@zip.com.au> (raw)
In-Reply-To: <20020228095955.GH774@elf.ucw.cz>

Pavel Machek wrote:
> 
> Hi!
> 
> I have a script (attached). At one point it tries to do sync... That
> sync take a long time, with disk mostly unused.

When doing (say) ext2-on-loop-on-ext2 you should always ensure
that the blocksize for the topmost filesystem is the same as
the one underneath.  So probably you wanted `mkfs.ext2 -b 4096'.

If you have a 1k blocksize filesystem loop-mounted on a 4k blocksize
filesystem, every write of a 1k block requires a read of the underlying
4k block. Which is excrutiatingly slow.

Some readahead in the loop driver would help heaps.

-

  parent reply	other threads:[~2002-02-28 18:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-28  9:59 Sync over loop devices takes ages? [2.4.17] Pavel Machek
2002-02-28 11:52 ` Bjorn Wesen
2002-02-28 18:05 ` Andrew Morton [this message]
2002-02-28 20:12   ` Pavel Machek

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=3C7E716E.9DC59B12@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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