All of lore.kernel.org
 help / color / mirror / Atom feed
* performance drop after using blkcg
@ 2012-12-10 12:28 Zhao Shuai
       [not found] ` <CAFVn34SxqAJe_4P-WT8MOiG-kmKKD7ge96zoHXQuGqHWPgAt+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 40+ messages in thread
From: Zhao Shuai @ 2012-12-10 12:28 UTC (permalink / raw)
  To: tj-DgEjT+Ai2ygdnm+yROfE0A, vgoyal-H+wXaHxf7aLQT0dZR+AlfA,
	axboe-tSWWG44O7X1aa/9Udqfwiw
  Cc: cgroups-u79uwXL29TY76Z2rM5mHXA, ctalbott-hpIqsD4AKlfQT0dZR+AlfA,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	rni-hpIqsD4AKlfQT0dZR+AlfA, linux-kernel-u79uwXL29TY76Z2rM5mHXA

Hi,

I plan to use blkcg(proportional BW) in my system. But I encounter
great performance drop after enabling blkcg.
The testing tool is fio(version 2.0.7) and both the BW and IOPS fields
are recorded. Two instances of fio program are carried out simultaneously,
each opearting on a separate disk file (say /data/testfile1,
/data/testfile2).
System environment:
kernel: 3.7.0-rc5
CFQ's slice_idle is disabled(slice_idle=0) while group_idle is
enabled(group_idle=8).

FIO configuration(e.g. "read") for the first fio program(say FIO1):

[global]
description=Emulation of Intel IOmeter File Server Access Pattern

[iometer]
bssplit=4k/30:8k/40:16k/30
rw=read
direct=1
time_based
runtime=180s
ioengine=sync
filename=/data/testfile1
numjobs=32
group_reporting


result before using blkcg: (the value of BW is KB/s)

           FIO1 BW/IOPS    FIO2 BW/IOPS
---------------------------------------
read       26799/2911      25861/2810
write      138618/15071    138578/15069
rw         72159/7838(r)   71851/7811(r)
           72171/7840(w)   71799/7805(w)
randread   4982/543        5370/585
randwrite  5192/566        6010/654
randrw     2369/258(r)     3027/330(r)
           2369/258(w)     3016/328(w)

result after using blkcg(create two blkio cgroups with
default blkio.weight(500) and put FIO1 and FIO2 into these
cgroups respectively)

           FIO1 BW/IOPS    FIO2 BW/IOPS
---------------------------------------
read       36651/3985      36470/3943
write      75738/8229      75641/8221
rw         49169/5342(r)   49168/5346(r)
           49200/5348(w)   49140/5341(w)
randread   4876/532        4905/534
randwrite  5535/603        5497/599
randrw     2521/274(r)     2527/275(r)
           2510/273(w)     2532/274(w)

Comparing with those results, we found greate performance drop
(30%-40%) in some test cases(especially for the "write", "rw" case).
Is it normal to see write/rw bandwidth decrease by 40% after using
blkio-cgroup? If not, any way to improve or tune the performace?

Thanks.

-- 
Regards,
Zhao Shuai

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2013-08-29  3:20 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 12:28 performance drop after using blkcg Zhao Shuai
     [not found] ` <CAFVn34SxqAJe_4P-WT8MOiG-kmKKD7ge96zoHXQuGqHWPgAt+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-12-11  7:00   ` Zhao Shuai
2012-12-11  7:00     ` Zhao Shuai
2013-08-29  3:10     ` joeytao
2013-08-29  3:20     ` joeytao
2012-12-11 14:25   ` Vivek Goyal
2012-12-11 14:25   ` Vivek Goyal
2012-12-11 14:25     ` Vivek Goyal
     [not found]     ` <20121211142518.GA5580-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-12-11 14:27       ` Tejun Heo
2012-12-11 14:27         ` Tejun Heo
     [not found]         ` <20121211142742.GE7084-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2012-12-11 14:43           ` Vivek Goyal
2012-12-11 14:43             ` Vivek Goyal
     [not found]             ` <20121211144336.GB5580-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-12-11 14:47               ` Tejun Heo
2012-12-11 14:47                 ` Tejun Heo
     [not found]                 ` <20121211144718.GF7084-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2012-12-11 15:02                   ` Vivek Goyal
2012-12-11 15:02                     ` Vivek Goyal
     [not found]                     ` <20121211150234.GC5580-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-12-11 15:14                       ` Tejun Heo
2012-12-11 15:14                       ` Tejun Heo
2012-12-11 15:14                         ` Tejun Heo
     [not found]                         ` <20121211151412.GG7084-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2012-12-11 15:37                           ` Vivek Goyal
2012-12-11 15:37                           ` Vivek Goyal
2012-12-11 15:37                             ` Vivek Goyal
     [not found]                             ` <20121211153725.GD5580-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-12-11 16:01                               ` Tejun Heo
2012-12-11 16:01                               ` Tejun Heo
2012-12-11 16:01                                 ` Tejun Heo
     [not found]                                 ` <20121211160137.GJ7084-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2012-12-11 16:18                                   ` Vivek Goyal
2012-12-11 16:18                                     ` Vivek Goyal
     [not found]                                     ` <20121211161820.GE5580-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-12-11 16:27                                       ` Tejun Heo
2012-12-11 16:27                                       ` Tejun Heo
2012-12-11 16:27                                         ` Tejun Heo
2012-12-11 16:18                                   ` Vivek Goyal
2012-12-11 15:02                   ` Vivek Goyal
2012-12-11 14:47               ` Tejun Heo
2012-12-11 14:43           ` Vivek Goyal
2012-12-12  7:29       ` Zhao Shuai
2012-12-12  7:29         ` Zhao Shuai
     [not found]         ` <CAFVn34TqCk71PDgdTAhBo9qTmhD3OwO9RxuyNRXwtkJoYqtOZg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-12-16  4:38           ` Zhu Yanhai
2012-12-16  4:38             ` Zhu Yanhai
2012-12-16  4:38           ` Zhu Yanhai
2012-12-12  7:29       ` Zhao Shuai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.