复制代码代码如下:</p><p>flashcache_create -p back cachedev /dev/sdc /dev/sdb </p><p>cachedev cachedev, ssd_devname /dev/sdc, disk_devname /dev/sdb cache mode WRITE_BACK</p><p>block_size 8, md_block_size 8, cache_size 0</p><p>Flashcache metadata will use 1192MB of your 24016MB main memory
复制代码代码如下:</p><p>Writethrough - safest, all writes are cached to ssd but also written to disk</p><p>immediately. If your ssd has slower write performance than your disk (likely</p><p>for early generation SSDs purchased in 2008-2010), this may limit your system</p><p>write performance. All disk reads are cached (tunable).
复制代码代码如下:</p><p>Writearound - again, very safe, writes are not written to ssd but directly to</p><p>disk. Disk blocks will only be cached after they are read. All disk reads</p><p>are cached (tunable).
复制代码代码如下:Writeback - fastest but less safe. Writes only go to the ssd initially, and</p><p>based on various policies are written to disk later. All disk reads are</p><p>cached (tunable).