Skip to contentSkip to conversation

Status dm-cache

DISCUSSION Rolf Fokkens 2 participants 3 messages Aug 25, 2013 – Aug 27, 2013 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi!

I'm trying to package some tools for "SSD caching" for Fedora 20, see: https://bugzilla.redhat.com/show_bug.cgi?id=998543

bcache has some nice bcache-tools, and packaging progresses well: https://bugzilla.redhat.com/show_bug.cgi?id=999690

Packaging dm-cache however seems seems hard. I'm not aware of any userland tools, and using dm-cache (without them) seems quite complex. Looks like all kinds of math are needed to make it work, e.g. : http://blog.kylemanna.com/linux/2013/06/30/ssd-caching-using-dmcache-tutorial/.
- Is there a (well supported) toolset available that I'm missing?
- Is there any kind of autodetect possible, e.g. during boot?

Any information on the status of dm-cache is appreciated.

Thanks,

Rolf Fokkens

#1 lore raw

Dne 25.8.2013 23:46, Rolf Fokkens napsal(a):

Quoted 8 lines

Hi!

I'm trying to package some tools for "SSD caching" for Fedora 20, see:
https://bugzilla.redhat.com/show_bug.cgi?id=998543

bcache has some nice bcache-tools, and packaging progresses well:
https://bugzilla.redhat.com/show_bug.cgi?id=999690

Quoted 8 lines

Packaging dm-cache however seems seems hard. I'm not aware of any userland tools, and using dm-cache (without them) seems quite complex. Looks like all kinds of math are needed to make it work, e.g. :
http://blog.kylemanna.com/linux/2013/06/30/ssd-caching-using-dmcache-tutorial/.
- Is there a (well supported) toolset available that I'm missing?
- Is there any kind of autodetect possible, e.g. during boot?

Any information on the status of dm-cache is appreciated.

For direct usage of dm-cache target:

linux/Documentation/device-mapper/cache.txt linux/Documentation/device-mapper/cache-policies.txt

Userland tool here is dmsetup.

There will be a direct support for dm cache device stacking in lvm2 in the future. It will use nearly the same code as is used for thin provisioning, so the code for now thinp is improved to handle recovery more autonomously first before the caching support will be added.

Zdenek

#2 lore raw

Thanks.

I'll defer integrating dm-cache in Fedora until LVM2 supports it.

Rolf

Quoted 36 lines · Zdenek Kabelac

Dne 25.8.2013 23:46, Rolf Fokkens napsal(a):

Quoted 13 lines

Hi!

I'm trying to package some tools for "SSD caching" for Fedora 20, see:
https://bugzilla.redhat.com/show_bug.cgi?id=998543

bcache has some nice bcache-tools, and packaging progresses well:
https://bugzilla.redhat.com/show_bug.cgi?id=999690

Packaging dm-cache however seems seems hard. I'm not aware of any userland tools, and using dm-cache (without them) seems quite complex. Looks like all kinds of math are needed to make it work, e.g. :
http://blog.kylemanna.com/linux/2013/06/30/ssd-caching-using-dmcache-tutorial/.

Quoted 4 lines

- Is there a (well supported) toolset available that I'm missing?
- Is there any kind of autodetect possible, e.g. during boot?

Any information on the status of dm-cache is appreciated.

For direct usage of dm-cache target:

linux/Documentation/device-mapper/cache.txt linux/Documentation/device-mapper/cache-policies.txt

Userland tool here is dmsetup.

There will be a direct support for dm cache device stacking in lvm2 in the future. It will use nearly the same code as is used for thin provisioning, so the code for now thinp is improved to handle recovery more autonomously first before the caching support will be added.

Zdenek

Signature · 3 lines
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel