]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkfront: make persistent grants pool per-queue
authorBob Liu <bob.liu@oracle.com>
Mon, 16 Nov 2015 21:51:39 +0000 (16:51 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:25:23 +0000 (22:25 +0200)
commit5c9355e9943f4a160162bae26138195c29a753cc
tree9a4597655a596127b5732bfd8c68604ffecb3eae
parentb3975213f33c8307e4a0503866444c3df3657a84
xen/blkfront: make persistent grants pool per-queue

Make persistent grants per-queue/ring instead of per-device, so that we can
drop the 'dev_lock' and get better scalability.

Test was done based on null_blk driver:
dom0: v4.2-rc8 16vcpus 10GB "modprobe null_blk"
domu: v4.2-rc8 16vcpus 10GB

[test]
rw=read
direct=1
ioengine=libaio
bs=4k
time_based
runtime=30
filename=/dev/xvdb
numjobs=16
iodepth=64
iodepth_batch=64
iodepth_batch_complete=64
group_reporting

Queues:   1     4       8     16
Iops orig(k): 810  1064  780  700
Iops patched(k): 810     1230(~20%) 1024(~20%) 850(~20%)

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 73716df7da4f60dd2d59a9302227d0394f1b8fcc)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/block/xen-blkfront.c