Re: [Jfs-discussion] benchmark results

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tytso
Date: Sunday, December 27, 2009 - 3:33 pm

On Sun, Dec 27, 2009 at 01:55:26PM -0800, Christian Kujau wrote:

Yes, but given many of the file systems have almost *exactly* the same
bandwidth measurement for the "cp" test, and said bandwidth
measurement is 5 times the disk bandwidith as measured by hdparm, it
makes me suspect that you are doing this:

/bin/time /bin/cp -r /source/tree /filesystem-under-test
sync
/bin/time /bin/rm -rf /filesystem-under-test/tree
sync

etc.

It is *a* measurement, but the question is whether it's a useful
comparison.  Consider two different file systems.  One file system
which does a very good job making sure that file writes are done
contiguously to disk, minimizing seek overhead --- and another file
system which is really crappy at disk allocation, and writes the files
to random locations all over the disk.  If you are only measuring the
"cp", then the fact that filesystem 'A' has a very good layout, and is
able to write things to disk very efficiently, and filesystem 'B' has
files written in a really horrible way, won't be measured by your
test.  This is especially true if, for example, you have 8GB of memory
and you are copying 4GB worth of data.

You might notice it if you include the "sync" in the timing, i.e.:

/bin/time /bin/sh -c "/bin/cp -r /source/tree /filesystem-under-test;/bin/sync"


The question is whether your tests are doing the best job of measuring
how good the filesystem really is.  If your workload is one where you
will only be copying file sets much smaller than your memory, and you
don't care about when the data actually hits the disk, only when
"/bin/cp" returns, then sure, do whatever you want.  But if you want
the tests to have meaning if, for example, you have 2GB of memory and
you are copying 8GB of data, or if later on will be continuously
streaming data to the disk, and sooner or later the need to write data
to the disk will start slowing down your real-life workload, then not
including the time to do the sync in the time to copy your file set
may cause you to assume that filesystems 'A' and 'B' are identical in
performance, and then your filesystem comparison will end up
misleading you.

The bottom line is that it's very hard to do good comparisons that are
useful in the general case.

Best regards,

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
benchmark results, Christian Kujau, (Thu Dec 24, 3:31 am)
Re: benchmark results, Ryusuke Konishi, (Thu Dec 24, 5:06 am)
Re: benchmark results, Teran McKinney, (Thu Dec 24, 5:59 am)
Re: [Jfs-discussion] benchmark results, Peter Grandi, (Thu Dec 24, 6:05 am)
Re: benchmark results, Christian Kujau, (Thu Dec 24, 1:01 pm)
Re: [Jfs-discussion] benchmark results, tytso, (Thu Dec 24, 2:27 pm)
Re: [Jfs-discussion] benchmark results, Evgeniy Polyakov, (Thu Dec 24, 4:46 pm)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Thu Dec 24, 6:52 pm)
Re: [Jfs-discussion] benchmark results, lakshmi pathi, (Fri Dec 25, 6:19 am)
Re: [Jfs-discussion] benchmark results, tytso, (Fri Dec 25, 9:11 am)
Re: [Jfs-discussion] benchmark results, tytso, (Fri Dec 25, 9:14 am)
Re: [Jfs-discussion] benchmark results, Larry McVoy, (Fri Dec 25, 9:22 am)
Re: [Jfs-discussion] benchmark results, tytso, (Fri Dec 25, 9:33 am)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Fri Dec 25, 11:42 am)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Fri Dec 25, 11:51 am)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Fri Dec 25, 11:56 am)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Fri Dec 25, 12:32 pm)
Re: [Jfs-discussion] benchmark results, jim owens, (Sat Dec 26, 9:00 am)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Sat Dec 26, 12:06 pm)
Re: [Jfs-discussion] benchmark results, tytso, (Sat Dec 26, 12:19 pm)
Re: [Jfs-discussion] benchmark results, jim owens, (Sun Dec 27, 12:50 pm)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Sun Dec 27, 2:55 pm)
Re: [Jfs-discussion] benchmark results, tytso, (Sun Dec 27, 3:33 pm)
Re: [Jfs-discussion] benchmark results, Christian Kujau, (Sun Dec 27, 6:24 pm)
Re: [Jfs-discussion] benchmark results, Larry McVoy, (Mon Dec 28, 7:08 am)
Re: benchmark results, Emmanuel Florac, (Tue Dec 29, 4:27 am)
Re: [Jfs-discussion] benchmark results, Chris Mason, (Mon Jan 4, 9:27 am)
Re: [Jfs-discussion] benchmark results, Michael Rubin, (Mon Jan 4, 11:57 am)
Re: [Jfs-discussion] benchmark results, Dave Chinner, (Mon Jan 4, 5:41 pm)
Re: [Jfs-discussion] benchmark results, Steven Pratt, (Tue Jan 5, 8:31 am)
Re: [Jfs-discussion] benchmark results, Casey Allen Shobe, (Sun Jan 10, 6:03 pm)
Re: [Jfs-discussion] benchmark results, Larry McVoy, (Sun Jan 10, 6:32 pm)
Re: [Jfs-discussion] benchmark results, Edward Shishkin, (Fri Jan 15, 2:42 pm)