From: Stephan Diestelhorst Subject: [PATCH]Improve ttcp performance for domUs Date: Thu, 14 Jul 2005 13:01:01 +0100 Message-ID: <200507141301.01936.sd386@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_9Pl1CawK9Ub50qa" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_9Pl1CawK9Ub50qa Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Recent tests on the default setup of domains in sedf showed a dramatic slowdown in network performance (namely ttcp). I did some benchmarks, results: (machine is a dual Xeon, but I used noht and nosmp to emulate uniproc. performance, network is 1Gb/s) domU->external external: ttcp -r -s -fm -l 131072 domU: ttcp external -t -s -fm -l 131072 -n 8192 bvt (default): 385.07 Mbit/s! sedf (default, i.e. dom0: 15/20, domU: weight 1): 294.15 Mbit/sec sedf(dom0: 5/20, domU: weight 1): 366.93 Mbit/sec sedf(dom0: 5/20, domU: 5/20) 411.72 Mbit/sec => Set dom0 by default to 5/20 restores most of the performance (actually setting it even lower should increase performance further, because more batching will occur! quick test of 3/20 revealed: 395 Mb/s, but it might impact latency!) Signed-off by: Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de} --Boundary-00=_9Pl1CawK9Ub50qa Content-Type: text/x-diff; charset="us-ascii"; name="fix_defaults_sedf2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix_defaults_sedf2.patch" diff -r ca90d2903b7b -r 618114b71f34 xen/common/sched_sedf.c --- a/xen/common/sched_sedf.c Thu Jul 14 11:09:21 2005 +++ b/xen/common/sched_sedf.c Thu Jul 14 11:27:50 2005 @@ -366,7 +366,7 @@ if (d->domain->domain_id==0) { /*set dom0 to something useful to boot the machine*/ inf->period = MILLISECS(20); - inf->slice = MILLISECS(15); + inf->slice = MILLISECS(5); inf->latency = 0; inf->deadl_abs = 0; inf->status = EXTRA_AWARE | SEDF_ASLEEP; @@ -1323,6 +1323,8 @@ sedf_dump_domain(ed); } } + printk("\nidle:\n"); + sedf_dump_domain(IDLETASK(i)); } /*Adjusts periods and slices of the domains accordingly to their weights*/ static inline int sedf_adjust_weights(struct sched_adjdom_cmd *cmd) { --Boundary-00=_9Pl1CawK9Ub50qa Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_9Pl1CawK9Ub50qa--