git://git.onelab.eu
/
util-vserver-pl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow independent setting of CPU reservation and CPU share
[util-vserver-pl.git]
/
scripts
/
vuseradd
diff --git
a/scripts/vuseradd
b/scripts/vuseradd
index
80b00f2
..
0e2c8a0
100755
(executable)
--- a/
scripts/vuseradd
+++ b/
scripts/vuseradd
@@
-94,10
+94,10
@@
if [ ! -d $__CONFDIR/$NAME ] ; then
echo persistent > $DIR/nflags
# Set up the scheduler
echo persistent > $DIR/nflags
# Set up the scheduler
- echo 100
0
> $DIR/sched/interval
+ echo 100 > $DIR/sched/interval
echo 1000 > $DIR/sched/interval2
echo 0 > $DIR/sched/fill-rate
echo 1000 > $DIR/sched/interval2
echo 0 > $DIR/sched/fill-rate
- echo
32
> $DIR/sched/fill-rate2
+ echo
1
> $DIR/sched/fill-rate2
touch $DIR/sched/idle-time
echo 100 > $DIR/sched/tokens
echo 50 > $DIR/sched/tokens-min
touch $DIR/sched/idle-time
echo 100 > $DIR/sched/tokens
echo 50 > $DIR/sched/tokens-min