Skip to contentSkip to conversation

recommanded cache setting for rbd image

DISCUSSION Stefan Priebe - Profihost AG 2 participants 3 messages Nov 5, 2012 – Nov 6, 2012

lore
Share & tools
lore
#0 lore raw

Hello list,

right now i'm testing rbd block devices with kvm using Default cache (no cache).

Is there any recommanded value for RBD? (i don't wanna loose data)

Stefan

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

Hello list,

right now i'm testing rbd block devices with kvm using Default cache (no cache).

Is there any recommanded value for RBD? (i don't wanna loose data)

It acts like a well-behaved disk cache (i.e. it respects flushes/barriers from the guest), so it's no more likely to cause data loss than a local hard disk in the event of an unexpected shutdown.

I recommend running it in writeback mode (the default when rbd cache = true). The best cache size will depend on your workload and hardware.

#2 lore raw

Am 06.11.2012 00:57, schrieb Josh Durgin:

Quoted 6 lines · Stefan Priebe - Profihost AG
Quoted 5 lines

Hello list,

right now i'm testing rbd block devices with kvm using Default cache (no cache).

Quoted 8 lines
Quoted 1 line

Is there any recommanded value for RBD? (i don't wanna loose data)

It acts like a well-behaved disk cache (i.e. it respects flushes/barriers from the guest), so it's no more likely to cause data loss than a local hard disk in the event of an unexpected shutdown.

I recommend running it in writeback mode (the default when rbd cache = true). The best cache size will depend on your workload and hardware.

Thanks i'll check how this influence my disks and storage.

Thanks!

Stefan