All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Devera <devik@cdi.cz>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] htb ceiling
Date: Fri, 05 Apr 2002 13:09:28 +0000	[thread overview]
Message-ID: <marc-lartc-101801272703379@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101799477322990@msgid-missing>

> > the rate is really measured - it is used as source for DRR weight
> > (here it is used relative to other classes) and to see whether we
> > need to borrow from parent - here absolute value matters.
> > So that the example above should work and give 512k.

> So each class gets it's rate if it can by borrowing from the parent ?
> But what if the parent has more bandwidth then the rate of the classes?  
> Isn't the remaining bandwith given to the classes compared with the rates ?
> 
> What happens of the sum of the rates of the child classes is bigger then the 
> rate of the parent or even the ceil of the parent ?

You can view it as system where all of these hold:

1. each class first uses all of its (absolute) "rate"
2. if there is no such class then each class can use part
   of parents rate if ceil allows for it and
3. the "parts" of the same parent are balanced according
   to relative values of children rates

Now, Gavin's conf:  C1[r,c 00]-->C2[r%6,cQ2] is simple
to explain:
According to rule 1. C2 will always use at least 256k (even
if C1's rate were accidentaly 0). If it already uses 256k
and there is still demand for more then 2. allows you to
use up to 512k. There is no competiting child of C1 so
C2 will get 512k forever. 

Clear ?
devik

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2002-04-05 13:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-05  8:19 [LARTC] htb ceiling Gavin
2002-04-05  8:42 ` Stef Coene
2002-04-05  9:01 ` Gavin
2002-04-05 10:40 ` Martin Devera
2002-04-05 11:58 ` Gavin
2002-04-05 12:10 ` Martin Devera
2002-04-05 12:26 ` Stef Coene
2002-04-05 12:26 ` Stef Coene
2002-04-05 12:41 ` Gavin
2002-04-05 13:09 ` Martin Devera [this message]
2002-04-05 15:52 ` Stef Coene
2002-04-07 17:52 ` Gavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-101801272703379@msgid-missing \
    --to=devik@cdi.cz \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.