flashcache_create - create a new flashcache volume
flashcache_create initializes a new flashcache volume from unformated block devices. It creates flashcache meta data and provides new volumes though their volume mappings.
flashcache_create -p back|around|thru [-s cache size] [-b block size] [-v] cachedevname cache_devname disk_devname
The following caching modes are supported:
Writethrough (thru) - safest mode, all writes are cached to the cache device but are also being written to disk immediately. If the used cache device has a lower write performance than the backend disk (many early generation SSD drives manufactured between 2008-2010 are known for such a poor write performance) enabling the writethrough mode may decrease the system write performance. All disk reads are cached (tunable through flashcache’s /proc interface).
Writearound (ardound) - again, very safe, writes are not written to the cache device, but directly to the backend disk instead. Disk blocks will only be cached after they are read. All disk reads are cached (tunable through flashcache’s /proc interface).
Writeback (back) - fastest mode but less safe. Writes only go to the cache device initially, and are being written to the backend disk later, depending on configured system policie. All disk reads are cached (tunable through flashcache’s /proc interface).
Writethru and Writearound caches are not persistent across a device removal or a reboot. Only Writeback caches are persistent across device removals and reboots. This reinforces ‘writeback is fastest’, ‘writethrough is safest’.
flashcache_load(8), flashcache_destroy(8)
README and other documents in /usr/share/doc/flashcache-utils. In particular, see flashcache-sa-guide.txt for configuring the flashcache kernel module through its /proc interface.
The flashcache source code and all documentation may be downloaded from https://github.com/facebook/flashcache/.
Flashcache is developed by Mohan Srinivasan mohan@fb.com
This man page was written by Dmitry Smirnov onlyjob@member.fsf.org for Debian GNU/Linux (but may be used by others).