FS#11284 - [squashfs-tools] Hang with mksquashfs and large filesystem
Attached to Project:
Arch Linux
Opened by Denis Martinez (denis) - Friday, 22 August 2008, 12:39 GMT
Last edited by Paul Mattal (paul) - Saturday, 06 February 2010, 23:12 GMT
Opened by Denis Martinez (denis) - Friday, 22 August 2008, 12:39 GMT
Last edited by Paul Mattal (paul) - Saturday, 06 February 2010, 23:12 GMT
|
Details
Description:
I have setup a chrooted Arch install in a directory, and I want to compress it to squashfs. The directory is ~4GB. So, I ran mksquashfs, with no additional parameters: # mksquashfs file.sqfs squash/ Then the program initializes, the percentage bar advances and gets stuck at ~80%. There is no more activity on any of my CPU cores. Additional info: Version 3.3-1 Ubuntu mentions a patch on launchpad, but I haven't had time to try it yet: (the bug is possibly related to multithreading) https://bugs.launchpad.net/ubuntu/+source/squashfs/+bug/222700 I will try to apply the patch ant post more details later. |
This task depends upon
http://squashfs.cvs.sourceforge.net/viewvc/squashfs/squashfs/squashfs-tools/mksquashfs.c?r1=1.84&r2=1.85
I think we can remove the mksquashfs name change since that part of the patch will not work or matters for the fix.
I recommend closing this bug as fixed on February bug day, unless godane or drf report in before then that some behavior is still broken for them with 4.0-1.
I agree that the memory usage is sometimes large, but it does not grow boundlessly, nor seem to vary directly with image size. Maybe the squashfs compression algorithm grabs more RAM if it looks like you have a lot, in the hopes of increasing your compression ratio?