Re: KVM/QEMU rbd read latency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You might try running fio directly on the host using the rbd ioengine (direct librbd) and see how that compares. The major difference between that and the krbd test will be the page cache readahead, which will be present in the krbd stack but not with the rbd ioengine. I would have expected the guest OS to normalize that some due to its own page cache in the librbd test, but that might at least give you some more clues about where to look further.


Steve Taylor | Senior Software Engineer | StorageCraft Technology Corporation
380 Data Drive Suite 300 | Draper | Utah | 84020
Office: 801.871.2799 |


If you are not the intended recipient of this message or received it erroneously, please notify the sender and delete it, together with any attachments, and be advised that any dissemination or copying of this message is prohibited.


-----Original Message-----
From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of Phil Lacroute
Sent: Thursday, February 16, 2017 11:54 AM
To: ceph-users@xxxxxxxxxxxxxx
Subject: KVM/QEMU rbd read latency

Hi,

I am doing some performance characterization experiments for ceph with KVM guests, and I’m observing significantly higher read latency when using the QEMU rbd client compared to krbd.  Is that expected or have I missed some tuning knobs to improve this?

Cluster details:
Note that this cluster was built for evaluation purposes, not production, hence the choice of small SSDs with low endurance specs.
Client host OS: Debian, 4.7.0 kernel
QEMU version 2.7.0
Ceph version Jewel 10.2.3
Client and OSD CPU: Xeon D-1541 2.1 GHz
OSDs: 5 nodes, 3 SSDs each, one journal partition and one data partition per SSD, XFS data file system (15 OSDs total)
Disks: DC S3510 240GB
Network: 10 GbE, dedicated switch for storage traffic Guest OS: Debian, virtio drivers

Performance testing was done with fio on raw disk devices using this config:
ioengine=libaio
iodepth=128
direct=1
size=100%
rw=randread
bs=4k

Case 1: krbd, fio running on the raw rbd device on the client host (no guest)
IOPS: 142k
Average latency: 0.9 msec

Case 2: krbd, fio running in a guest (libvirt config below)
   <disk type='file' device='disk'>
     <driver name='qemu' type='raw' cache='none'/>
     <source file='/dev/rbd0'/>
     <backingStore/>
     <target dev='vdb' bus='virtio'/>
   </disk>
IOPS: 119k
Average Latency: 1.1 msec

Case 3: QEMU RBD client, fio running in a guest (libvirt config below)
   <disk type='network' device='disk'>
     <driver name='qemu'/>
     <auth username='app1'>
       <secret type='ceph' usage='app_pool'/>
     </auth>
     <source protocol='rbd' name='app/image1'/>
     <target dev='vdc' bus='virtio'/>
   </disk>
IOPS: 25k
Average Latency: 5.2 msec

The question is why the test with the QEMU RBD client (case 3) shows 4 msec of additional latency compared the guest using the krbd-mapped image (case 2).

Note that the IOPS bottleneck for all of these cases is the rate at which the client issues requests, which is limited by the average latency and the maximum number of outstanding requests (128).  Since the latency is the dominant factor in average read throughput for these small accesses, we would really like to understand the source of the additional latency.

Thanks,
Phil



_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux