Why the credit scheduler of xen-3.2.0 can ensure the I/O fairness?
Hello, everybody:
I have recently read the paper "Scheduling I/O in Virtual Machine Monitors", which said that the credit scheduler of xen can not ensure the i/o fairness(Please see the Figure 3 in the paper). The author said that you can achieve the i/o fairness by disable the scheduler tickling, and sorting the vcpu by the value of the credit remained(Please see the relevant ppt for VEE08). I have evaluated the credit scheduler of xen-3.1.0, it does agree with the option in the paper.
However, when I evaluating the credit scheduler of xen-3.2.0, the results show that the scheduler can ensure the i/o fairness very well. I diff the sched_credit.c of the two versions of xen, they are the same. It seems that the credit scheduler of xen-3.2.0 does not sort the vcpu by credit or disable the scheduler tickling. So I wonder that what improvements xen have done to solove this problem?
The experiment I have done is as follows:
The system has an AMD Opteron 848 processor, 4G physical memory, and a Gigabit ethernet NIC. I run eight xen VMs, and run netperf benchmark separatly. Every VM has almost the same bandwidth of 120 Mb/s.
Thank you very much for your help.
Xiang ZHANG
National Research Center for Intelligent Computing Systems Institute of Computing Technology, Chinese Academy of Sciences, Beijing, P.R.China
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Why the credit scheduler of xen-3.2.0 can ensure theI/O fairness?
Hi, Xiang
You should see the following patch.
changeset: Process event channels notifications in round-robin order.
changeset 324: 7fe1c6d02a2b
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/7fe1c6d02a2b
Thanks
Atsushi SAKAI
Quoted 15 lines · zhangxiang
Hello, everybody:
I have recently read the paper "Scheduling I/O in Virtual Machine Monitors", which said that the credit scheduler of xen can not ensure the i/o fairness(Please see the Figure 3 in the paper). The author said that you can achieve the i/o fairness by disable the scheduler tickling, and sorting the vcpu by the value of the credit remained(Please see the relevant ppt for VEE08). I have evaluated the credit scheduler of xen-3.1.0, it does agree with the option in the paper.
However, when I evaluating the credit scheduler of xen-3.2.0, the results show that the scheduler can ensure the i/o fairness very well. I diff the
sched_credit.cof the two versions of xen, they are the same. It seems that the credit scheduler of xen-3.2.0 does not sort the vcpu by credit or disable the scheduler tickling. So I wonder that what improvements xen have done to solove this problem?The experiment I have done is as follows:
The system has an AMD Opteron 848 processor, 4G physical memory, and a Gigabit ethernet NIC. I run eight xen VMs, and run netperf benchmark separatly. Every VM has almost the same bandwidth of 120 Mb/s.Thank you very much for your help.
Xiang ZHANG
National Research Center for Intelligent Computing Systems Institute of Computing Technology, Chinese Academy of Sciences, Beijing, P.R.China
Re: Re: Why the credit scheduler of xen-3.2.0 can ensure theI/O fairness?
Hello Atsushi:
Thank you very much for your reply!
I have already read that patch. In the paper "Scheduling I/O in Virtual Machine Monitors", the author said that fixing event channel notification can only ensure the I/O fairness with the tickling scheduler disable, and the scheduler tickling is the culprit of the I/O unfairness even the event channel code is fixed (Please see the Section 6.1). Although Xen-3.2.0 have fixxed the event channel code, it does not disable the scheduler tickling. So I think there should be something else xen-3.2.0 has done. Thank you again for your help.
Xiang ZHANG
National Research Center for Intelligent Computing Systems Institute of Computing Technology, Chinese Academy of Sciences, Beijing, P.R.China
发件人: Atsushi SAKAI
发送时间: 2008-05-26 09:56:35
收件人: zhangxiang
抄送: xen-devel
主题: Re: [Xen-devel] Why the credit scheduler of xen-3.2.0 can ensure theI/O fairness?
Hi, Xiang
You should see the following patch.
changeset: Process event channels notifications in round-robin order. changeset 324: 7fe1c6d02a2b
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/7fe1c6d02a2b
Thanks
Atsushi SAKAI
Quoted 9 lines · zhangxiang
Hello, everybody:
I have recently read the paper "Scheduling I/O in Virtual Machine Monitors", which said that the credit scheduler of xen can not ensure the i/o fairness(Please see the Figure 3 in the paper). The author said that you can achieve the i/o fairness by disable the scheduler tickling, and sorting the vcpu by the value of the credit remained(Please see the relevant ppt for VEE08). I have evaluated the credit scheduler of xen-3.1.0, it does agree with the option in the paper.
However, when I evaluating the credit scheduler of xen-3.2.0, the results show that the scheduler can ensure the i/o fairness very well. I diff the
sched_credit.cof the two versions of xen, they are the same. It seems that the credit scheduler of xen-3.2.0 does not sort the vcpu by credit or disable the scheduler tickling. So I wonder that what improvements xen have done to solove this problem?The experiment I have done is as follows:
The system has an AMD Opteron 848 processor, 4G physical memory, and a Gigabit ethernet NIC. I run eight xen VMs, and run netperf benchmark separatly. Every VM has almost the same bandwidth of 120 Mb/s.
Quoted 6 lines
Thank you very much for your help.
Xiang ZHANG
National Research Center for Intelligent Computing Systems Institute of Computing Technology, Chinese Academy of Sciences, Beijing, P.R.China
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Re: Why the credit scheduler of xen-3.2.0 can ensure theI/O fairness?
Hi, Xiang
tickling itself exists in first version of credit scheduler.
changeset: New weighted fair-share CPU scheduler w/ automatic SMP load balancing
changeset 10168: e539abd27a0f
http://xenbits.xensource.com/xen-unstable.hg?rev=10168
Please check Table.1 and Section4.2 of your citation.
Thanks
Atsushi SAKAI
Quoted 20 lines · zhangxiang
Hello Atsushi:
Thank you very much for your reply!
I have already read that patch. In the paper "Scheduling I/O in Virtual Machine Monitors", the author said that fixing event channel notification can only ensure the I/O fairness with the tickling scheduler disable, and the scheduler tickling is the culprit of the I/O unfairness even the event channel code is fixed (Please see the Section 6.1). Although Xen-3.2.0 have fixxed the event channel code, it does not disable the scheduler tickling. So I think there should be something else xen-3.2.0 has done. Thank you again for your help.Xiang ZHANG
National Research Center for Intelligent Computing Systems Institute of Computing Technology, Chinese Academy of Sciences, Beijing, P.R.Chinaキ「シ�ネヒ」コ Atsushi SAKAI
キ「ヒヘハアシ茱コ 2008-05-26 09:56:35
ハユシ�ネヒ」コ zhangxiang
ウュヒヘ」コ xen-devel ヨ����皮�懃瘤����搶�鼈阨趙�黼���肬跛阯蜴�鞜�莅����竏瘤艱黼��會閭纉�纐緕�竏瘤鈬踈�鈿�肅竅�闔�蜴�鳫�筬鳫砠�闥粤鬯��竏瘤艱黼�害敢��傑絮禧箘過霞��蔗�痕�緕砠��緕齒�竇�闕�蜴�⑱��賢�隨蒟崇纐�聽宴銀芦甓����壽瘤謫��藻齦鼈�啻冒���������葹鈑�瘤腆��綬葹鈑�瘤臉釿蜒�祟竡���阡綺�����斐跛鍖�纐纈墲閼倢�������葹��鱚竇銓踟�鱚痲���鞜鞳��竏繖�蜴�逼�蜴�帷鶯��浴竏蜴�酪鉗�鴦↑��蜒�黶蜆��癆���竰繖蜚�黹蒹糒跂�閹���竅�鈿�緕齦鱚���薇�聲蜥鈬齠�跂癈�黼���鍋苺鱚��蜴���鞜鞳鬧�壽�癜�闥�黶蜆��癆�尞�竅�痺蓍纐���薇�聲蜥鈬齠�磔�粡黶碎���黹蒹糒跂��站跚鈑�瘤�齒鶯蜴����頤�磔����跿�閹���竰繖蜚�鱚轣蜴繖�跂癈�黼���鱚跂�銓�韶�肬�崚徹県��葹��纐瘡�����竰繖蜚�黹蒹糒跂�閹��遶凱窺穐�蜚�粹纉�瘍鱚������關�闔�蜴���鞜鞳鬯�������被��鬪��緕��纐瘡��鈑���竰繖蜚�黹蒹糒跂�閹��遶凱荻穐���鱚齦踉�鼈阯��癆���黹蒹糒跂�竅�緕齦鱚���薇�聲蜥鈬齠��鴒��跛��粡聿���黹蒹籖竰繖蜚��閹������鴦蜿銖�閹��遯��纖�癇���黶辣�部�黼纃��癆���竰繖蜚�黹蒹糒跂�閹��遶凱荻�粹纉�鈿�齒鶯����頤�磔�竰繖蜚�闥�粡黶碎���黹蒹糒跂��站跚鈑�囂���鈔纈��癆��癆�蜊頏阮纃緕����葹��粹鈬���齒跫���蜩�頏閧跂躾������壽�纔鞳鱸辣銓��葹��粹鈬�蜩�癈�肬跛阯鷓���壽�齷齡纃�葹�瘤�鼠���鳫�鹸�頏閭纉齒鬪�看�韆崧蜒瘡�辣迴鴒�瘤��秤艨砠�續蒹鴈續�良樽��鴣�繪艾���嵳鵺�瘤�鴣�鈬�纈�矼釿蓁癇�黼鞜鱇�仡�当纈�嵳�葹�瘡迴齡���黶辣�矚鈔�糘�閹�渦�翌�������壽瘤�尞��鴒�逡竏�肬�尞��蒹跟������懃瘤�敞僧���令�闔瘡�吶黼癇竏�着銓纈�肬�侮�跛蜃緕�衷逅�蜴�囮齡纃���侮齡蜚��閹�衷逅�蜴�壹竏鈿跫苹�宙蜴纉�巣痲纃�閹�噬蜈釿纉�代蜉蜴膃���豫勳宙蜴�