xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sched_rt: Improved nested virtualization performance
@ 2015-11-19  3:50 Tianyang Chen
  2015-11-19  3:59 ` Meng Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Tianyang Chen @ 2015-11-19  3:50 UTC (permalink / raw)
  To: xen-devel; +Cc: dario.faggioli, xumengpanda, Tianyang Chen

In nested virtualization, choosing the smaller value for the
time slice between the MAX_SCHEDULE and the budget will cause
high host CPU usage.

Signed-off-by: Tianyang Chen <tianyangpenn@gmail.com>
---
 xen/common/sched_rt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c
index 4372486..9da3f35 100644
--- a/xen/common/sched_rt.c
+++ b/xen/common/sched_rt.c
@@ -889,7 +889,7 @@ rt_schedule(const struct scheduler *ops, s_time_t now, bool_t tasklet_work_sched
         }
     }
 
-    ret.time = MIN(snext->budget, MAX_SCHEDULE); /* sched quantum */
+    ret.time = MAX_SCHEDULE; /*should be used in nested virtualization*/
     ret.task = snext->vcpu;
 
     /* TRACE */
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread
[parent not found: <1447903458-4736-1-git-send-email-tianyangpenn@gmail.com>]

end of thread, other threads:[~2015-11-19 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-19  3:50 [PATCH] sched_rt: Improved nested virtualization performance Tianyang Chen
2015-11-19  3:59 ` Meng Xu
     [not found] <1447903458-4736-1-git-send-email-tianyangpenn@gmail.com>
     [not found] ` <CAENZ-+=T-t-vxYVKb-OSc0rjkRSriHvrBx8DjeCb2GKu1hFs8w@mail.gmail.com>
2015-11-19  9:51   ` Dario Faggioli
2015-11-19 15:01     ` Meng Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).