Re: [Vserver] Scheduling parameter and vschedcalc

From: Benedikt Böhm <hollow_at_gentoo.org>
Date: Sun 23 Jul 2006 - 21:49:29 BST
Message-Id: <200607232249.29752.hollow@gentoo.org>

On Sunday 23 July 2006 22:02, Daniel Hokka Zakrisson wrote:
> Wilhelm Meier wrote:
> > Hello,
> >
> > the util-vserver comes with a tool called vschedcalc to calculate the
> > values for the token-bucket-algorithm.
>
> vschedcalc is from the Gentoo package.
>
> > 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.
>
> If my math is right, you're correct.

fixed in 0.30.210-r16, thanks
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Jul 23 21:50:18 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 23 Jul 2006 - 21:50:21 BST by hypermail 2.1.8