Bonnie++ results with DIRECT access

While applications normally access the disk by using host OS cache and buffers, sometime can be convenient to directly access the selected file. For example, think to audio/video editing programs: they access streams of data that will be read/written once, so it is not convenient to cache them. More importantly, direct file access is used by many virtual machine softwares (hypervisors) and by some database systems. So, I tested DIRECT file access also.

Let's see Bonnie++ sequential direct access results:

EXT4 vs XFS

We have a tie here, with XFS using marginally lower CPU time.

Now, random seeks:

EXT4 vs XFS

EXT4 continue to show a measurable advantage in random seeks.

What about file creation and deletion (metadata handling)?

EXT4 vs XFS

EXT4 continue to be the fastest. File deletion is again so fast that Bonnie can not produce a valid result.

Now, synchronous operations:

EXT4 vs XFS

XFS is faster in this mode.

So, from these Bonnie test it appear that XFS can be marginally faster than EXT4 in sequential operations, but it is generally slower in metadata handling. However, you can argue that file creation and deletion speed is rarely a deciding factor, at least when these operations are executed at acceptable levels (as we can see here).

A more interesting thing is that EXT4 appear faster then XFS in random seeks, as random read/write performances are quite important in a wide range of applications.