Date: Sun, 18 Dec 2011 14:08:44 +0000 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: Implementation details of altq hfsc scheduler in pf 4.5 Message-ID: <20111218140844.29eae281@gumby.homeunix.com> In-Reply-To: <CAJcQMWdv9XTnqh7xTCxtjJKWOZ8A5gWHGpvEbxTvTE3%2BnH0FzQ@mail.gmail.com> References: <CAJcQMWcu38hiMTJKnW=SbEWBXzQ0ZvDMWA=jcyJ1dP2r5xieww@mail.gmail.com> <20111213131547.27bda580@gumby.homeunix.com> <CAJcQMWdv9XTnqh7xTCxtjJKWOZ8A5gWHGpvEbxTvTE3%2BnH0FzQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 Dec 2011 12:52:15 -0500 Maxim Khitrov wrote: > On Tue, Dec 13, 2011 at 8:15 AM, RW <rwmaillists@googlemail.com> > wrote: > > It's about latency, realtime has priority over non-realtime. > > I sort of understand this, but I can't figure out how that would apply > to my example: > > altq on $wan hfsc bandwidth 25Mb queue {one, two} > queue one bandwidth 70% hfsc(default, realtime 20%) > queue two bandwidth 30% hfsc(realtime 60%) > > If realtime and linkshare priorities are reversed, what happens as > total bandwidth utilization approaches 100%? It would presume that each queue gets its realtime 60% and 20%, and the other 20% would be used to get the overall ratio as close as possible to 70:30, which would mean a 60:40 split. I'm not sure though, but you could test it experimentally. > >> 2. In service curve configuration (m1, d, m2), what is 'd' relative > >> to? > > > > It looks like it's a leaky-bucket algorithm. It's not really > > relative to anything except for special cases like a traffic > > step-function. > > Can you please clarify what you mean? I'm familiar with the leaky > bucket algorithm, but it still doesn't answer what triggers the switch > from m1 to m2 and whether it's a per-queue or per-connection setting. It would be a dual bucket or something equivalent. The switch would be controlled by the level in the larger bucket.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111218140844.29eae281>