Subject: Re: Cost of enabling ALTQ in kernels
To: None <tech-net@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-net
Date: 06/17/2007 15:42:01
On Sat, Jun 16, 2007 at 08:39:19PM +0100, David Brownlee wrote:
> 	Is there any significant network performance or other cost
> 	in having ALTQ compiled into the kernel but not used?

In the current world, yes. It can be improved to do either of:
(1) One additional indirect functoin call per ifq operation.
(2) One additional conditional branch per ifq operation.

The first choice shouldn't increase the size of the kernel (might even
make it a bit smaller), the second would (very) slightly increase it.

Joerg