Skip to content
Pull request Compare This branch is 225 commits behind facebook:master.
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


flashcache-wt is a simple, non-persistent write through flashcache.

It is a separate code base from flashcache (which is write back only).

Notes :
1) flashcache-wt is non persistent, which means that on a cache remove 
(or a reboot), you will lose the cache entirely. Since the cache is write 
through, this will not result in any data loss.
2) Built on 2.6.18, .20, .27-.32 successfully. Tested on .18, .20, .27 
and .32 successfully.

Building flashcache-wt :
----------------------> make KERNEL_TREE=<Base of kernel tree>

Creating a flashcache-wt volume :
flashcache_wt_create : Create a new flashcache-wt volume.

flashcache_wt_create [-s cache size] [-b block size] cachedevname ssd_devname disk_devname

Very similar to flashcache_create.

Removing a flashcache-wt volume :
Use dmsetup remove to remove a flashcache-wt volume.

dmsetup remove cachedev

Cache Stats :
Use 'dmsetup status' for cache statistics.

'dmsetup table' also dumps a number of cache related statistics.

Examples :
dmsetup status cachedev
dmsetup table cachedev

Cache Blocksize Selection
4KB cache blocks are suitable for the vast majority of the cases.

Also see the flashcache-sa-guide for more discussion on this.

Something went wrong with that request. Please try again.