Skip to contentSkip to conversation

difference between qemu cache settings and ceph.conf rbd cache settings?

DISCUSSION Stefan Priebe - Profihost AG 2 participants 3 messages Jun 19, 2012

lore
Share & tools
lore
#0 lore raw

Hello list,

i've now patched my qemu to include the qemu cache settings for rbd.

Now i can change my drive caching mode. But there are also these settings for global section in ceph.conf.

        rbd_cache = true
        rbd_cache_size = 33554432
        rbd_cache_max_age = 2.0

How do they influence or replace each other?

thanks
Stefan

#1 lore raw
Quoted 7 lines · Stefan Priebe - Profihost AG

Hello list,

i've now patched my qemu to include the qemu cache settings for rbd.

Now i can change my drive caching mode. But there are also these settings for global section in ceph.conf.

Quoted 8 lines

rbd_cache = true
rbd_cache_size = 33554432
rbd_cache_max_age = 2.0

How do they influence or replace each other?

thanks
Stefan

In qemu, the cache settings map to:

writeback:
rbd_cache = true

writethrough:
rbd_cache = true
rbd_cache_max_dirty = 0

none:
rbd_cache = false

qemu's settings are overridden by any custom settings you have in a config file or on the qemu command line.

Josh

#2 lore raw

Am 19.06.2012 08:42, schrieb Josh Durgin:

Quoted 9 lines

In qemu, the cache settings map to:

writeback:
rbd_cache = true

writethrough:
rbd_cache = true
rbd_cache_max_dirty = 0

Quoted 5 lines

none:
rbd_cache = false

qemu's settings are overridden by any custom settings you have in a config file or on the qemu command line.

Thanks!

Stefan