3 ms·
There are a couple of block-level cache systems in development, but that haven't yet been accepted into the mainline kernel. The one most suited for desktop SSD
by wtallis 14y ago
There are a couple of block-level cache systems in development, but that haven't yet been accepted into the mainline kernel. The one most suited for desktop SSD+HDD use right now is bcache, which is aiming to hit the kernel staging area next year. Facebook's flashcache is the other main contender. Both offer writeback and writethrough caching, but they differ in their policies for what kind of I/O skips the cache. Bcache tries to detect sequential I/O and send that straight to the backing disk, and organizes the I/Os sent to the SSD in a manner that tries to go easy on the SSD's wear leveling and garbage collection algorithms. Flashcache, on the other hand, tries to use the SSD to cache chunks of information that fit the SSD's page size - smaller I/Os skip the cache, which is probably the exact wrong thing for desktop workloads.