git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41a2457
)
updated scheduling and chcontext code to work with new vserverimpl
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 15 Sep 2005 20:31:20 +0000
(20:31 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 15 Sep 2005 20:31:20 +0000
(20:31 +0000)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
9d015b3
..
8618088
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-137,7
+137,8
@@
class VServer:
fillrate = shares
try:
fillrate = shares
try:
- vserverimpl.setsched(self.ctx,fillrate,interval,tokensmin,tokensmax)
+ cpuguaranteed = 0 # need to set this from the conf file
+ vserverimpl.setsched(self.ctx,fillrate,interval,tokensmin,tokensmax,cpuguaranteed)
except OSError, ex:
if ex.errno == 22:
print "kernel does not support vserver scheduler"
except OSError, ex:
if ex.errno == 22:
print "kernel does not support vserver scheduler"
@@
-237,7
+238,7
@@
class VServer:
def __do_chcontext(self, state_file = None):
def __do_chcontext(self, state_file = None):
- vserverimpl.chcontext(self.ctx
, self.remove_caps
)
+ vserverimpl.chcontext(self.ctx)
if not state_file:
return
print >>state_file, "S_CONTEXT=%d" % self.ctx
if not state_file:
return
print >>state_file, "S_CONTEXT=%d" % self.ctx