Skip to contentSkip to conversation

optmize librbd for iops

DISCUSSION Stefan Priebe - Profihost AG 2 participants 5 messages Nov 12, 2012 – Nov 13, 2012

lore
Share & tools
lore
#0 lore raw

Hello list,

are there any plans to optimize librbd for iops? Right now i'm able to get 50.000 iop/s via iscsi and 100.000 iop/s using multipathing with iscsi.

With librbd i'm stuck to around 18.000iops. As this scales with more hosts but not with more disks in a vm. It must be limited by rbd implementation in kvm / librbd.

Greets,
Stefan

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

Hello list,

are there any plans to optimize librbd for iops? Right now i'm able to get 50.000 iop/s via iscsi and 100.000 iop/s using multipathing with iscsi.

With librbd i'm stuck to around 18.000iops. As this scales with more hosts but not with more disks in a vm. It must be limited by rbd implementation in kvm / librbd.

It'd be interesting to see which layers are most limiting in this case - qemu/kvm, librados, or librbd.

How does rados bench with 4k writes and then 4k reads with many concurrent IOs do?

Unfortunately there's no librbd read benchmark yet.

Josh

#2 lore raw

Am 13.11.2012 08:51, schrieb Josh Durgin:

Quoted 11 lines · Stefan Priebe - Profihost AG
Quoted 9 lines

Hello list,

are there any plans to optimize librbd for iops? Right now i'm able to get 50.000 iop/s via iscsi and 100.000 iop/s using multipathing with iscsi.

With librbd i'm stuck to around 18.000iops. As this scales with more hosts but not with more disks in a vm. It must be limited by rbd implementation in kvm / librbd.

Quoted 5 lines

It'd be interesting to see which layers are most limiting in this case - qemu/kvm, librados, or librbd.

How does rados bench with 4k writes and then 4k reads with many concurrent IOs do?

Right now i'm using qemu-kvm with librbd and fio inside guest. How does the rados bench work?

Stefan

#3 lore raw
Quoted 12 lines · Stefan Priebe

Am 13.11.2012 08:51, schrieb Josh Durgin:

Quoted 11 lines · Stefan Priebe - Profihost AG
Quoted 9 lines

Hello list,

are there any plans to optimize librbd for iops? Right now i'm able to get 50.000 iop/s via iscsi and 100.000 iop/s using multipathing with iscsi.

With librbd i'm stuck to around 18.000iops. As this scales with more hosts but not with more disks in a vm. It must be limited by rbd implementation in kvm / librbd.

Quoted 7 lines
Quoted 5 lines

It'd be interesting to see which layers are most limiting in this case - qemu/kvm, librados, or librbd.

How does rados bench with 4k writes and then 4k reads with many concurrent IOs do?

Right now i'm using qemu-kvm with librbd and fio inside guest. How does the rados bench work?

rados bench uses librados aio, keeping several operations in flight. IO size is the same as object size for it.

You can do a 4k write benchmark that doesn't delete the objects it writes, with 32 IOs in flight for 300 seconds:

rados -p data bench 300 write -b 4096 -t 32 --no-cleanup

Then a read benchmark (only sequential is implemented, but with 4k objects it's similar to random if you flush the osd's page cache before running it):

rados -p data bench 300 seq -b 4096 -t 32

You can divide the avg throughput by IO size to get IOPS.

Josh

#4 lore raw

Am 13.11.2012 09:20, schrieb Josh Durgin:

Quoted 8 lines · Stefan Priebe

rados bench uses librados aio, keeping several operations in flight. IO size is the same as object size for it.

You can do a 4k write benchmark that doesn't delete the objects it writes, with 32 IOs in flight for 300 seconds:

rados -p data bench 300 write -b 4096 -t 32 --no-cleanup

This gives me just 9000 iop/s - callgraph attached.

Quoted 5 lines

Then a read benchmark (only sequential is implemented, but with 4k objects it's similar to random if you flush the osd's page cache before running it):

rados -p data bench 300 seq -b 4096 -t 32

This gives me 43 000 iops. But i'm sure readahead or a buffer is the burst here.

Greets,
Stefan