Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 13:08:07 +0000 (GMT)
From:      Mike Silbersack <silby@silby.com>
To:        Tariq Rashid <tariq@inty.net>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   RE: squeeze more performance out of natd?
Message-ID:  <20020211130512.S84750-100000@patrocles.silby.com>
In-Reply-To: <MPENKFCCIIDAJKJJOLBHOEAHCIAA.tariq@inty.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 11 Feb 2002, Tariq Rashid wrote:

>  some tests seems to show that natd's cpu load goes up because we have a
> large file descriptor set for select() - this is more of a problem than the
> kernelspace/userland packet traversal. the traffic its handling is something
> like 1500 low traffic tcp connections to a single server port.
>
>  from doing some rtfm-ing i see that select() is not very scalable - not
> good for large fd sets and not good if they are nearly alwats ready for
> reading.

The best way to improve performance would probably be to rewrite natd to
use kqueue instead of select.  I'm not sure how difficult this would be,
you might wish to talk to jlemon if you have any questions on the best way
to tackle the project.

Mike "Silby" Silbersack


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020211130512.S84750-100000>