All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: devzero@web.de
Cc: dm-devel@redhat.com
Subject: Re: Re: bug in dm-loop? - was:Re: Re: device mapper
Date: Wed, 24 Jan 2007 18:38:26 +0000	[thread overview]
Message-ID: <45B7A7A2.9000106@redhat.com> (raw)
In-Reply-To: <1581640279@web.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

devzero@web.de wrote:
>> Again, to keep things simple in the prototype, we grab the biggest
>> possible table size when we create a new device and then re-allocate it
>> to the correct size when we finish building the map - that's what the
>> "Finalized extent map of 56 bytes, 2 entries." messages refer to.
> 
> may this be a reason why dmlosetup seems to be much slower than traditional losetup?
> i did some tests with some larger images (100m, 1gig and 2,5gig) and dmlosetting them up took quite a while.....
> 

Unfortunately, this is a more fundamental aspect of dm-loop. The way the
code achieves better performance than the regular loop driver is by
doing much of the work upfront when a device is first created. This does
mean that initial setup for a loop device takes longer with dm-loop, and
that time is again proportional to the size/fragmentation of the file.

For many filesystems, you can make 'guesses' that will speed things up,
but this comes at a heavy price. Guess wrong and it leads to data
corruption, so this isn't something we'd feel happy about implementing.

>> the code will fail if it needs >2048 table entries to describe the file
>> - - depending on the filesystem used and how fragmented it is this will
>> limit you to files of a few gigabytes. This is another arbitrary limit
>> in this version that will go away in later dm-loop releases.
> 
> indeed, it looks like there is a real hard 2gb limit - i wasn`t able to dmlosetup the 2,5gig files i created

It's not so much a  hard 2gb limit, but on a cleanly created ext3 or
similar fs, it tends to be around that number. Different filesystem
types or fragmentation levels change that number but they all stem from
the same limitation.

Kind regards,

Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFt6ei6YSQoMYUY94RAu6VAJ0fOkdxJFs2bYZQspfDyJcFxxphLQCgiQN0
6VUI4+o6h/NtJ+bvAbnMjR0=
=aIWR
-----END PGP SIGNATURE-----

      reply	other threads:[~2007-01-24 18:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-24 18:24 bug in dm-loop? - was:Re: Re: device mapper devzero
2007-01-24 18:38 ` Bryn M. Reeves [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=45B7A7A2.9000106@redhat.com \
    --to=breeves@redhat.com \
    --cc=devzero@web.de \
    --cc=dm-devel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.