Many short writes on ext4 painfully slow -
Martin Langhoff
martin.langhoff at gmail.com
Wed Nov 11 06:19:07 EST 2009
Discussion on fedora-devel on very slow writing to the device when
large files are written in "short" writes. Maybe the kernel isn't
buffering all the writes together, for whatever reason.
ISTR that we've seen some large-file-writing issues on our side as
well -- some related to the SD card firmware, some more likely to be
in the FS stack.
Thread at http://www.redhat.com/archives/fedora-devel-list/2009-November/msg00525.html
---------- Forwarded message ----------
From: Richard W.M. Jones <rjones at redhat.com>
Date: Wed, Nov 11, 2009 at 11:53 AM
Subject: Re: cpio to ext4 seems much slower than to ext2, ext3 or xfs
To: fedora-devel-list at redhat.com
On Wed, Nov 11, 2009 at 10:14:21AM +0000, Richard W.M. Jones wrote:
> echo input | time cpio --quiet -o -H newc > /path/to/fs/output
Update: I found the -C option that lets me specify the blocksize, and
raising it to something sensible (65536) shows major improvements in
performance for all filesystems.
echo input | time cpio -C 65536 --quiet -o -H newc > /path/to/fs/output
> tmpfs 0.77 s x 1.0
> ext2 1.12 s x 1.5
> xfs 1.66 s x 2.1
> ext3 2.58 s x 3.4
> ext4 5.59 s x 7.3 <----
The new times are:
tmpfs 0.20 s x 1.0
ext2 0.30 s x 1.5
xfs 0.41 s x 2.1
ext3 0.57 s x 2.9
ext4 0.44 s x 2.2
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
--
fedora-devel-list mailing list
fedora-devel-list at redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
--
martin.langhoff at gmail.com
martin at laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Devel
mailing list