FreeBSD box as router adding latency

Chris Dillon cdillon at
Thu Feb 26 08:35:26 PST 2004

On Wed, 25 Feb 2004, Aloha Guy wrote:

> You're right that additional delay while adding a hop is to be
> expected, which is less than 0.1ms to the FreeBSD box but everything
> past the FreeBSD machine is adding atleast 5ms up to 300ms in the
> traceroutes when the normal is no more than 20ms for the same
> traceroute.  I've already checked the NICs and they are all
> configured at their full rated speeds and full duplex.  I even try
> using a Cardbus PCMCIA fxp0 Intel Pro/100S card on the FreeBSD box
> and it still had the same problem.  I am using a September 2003
> -CURRENT so I don't know if it's a issue with the current networking
> code back then or not.

What do you have HZ set to (see sysctl kern.clockrate)?  I think I
remember your original message showing you using pipes and queues and
the HZ setting can affect those.  Also see if your latency improves if
you remove all pipe and queue rules (other ipfw rules are OK).

 Chris Dillon - cdillon(at)
 FreeBSD: The fastest, most open, and most stable OS on the planet
 - Available for IA32, IA64, AMD64, PC98, Alpha, and UltraSPARC architectures
 - PowerPC, ARM, MIPS, and S/390 under development

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?

More information about the freebsd-questions mailing list