From: Alexandre DERUMIER Subject: Re: rbd_cache, limiting read on high iops around 40k Date: Tue, 9 Jun 2015 09:28:21 +0200 (CEST) Message-ID: <959572886.1627596.1433834901443.JavaMail.zimbra@oxygem.tv> References: <1684793881.1564583.1433829106394.JavaMail.zimbra@oxygem.tv> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1314003505==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ceph-users-bounces-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org Sender: "ceph-users" To: pushpesh sharma Cc: ceph-devel , ceph-users List-Id: ceph-devel.vger.kernel.org --===============1314003505== Content-Type: multipart/alternative; boundary="----=_Part_1627594_1561538747.1433834901442" ------=_Part_1627594_1561538747.1433834901442 Content-Type: multipart/related; boundary="----=_Part_1627595_820426932.1433834901442" ------=_Part_1627595_820426932.1433834901442 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, >> We tried adding more RBDs to single VM, but no luck. If you want to scale with more disks in a single qemu vm, you need to use i= othread feature from qemu and assign 1 iothread by disk (works with virtio-= blk). It's working for me, I can scale with adding more disks. My bench here are done with fio-rbd on host. I can scale up to 400k iops with 10clients-rbd_cache=3Doff on a single host= and around 250kiops 10clients-rbdcache=3Don. I just wonder why I don't have performance decrease around 30k iops with 1o= sd. I'm going to see if this tracker http://tracker.ceph.com/issues/11056 could be the cause. (My master build was done some week ago) ----- Mail original ----- De: "pushpesh sharma" =C3=80: "aderumier" Cc: "ceph-devel" , "ceph-users" Envoy=C3=A9: Mardi 9 Juin 2015 09:21:04 Objet: Re: rbd_cache, limiting read on high iops around 40k Hi Alexandre,=20 We have also seen something very similar on Hammer(0.94-1). We were doing s= ome benchmarking for VMs hosted on hypervisor (QEMU-KVM, openstack-juno). E= ach Ubuntu-VM has a RBD as root disk, and 1 RBD as additional storage. For = some strange reason it was not able to scale 4K- RR iops on each VM beyond = 35-40k. We tried adding more RBDs to single VM, but no luck. However increa= sing number of VMs to 4 on a single hypervisor did scale to some extent. Af= ter this there was no much benefit we got from adding more VMs.=20 Here is the trend we have seen, x-axis is number of hypervisor, each hyperv= isor has 4 VM, each VM has 1 RBD:-=20 =20 VDbench is used as benchmarking tool. We were not saturating network and CP= Us at OSD nodes. We were not able to saturate CPUs at hypervisors, and that= is where we were suspecting of some throttling effect. However we haven't = setted any such limits from nova or kvm end. We tried some CPU pinning and = other KVM related tuning as well, but no luck.=20 We tried the same experiment on a bare metal. It was 4K RR IOPs were scalin= g from 40K(1 RBD) to 180K(4 RBDs). But after that rather than scaling beyon= d that point the numbers were actually degrading. (Single pipe more congest= ion effect)=20 We never suspected that rbd cache enable could be detrimental to performanc= e. It would nice to route cause the problem if that is the case.=20 On Tue, Jun 9, 2015 at 11:21 AM, Alexandre DERUMIER < aderumier-U/x3PoR4x10AvxtiuMwx3w@public.gmane.org >= wrote:=20 Hi,=20 I'm doing benchmark (ceph master branch), with randread 4k qdepth=3D32,=20 and rbd_cache=3Dtrue seem to limit the iops around 40k=20 no cache=20 --------=20 1 client - rbd_cache=3Dfalse - 1osd : 38300 iops=20 1 client - rbd_cache=3Dfalse - 2osd : 69073 iops=20 1 client - rbd_cache=3Dfalse - 3osd : 78292 iops=20 cache=20 -----=20 1 client - rbd_cache=3Dtrue - 1osd : 38100 iops=20 1 client - rbd_cache=3Dtrue - 2osd : 42457 iops=20 1 client - rbd_cache=3Dtrue - 3osd : 45823 iops=20 Is it expected ?=20 fio result rbd_cache=3Dfalse 3 osd=20 --------------------------------=20 rbd_iodepth32-test: (g=3D0): rw=3Drandread, bs=3D4K-4K/4K-4K/4K-4K, ioengin= e=3Drbd, iodepth=3D32=20 fio-2.1.11=20 Starting 1 process=20 rbd engine: RBD version: 0.1.9=20 Jobs: 1 (f=3D1): [r(1)] [100.0% done] [307.5MB/0KB/0KB /s] [78.8K/0/0 iops]= [eta 00m:00s]=20 rbd_iodepth32-test: (groupid=3D0, jobs=3D1): err=3D 0: pid=3D113548: Tue Ju= n 9 07:48:42 2015=20 read : io=3D10000MB, bw=3D313169KB/s, iops=3D78292, runt=3D 32698msec=20 slat (usec): min=3D5, max=3D530, avg=3D11.77, stdev=3D 6.77=20 clat (usec): min=3D70, max=3D2240, avg=3D336.08, stdev=3D94.82=20 lat (usec): min=3D101, max=3D2247, avg=3D347.84, stdev=3D95.49=20 clat percentiles (usec):=20 | 1.00th=3D[ 173], 5.00th=3D[ 209], 10.00th=3D[ 231], 20.00th=3D[ 262],=20 | 30.00th=3D[ 282], 40.00th=3D[ 302], 50.00th=3D[ 322], 60.00th=3D[ 346],= =20 | 70.00th=3D[ 370], 80.00th=3D[ 402], 90.00th=3D[ 454], 95.00th=3D[ 506],= =20 | 99.00th=3D[ 628], 99.50th=3D[ 692], 99.90th=3D[ 860], 99.95th=3D[ 948],= =20 | 99.99th=3D[ 1176]=20 bw (KB /s): min=3D238856, max=3D360448, per=3D100.00%, avg=3D313402.34, std= ev=3D25196.21=20 lat (usec) : 100=3D0.01%, 250=3D15.94%, 500=3D78.60%, 750=3D5.19%, 1000=3D0= .23%=20 lat (msec) : 2=3D0.03%, 4=3D0.01%=20 cpu : usr=3D74.48%, sys=3D13.25%, ctx=3D703225, majf=3D0, minf=3D12452=20 IO depths : 1=3D0.1%, 2=3D0.1%, 4=3D0.1%, 8=3D0.8%, 16=3D87.0%, 32=3D12.1%,= >=3D64=3D0.0%=20 submit : 0=3D0.0%, 4=3D100.0%, 8=3D0.0%, 16=3D0.0%, 32=3D0.0%, 64=3D0.0%, >= =3D64=3D0.0%=20 complete : 0=3D0.0%, 4=3D91.6%, 8=3D3.4%, 16=3D4.5%, 32=3D0.4%, 64=3D0.0%, = >=3D64=3D0.0%=20 issued : total=3Dr=3D2560000/w=3D0/d=3D0, short=3Dr=3D0/w=3D0/d=3D0=20 latency : target=3D0, window=3D0, percentile=3D100.00%, depth=3D32=20 Run status group 0 (all jobs):=20 READ: io=3D10000MB, aggrb=3D313169KB/s, minb=3D313169KB/s, maxb=3D313169KB/= s, mint=3D32698msec, maxt=3D32698msec=20 Disk stats (read/write):=20 dm-0: ios=3D0/45, merge=3D0/0, ticks=3D0/0, in_queue=3D0, util=3D0.00%, agg= rios=3D0/24, aggrmerge=3D0/21, aggrticks=3D0/0, aggrin_queue=3D0, aggrutil= =3D0.00%=20 sda: ios=3D0/24, merge=3D0/21, ticks=3D0/0, in_queue=3D0, util=3D0.00%=20 fio result rbd_cache=3Dtrue 3osd=20 ------------------------------=20 rbd_iodepth32-test: (g=3D0): rw=3Drandread, bs=3D4K-4K/4K-4K/4K-4K, ioengin= e=3Drbd, iodepth=3D32=20 fio-2.1.11=20 Starting 1 process=20 rbd engine: RBD version: 0.1.9=20 Jobs: 1 (f=3D1): [r(1)] [100.0% done] [171.6MB/0KB/0KB /s] [43.1K/0/0 iops]= [eta 00m:00s]=20 rbd_iodepth32-test: (groupid=3D0, jobs=3D1): err=3D 0: pid=3D113389: Tue Ju= n 9 07:47:30 2015=20 read : io=3D10000MB, bw=3D183296KB/s, iops=3D45823, runt=3D 55866msec=20 slat (usec): min=3D7, max=3D805, avg=3D21.26, stdev=3D15.84=20 clat (usec): min=3D101, max=3D4602, avg=3D478.55, stdev=3D143.73=20 lat (usec): min=3D123, max=3D4669, avg=3D499.80, stdev=3D146.03=20 clat percentiles (usec):=20 | 1.00th=3D[ 227], 5.00th=3D[ 274], 10.00th=3D[ 306], 20.00th=3D[ 350],=20 | 30.00th=3D[ 390], 40.00th=3D[ 430], 50.00th=3D[ 470], 60.00th=3D[ 506],= =20 | 70.00th=3D[ 548], 80.00th=3D[ 596], 90.00th=3D[ 660], 95.00th=3D[ 724],= =20 | 99.00th=3D[ 844], 99.50th=3D[ 908], 99.90th=3D[ 1112], 99.95th=3D[ 1288],= =20 | 99.99th=3D[ 2192]=20 bw (KB /s): min=3D115280, max=3D204416, per=3D100.00%, avg=3D183315.10, std= ev=3D15079.93=20 lat (usec) : 250=3D2.42%, 500=3D55.61%, 750=3D38.48%, 1000=3D3.28%=20 lat (msec) : 2=3D0.19%, 4=3D0.01%, 10=3D0.01%=20 cpu : usr=3D60.27%, sys=3D12.01%, ctx=3D2995393, majf=3D0, minf=3D14100=20 IO depths : 1=3D0.1%, 2=3D0.1%, 4=3D0.2%, 8=3D13.5%, 16=3D81.0%, 32=3D5.3%,= >=3D64=3D0.0%=20 submit : 0=3D0.0%, 4=3D100.0%, 8=3D0.0%, 16=3D0.0%, 32=3D0.0%, 64=3D0.0%, >= =3D64=3D0.0%=20 complete : 0=3D0.0%, 4=3D95.0%, 8=3D0.1%, 16=3D1.0%, 32=3D4.0%, 64=3D0.0%, = >=3D64=3D0.0%=20 issued : total=3Dr=3D2560000/w=3D0/d=3D0, short=3Dr=3D0/w=3D0/d=3D0=20 latency : target=3D0, window=3D0, percentile=3D100.00%, depth=3D32=20 Run status group 0 (all jobs):=20 READ: io=3D10000MB, aggrb=3D183295KB/s, minb=3D183295KB/s, maxb=3D183295KB/= s, mint=3D55866msec, maxt=3D55866msec=20 Disk stats (read/write):=20 dm-0: ios=3D0/61, merge=3D0/0, ticks=3D0/8, in_queue=3D8, util=3D0.01%, agg= rios=3D0/29, aggrmerge=3D0/32, aggrticks=3D0/8, aggrin_queue=3D8, aggrutil= =3D0.01%=20 sda: ios=3D0/29, merge=3D0/32, ticks=3D0/8, in_queue=3D8, util=3D0.01%=20 --=20 To unsubscribe from this list: send the line "unsubscribe ceph-devel" in=20 the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org=20 More majordomo info at http://vger.kernel.org/majordomo-info.html=20 --=20 -Pushpesh=20 ------=_Part_1627595_820426932.1433834901442-- ------=_Part_1627594_1561538747.1433834901442-- --===============1314003505== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ceph-users mailing list ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com --===============1314003505==--