Disable the filesystem buffer cache by preloading this library.1
To compile the library simply run make
. You can pre-load it using the LD_PRELOAD
environment variable in this way:
# export LD_PRELOAD=$FULL_PATH_OF_YOUR_LIBRARY/libdirectio.so.0.1
Then you can run your brand-new direct I/O benchmark (typically dd
) for block devices.
To unload the library and restore the standard access simply run:
# unload LD_PRELOAD