WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] One question about vcpu-wake up in credit scheduler

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] One question about vcpu-wake up in credit scheduler
From: you_bear zhou <youbear.zhou@xxxxxxxxx>
Date: Mon, 11 May 2009 13:09:49 -0400
Delivery-date: Mon, 11 May 2009 10:10:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=VQ4vqeolUGqEKdACgWqRrNU+nWhSPh7YylnUkmcMpJE=; b=hYNkMZaX0MqLbPQUNmrP7+xG11R4jAqBUkHS/OP/LjkP6QHlku3tauiZFJigg5wCsW W4TdlxqlZeKQcFmC9SgvwK1EA3wfI6ReYPFCGdBmib4kIm5G49IPlEG9SWK1t7q6gMUC A/P8hxo0T1xqUex9DMuGBYnzbLBUeDXYgNn8o=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=M9XU6XNC9P+K1uXhZF1BLhQVZRkbmZoRF0M5tP5ilcr0iDHFDTy+iT883V1+j/exUJ FJTpQSym50J64Ej5eMJxoZKMY353AaAQ0LFnGb5gcEnKMTyI9SC5CYmRpOlwGdbRPiqK n/RcVe0KM7kbCTdkrn9BG2YMD3yLYbS+IXP4w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hei guys,

I'm now trying to do an attacking to credit scheduler ( Xen 3.2.0).

As far as I know, the credit scheduler ticks the current runnable vcpu
each 10ms, and a vcpu can wake up with BOOST priority if it was in
UNDER state before waking up.

What I'm trying to do is modifying the cpu_idle loop in linux kernel,
let the idle process first spins for 9ms and then invokes halt(). I
expect the vcpu be blocked right before the tick bound and wakes up
right after that, so it can keep using CPU without paying credits.

However, I found the vcpu seldom woke up. Then I look into the
cpu_idle(), it checks if the cpu needs to reschedule, if so, then
stops the idle loop.

when I change the spin interval to 25ms, it did wake up frequently. So
I think the interrupts should come from the scheduler.

But why the vcpu didn't wake up with 9ms spin interval??

Can anyone explain this to me ?


Best,
Tina

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] One question about vcpu-wake up in credit scheduler, you_bear zhou <=