Skip to contentSkip to conversation

About external log and barriers

DISCUSSION Emmanuel Florac 1 participant 1 message Apr 11, 2008

lore
Share & tools
lore
#0 lore raw

Just to mention an interesting thing I've tested : using a fast SSD (MTRON 7000) to hold the filesystem log for a big RAID array gives an high boost for small IO on the filesystem, somewhat similar to a "no barrier" but much safer, and quicker for random file 1KB open and read.

The benchmark creates 250000 1KB files, then randomly open, stat and read them. I made an average of several runs to compensate for the randomness of the test.

mkfs.xfs -f -l logdev=/dev/sdb1,size=134217728 /dev/vg0/lv0

... testing 250000 files ...

#1 sequential create     : 189.197 seconds (1321.37 op/s).
#2 random open           : 6.199 seconds (40328.99 op/s).
#3 random stat           : 1.981 seconds (126228.58 op/s).
#4 random read           : 10.851 seconds (23038.37 op/s).
#5 sequential delete     : 50.638 seconds (4937.01 op/s).
# internal log, no barrier
#1 sequential create     : 387.128 seconds (645.78 op/s).
#2 random open           : 12.585 seconds (19864.55 op/s).
#3 random stat           : 1.935 seconds (129192.01 op/s).
#4 random read           : 35.002 seconds (7142.51 op/s).
#5 sequential delete     : 20.691 seconds (12082.71 op/s).

#internal log, with barriers (fs on /dev/sda5)
... testing 250000 files ...

#1 sequential create     : 4728.878 seconds (52.87 op/s). -> OUCH.
#2 random open           : 7.645 seconds (32700.42 op/s).
#3 random stat           : 1.931 seconds (129446.22 op/s).
#4 random read           : 15.157 seconds (6494.04 op/s).
#5 sequential delete     : too long, ^C after a few minutes!

#external log on SSD, with barriers ( fs on /dev/sda5) ... testing 250000 files ...

#1 sequential create     : 193.766 seconds (1290.22 op/s).
#2 random open           : 4.197 seconds (59567.76 op/s).
#3 random stat           : 1.967 seconds (127069.32 op/s).
#4 random read           : 13.847 seconds (18054.43 op/s).
#5 sequential delete     : 53.281 seconds (4692.11 op/s).

Apparently small writes are just too slow to be usable with barriers, unless you're using a 1500$ SSD to store your log :)

Signature · 3 lines
--------------------------------------------------
Emmanuel Florac               www.intellique.com   
--------------------------------------------------