From owner-freebsd-net@FreeBSD.ORG Mon Nov 28 05:28:09 2011 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF3B9106564A for ; Mon, 28 Nov 2011 05:28:09 +0000 (UTC) (envelope-from eugen@eg.sd.rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id 08EDC8FC12 for ; Mon, 28 Nov 2011 05:28:08 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id pAS5S3kj023824; Mon, 28 Nov 2011 12:28:03 +0700 (NOVT) (envelope-from eugen@eg.sd.rdtc.ru) Received: (from eugen@localhost) by eg.sd.rdtc.ru (8.14.5/8.14.5/Submit) id pAS5RwlW023823; Mon, 28 Nov 2011 12:27:58 +0700 (NOVT) (envelope-from eugen) Date: Mon, 28 Nov 2011 12:27:58 +0700 From: Eugene Grosbein To: "Mikhail T." Message-ID: <20111128052758.GA23803@rdtc.ru> References: <201111272043.pARKh9rZ047643@narawntapu.narawntapu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201111272043.pARKh9rZ047643@narawntapu.narawntapu> User-Agent: Mutt/1.4.2.3i Cc: eivind@dimaga.com, cm@linktel.net, archie@whistle.com, brian@awfulhak.org, net@freebsd.org, suutari@iki.fi Subject: Re: natd slow, eats up an entire CPU... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 05:28:09 -0000 On Sun, Nov 27, 2011 at 03:43:09PM -0500, Mikhail T. wrote: > If I flush the ipfw-rules, the natd disappears from top's list and > the transfer speeds up to about 260Kb/s (still nowhere near the > initial 2Mb/s, but much higher than the 10-15Kb/s). > Please, advise. Thanks! Yours, Do not use natd, use ipfw nat instead - it uses the same libalias but completely in kernel and avoids gigantic natd overhead. Eugene Grosbein