[Vserver] Scheduling parameter and vschedcalc

From: Wilhelm Meier <wilhelm.meier_at_fh-kl.de>
Date: Sun 23 Jul 2006 - 20:04:53 BST
Message-Id: <200607232104.53971.wilhelm.meier@fh-kl.de>


the util-vserver comes with a tool called vschedcalc to calculate the values
for the token-bucket-algorithm.

These lines are from vschedcalc:

# calculate token bucket
let interval=100*${fillrate}/${avgcpu}
let tokensmin=${hz}*${bursthold}*${fillrate}/${interval}
let tokensmax=${hz}*${maxburst}-${maxburst}*${interval}

I don't know If I understand the description right, but I think the line to
compute tokensmax is wrong.

The maxburst-time is the time the vserver can consume tokens from the initial
filling, which is tokensmax/hz plus the additional time, which the vserver
gets because of the the refilling-rate lasting for the maxburst-time, which
is (fillrate/intervall)*maxburst.
With this statement we get:

tokensmax=maxburst*hz - maxburst * (fillrate/intervall)*hz

So, please help me if I misinterpreted the things here.

Wilhelm Meier
email: wilhelm.meier@fh-kl.de
Vserver mailing list
Received on Sun Jul 23 20:05:17 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 23 Jul 2006 - 20:05:24 BST by hypermail 2.1.8