[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] sched-sedf


  • To: "Xen Users ML" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.