Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 221 commits behind facebook:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
src
Makefile
README

README

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 :
----------------------
opsdev209.snc1.facebook.com> 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.

Example:
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.