[Bug 617437] New: umount ext3 or ext4 10x slower than ext2
http://bugzilla.novell.com/show_bug.cgi?id=617437 http://bugzilla.novell.com/show_bug.cgi?id=617437#c0 Summary: umount ext3 or ext4 10x slower than ext2 Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: lnussel@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- consider the following script which creates a file system in a sparse file, loop mounts it, copies some data and umounts the file again: #!/bin/bash -xe img="$1" rm -f "$img" dd if=/dev/zero of=$img bs=1G count=0 seek=4 mkfs.ext2 -q -F "$img" mount -o loop "$img" /mnt dd if=/dev/zero of=/mnt/file bs=1M count=300 time umount /mnt On my host the umount call takes ~0.8 seconds with ext2 and >10 seconds if the script is modified to create ext3 or ext4. That makes the setup for local package building with kvm painfully slow. I don't have exact numbers but on 11.2 there was no such huge delay when umounting ext3 images. FWIW the file system that hosts the image also is ext3 here (same partition was used on 11.2). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617437
http://bugzilla.novell.com/show_bug.cgi?id=617437#c1
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c2
Martin Konold
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c3
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c4
Christian Dengler
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c5
Petr Uzel
Petr, what is your opinion here. Should we do the workaround with an util-linux update?
This should really be fixed on the kernel side.
What is the status of the kernel fix?
Greg? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c6
--- Comment #6 from Martin Konold
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c7
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c8
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c9
--- Comment #9 from Petr Uzel
Greg? Why me?
Because of comment #1 I assumed you would know the current status (if it is possible to fix this in 11.3 kernel). As for the workaround in util-linux umount(8): recently we got rid of unnecessary sync() in umount (bug #447036), so I don't think adding it back is a good idea. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c10
Martin Konold
Anyway, this is fixed in the FACTORY and Tumbleweed kernels, so if anyone is having problems with it, please use those releases instead.
Is this the official policy for maintenance of 11.3 at this point in time?
There is no simple fix for the 11.3 kernel at this point in time, sorry.
If there is no simple fix for the 11.3 kernels maybe the issue should be worked around in user space?
I'm going to mark this closed.
I object for the plain reason that currently there is no supported _release_ which fixes this issue. What about SLES11? Yours, -- martin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c11
--- Comment #11 from Martin Konold
As for the workaround in util-linux umount(8): recently we got rid of unnecessary sync() in umount (bug #447036),
https://bugzilla.novell.com/show_bug.cgi?id=447036 is not readable for me.
so I don't think adding it back is a good idea.
Maybe it was premature to remove some of the sync() calls in umount? Yours, -- martin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c12
Greg Kroah-Hartman
(In reply to comment #7)
Anyway, this is fixed in the FACTORY and Tumbleweed kernels, so if anyone is having problems with it, please use those releases instead.
Is this the official policy for maintenance of 11.3 at this point in time?
The official policy of maintenance for 11.3 is well known, and has nothing to do with this bug. Again, there is no trivial, or even non-trivial, fix for this issue on this kernel version, sorry. If you are having the problem, please upgrade to a newer kernel as found in Tumbleweed or FACTORY or in the 11.4 beta releases.
There is no simple fix for the 11.3 kernel at this point in time, sorry.
If there is no simple fix for the 11.3 kernels maybe the issue should be worked around in user space?
You can do it that way if you wish.
I'm going to mark this closed.
I object for the plain reason that currently there is no supported _release_ which fixes this issue. What about SLES11?
SLES11 has nothing to do with this issue. If you see this problem in a SLE release, please file a bug through the proper channels for it and it will be resolved. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c13
--- Comment #13 from Petr Uzel
Maybe it was premature to remove some of the sync() calls in umount?
1) The sync() does not belong there: http://www.spinics.net/lists/util-linux-ng/msg03189.html 2) We used to sync() _after_ the umount(2) call (IOW, this bug is not caused/exposed by removing the sync()) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c14
--- Comment #14 from Martin Konold
If there is no simple fix for the 11.3 kernels maybe the issue should be worked around in user space?
You can do it that way if you wish.
I object for the plain reason that currently there is no supported _release_ which fixes this issue. What about SLES11?
SLES11 has nothing to do with this issue. If you see this problem in a SLE release, please file a bug through the proper channels for it and it will be resolved.
I set up a SLES11 system and verified that the problem does not exist with SLES11. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c15
--- Comment #15 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c16
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c17
--- Comment #17 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c18
--- Comment #18 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c19
--- Comment #19 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c20
--- Comment #20 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c21
--- Comment #21 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c22
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c23
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=617437
https://bugzilla.novell.com/show_bug.cgi?id=617437#c24
--- Comment #24 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com