From owner-freebsd-net Mon Feb 11 12: 0:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from devonshire.cnchost.com (devonshire.concentric.net [207.155.248.12]) by hub.freebsd.org (Postfix) with ESMTP id F097837B402 for ; Mon, 11 Feb 2002 12:00:22 -0800 (PST) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by devonshire.cnchost.com id PAA10901; Mon, 11 Feb 2002 15:00:20 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <200202112000.PAA10901@devonshire.cnchost.com> To: "Tariq Rashid" Cc: freebsd-net@FreeBSD.ORG Subject: Re: squeeze more performance out of natd? In-reply-to: Your message of "Mon, 11 Feb 2002 16:53:54 GMT." Date: Mon, 11 Feb 2002 12:00:19 -0800 From: Bakul Shah Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > possible ideas: > > * is doing a select on 1000 file descriptors more efficient than having 10 > selects on 100 file descriptors? > > * what about diverting to multiple natd processes? > > * threading? are there any benefits at all in this scenario? Or write a translator from natd rules to ipnat rules. Doing three system calls and a couple of extra context switches costs a bunch. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message