flashcache
li_Jiejun
-
Flashcache
Flashcache制作步骤 步骤: 1. qemu-img create -f raw /tmp/test.img 1G 2. dd if=/dev/zero of=/tmp/test.img bs=1M count=1024 3. losetup -f /tmp/test.img //将 test.img 虚拟成第一个未使用的回环设备 4. losetup -a原创 2014-06-23 10:45:18 · 571 阅读 · 0 评论 -
flashcache 源码解析
前言从flashcache的创建开始,介绍flashcache在SSD上的layout和内存数据结构,简单地说就是数据组织形式。 sprintf(dmsetup_cmd, "echo 0 %lu flashcache %s %s %s %d 2 %lu %lu %d %lu %d %lu" " | dmsetup create %s", ...转载 2018-05-22 11:02:38 · 1149 阅读 · 0 评论