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

Re: [Xen-users] sched-sedf

To: "Xen Users ML" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] sched-sedf
From: Efraim <efraimg@xxxxxxxxx>
Date: Sun, 9 Jul 2006 00:19:18 +0200
Delivery-date: Sat, 08 Jul 2006 15:20:09 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=uVHKKDryNpPEJJZ4DFJjue5D/ZyEW5vYM0ApeJZb3dVS3mW64T2ksoDVUQvyZgUY6jzL1yXI923GoYw00YF+SfMUei4J0e1PFOCWEcXAViSTdXTNjXwMtlr/0KeG4RUuJSA2edzWEtcIueI1XtCmWGlicXsU8NHHxwasIb/X2AY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8c39faa5481f62e3115bd2d6d1ad279f@localhost>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <77d61640607072104w6185d0aao5f48e77f9bace5b0@xxxxxxxxxxxxxx> <8c39faa5481f62e3115bd2d6d1ad279f@localhost>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,
Thank for your reply.
The script works fine when I manually create a virtual server but it didn't solve the problem when the user of the virtual server reboots it.
My configuration file is the following:
----------------------------------------------------------------------------------------------------------------------------
#  -*- mode: python; -*-
kernel = "/boot/vmlinuz-2.6-xenU"
ramdisk = "/boot/initrd-2.6-xenU"
memory = 1000
name = "xendom1"
cpus = "3"
vcpus = 1
vif = [ '' ]
disk = [ 'file:/vms/xendom1/xendom1.img,sda1,w','file:/vms/xendom1/xendom1.swap,sda2,w' ]
dhcp="off"
ip="10.0.0.10"
netmask=" 255.255.255.0"
gateway="10.0.0.1"
root = "/dev/sda1 ro"
extra = "3"


on_reboot   = 'restart'
on_crash    = 'restart'

import time
self = os.fork()
if not self:
   time.sleep (10)
   os.execvp("xm", ["xm", "sched-sedf", "xmEfra", "-p 100", "-s 50" , "-e 0"])

-----------------------------------------------------------------------------------------------------------------

 
On 7/8/06, Timo Benk <timo.benk@xxxxxx> wrote:
Hi,

afaik there are no parameters you can set in the configuration,
but you can use the following workaround at the end of the
config file:

---<snip>---
import time
self = os.fork()
if not self:
   time.sleep (5)
   os.execvp("xm", ["xm", "sched-sedf", "xendom1", "-p 100", "-s 20"])
---<snip>---

Greetings,
-timo

On Sat, 8 Jul 2006 06:04:18 +0200, Efraim <efraimg@xxxxxxxxx> wrote:
> Hi,
> I'm using sched-sedf to limit cpu usage on Xen 3.0.2, but when one of the
> virtual servers is rebooted the policy is automatically cleared.
> There is some way to maintain the policy?
>
> Thanks.
>
>
--
Timo Benk - Jabber ID: fry@xxxxxxxxxx - ICQ ID: #241877854
PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc



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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>