All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: roland <devzero@web.de>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: Re: bug in dm-loop? - was:Re: Re: device mapper integrated loops - and one more year !
Date: Mon, 22 Jan 2007 23:20:06 +0000	[thread overview]
Message-ID: <45B546A6.3030608@redhat.com> (raw)
In-Reply-To: <087b01c73e76$9ccf68d0$eeeea8c0@aldipc>

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

roland wrote:
>> You're particularly likely to see these problems with large images such
>> as DVD ISOs, as the number of entries in the lookup table is
>> proportional to the size of the image and the degree of fragmentation of
>> the filesystem on which it is stored.
> uuuhhhhh - mhhhh - this sounds bad, since the testfiles i created were
> all sized 100k each.

With ~3000 of them active concurrently on a machine with 256M of RAM,
I'm not that surprised that you hit this limit!

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.

If debugging was enabled when the module was built, you should also see
messages like:

 loop: [DEBUG] setup_loop_extents:Allocated initial extent map of 57352
bytes, 2048 entries.

It's these initial large allocations that are causing the errors you see.

The code's pretty dumb in this area at the moment - improving memory
allocation and the time spent looking up entries in the table are our
current goals for dm-loop.

> i think i need to attach a big disk and create some more big files to
> test with....

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.

Kind regards,

Bryn.

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

iD8DBQFFtUam6YSQoMYUY94RAlMnAJ9C3fivcmwgcWiA8G5UIULB1BwnPgCgyrIO
n1QfreVTGUNfMHA6bRWdzwI=
=AV8G
-----END PGP SIGNATURE-----

      reply	other threads:[~2007-01-22 23:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-21 17:16 bug in dm-loop? - was:Re: Re: device mapper integrated loops - and one more year ! devzero
2007-01-22 10:00 ` Bryn M. Reeves
2007-01-22 22:00   ` roland
2007-01-22 22:10     ` Bryn M. Reeves
2007-01-22 22:42       ` roland
2007-01-22 23:20         ` 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=45B546A6.3030608@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.