xfs-masters
[Top] [All Lists]

[Bug 14208] XFS 5x slower than other filesystems when used as /var/tmp

To: xfs-masters@xxxxxxxxxxx
Subject: [Bug 14208] XFS 5x slower than other filesystems when used as /var/tmp
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Tue, 22 Sep 2009 18:06:55 GMT
Auto-submitted: auto-generated
In-reply-to: <bug-14208-470@xxxxxxxxxxxxxxxxxxxxxxxx/>
References: <bug-14208-470@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.kernel.org/show_bug.cgi?id=14208


Eric Sandeen <sandeen@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandeen@xxxxxxxxxx




--- Comment #3 from Eric Sandeen <sandeen@xxxxxxxxxx>  2009-09-22 18:06:55 ---
This is probably due at least partly to the flush-on-close-after-truncate
semantics in xfs.

Rather than "echo" try a trivial c program or some other utility which will
overwrite, rather than truncate & write, and see if you get a difference.

IOW:

$ time (for i in `seq 1 10000 `; do echo "this is a sentence" > /tmp/wc.$$; wc
/tmp/wc.$$ > /dev/null; done; rm /tmp/wc.$$ )

real    2m52.457s
user    0m7.137s
sys    0m19.547s

vs:

$ echo "this is a sentence" > content

$ time (for i in `seq 1 10000 `; do dd if=content of=/tmp/wc.$$ conv=notrunc
&>/dev/null; wc /tmp/wc.$$ > /dev/null; done; rm /tmp/wc.$$ )

real    0m56.906s
user    0m13.289s
sys    0m35.788s

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

<Prev in Thread] Current Thread [Next in Thread>