On Tue, May 07, 2013 at 04:24:05PM -0700, Daniel Phillips wrote:When something sounds to good to be true, it usually is. But not always. TodayI'm deeply suspicious of what is in that client2.txt file. dbench on
Hirofumi posted some nigh on unbelievable dbench results that show Tux3
beating tmpfs. To put this in perspective, we normally regard tmpfs as
unbeatable because it is just a thin shim between the standard VFS mechanisms
that every filesystem must use, and the swap device. Our usual definition of
successful optimization is that we end up somewhere between Ext4 and Tmpfs,
or in other words, faster than Ext4. This time we got an excellent surprise.
The benchmark:
dbench -t 30 -c client2.txt 1& (while true; do sync; sleep 4; done)
ext4 on a 4 SSD RAID0 array with a single process gets 130MB/s
(kernel is 3.9.0). Your workload gives you over 1GB/s on ext4.....
tux3:....
Operation Count AvgLat MaxLat
----------------------------------------
NTCreateX 1477980 0.003 12.944
ReadX 2316653 0.002 0.499Hmmm... No "Flush" operations. Gotcha - you've removed the data
LockX 4812 0.002 0.207
UnlockX 4812 0.001 0.221
Throughput 1546.81 MB/sec 1 clients 1 procs max_latency=12.950 ms
integrity operations from the benchmark.
Ah, I get it now - you've done that so the front end of tux3 won't
encounter any blocking operations and so can offload 100% of
operations. It also explains the sync call every 4 seconds to keep
tux3 back end writing out to disk so that a) all the offloaded work
is done by the sync process and not measured by the benchmark, and
b) so the front end doesn't overrun queues and throttle or run out
of memory.
Oh, so nicely contrived. But terribly obvious now that I've found
it. You've carefully crafted the benchmark to demonstrate a best
case workload for the tux3 architecture, then carefully not
measured the overhead of the work tux3 has offloaded, and then not
disclosed any of this in the hope that all people will look at is
the headline.
This would make a great case study for a "BenchMarketing For
Dummies" book.
Shame for you that you sent it to a list where people see the dbench
numbers for ext4 and immediately think "that's not right" and then
look deeper. Phoronix might swallow your sensationalist headline
grab without analysis, but I don't think I'm alone in my suspicion
that there was something stinky about your numbers.
Perhaps in future you'll disclose such information with your
results, otherwise nobody is ever going to trust anything you say
about tux3....
Cheers,
Dave.