OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: HFSC / PF limit of 62 / scaling questions

From: Kenjiro Cho (kjciijlab.net)
Date: Tue Aug 03 2004 - 12:27:25 CDT


Jason Eggleston wrote:
> I am looking for a way to rate limit thousands (preferably in the low
> thousands at least) of customers to the Internet using OpenBSD. The best
> way I have found so far is HFSC, due to its apparent ability (as much as I
> can gather) to overcommit bandwidth with a limit (upperlimit) as opposed to
> cbq's general "borrow" idea, and guarantee a minimum throughput.
>
> It became apparent that HFSC is limited to 62 queues per interface, at least
> at the top level. Is there any way to change that?

you can increase the max number of classes by modifying the following
line in sys/altq/altq_hfsc.h.

#define HFSC_MAX_CLASSES 64

but HFSC currently uses linear algorithms to access different queues
so that it would work with hundreds of queues with a high-end CPU but
would not scale to thousands of queues.

-Kenjiro