Re: bug in dm-loop? - was:Re: Re: device mapper integrated loops - and one more year !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

roland wrote:
> Hi Bryn,
> 
>> I'll also get the version on kernel.org updated - thanks for catching
>> this!
> 
> thanks very much for that quick patch - it works as expected and the
> kernel oops went away!

Your very welcome! I'm glad it addressed the problem & it's good to get
some feedback on dm-loop.

> since i want to use dm-loop for having a large number of loop-devices, i
> did some more "hardcore testing". ;)
> 
> so, i wrote a little test script which created a lot of dummy-files and
> turning them into a dm-loop target.
> 
> this worked very well - must have been around 3000 loop-targets when i
> got this one:

That's useful to know - this is a known limitation of the current code.

It simply allocates one big area of memory to store the lookup table for
the device. These kind of large, contiguous allocations are a "bad
thing" in the kernel, as you get failures of the kind you noted when
memory gets tight/fragmented.

> this was on a system with 256 MB of ram.
> 
> i assume, that i ran out of some kernel-buffer memory.
> 
> ok, not a real problem for me since i don`t expect having that much
> number of iso images on my cd-roms server to be loopback mounted, but -
> anyway - could you probably give a comment on this ?
> 
> is this some "natural limitation" due to dm-loop or device mapper
> consuming kernel-memory, or could this be another bug ?
> 

The current development version allocates these structures piecemeal, so
there isn't a single large allocation, rather many small allocations -
this will make problems like this go away (unless you really are out of
memory!).

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.

Thanks again for testing!

Bryn.




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

iD8DBQFFtTZV6YSQoMYUY94RAhpAAJ46Bqw+qBEVzapdKZh2V2nbx4AzHACePfsV
ttYf/s/ed3z/cBeCHEE09FY=
=ds+L
-----END PGP SIGNATURE-----

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux