Skip to contentSkip to conversation

Improve ttcp performance for domUs

PATCH New Stephan Diestelhorst 1 participant 1 message Jul 14, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Improve ttcp performance for domUs

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}

xen/common/sched_sedf.c +3 -1
diff -r ca90d2903b7b -r 618114b71f34 xen/common/sched_sedf.c
@@ -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) {

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel