From owner-freebsd-current Sat Nov 2 14:19:44 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D59EF37B401 for ; Sat, 2 Nov 2002 14:19:42 -0800 (PST) Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B6EF43E91 for ; Sat, 2 Nov 2002 14:19:42 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0129.cvx21-bradley.dialup.earthlink.net ([209.179.192.129] helo=mindspring.com) by scaup.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1886cG-0000c5-00; Sat, 02 Nov 2002 14:19:41 -0800 Message-ID: <3DC44F24.67ED4E43@mindspring.com> Date: Sat, 02 Nov 2002 14:18:12 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Galen Sampson Cc: current@freebsd.org Subject: Re: crash with network load (in tcp syncache ?) References: <20021102180303.58968.qmail@web14108.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Galen Sampson wrote: > > With proper tuning, and some minor patches, 7000/second isn't hard > > to get. > > > > If you add the Duke University version of the Rice University patches > > for LRP, modify the mbuf allocator for static freelisting and then > > pre-populate it, and tune the kernel properly, you should be able to > > get over 20,000 connections per second. The best I've managed with a > > modified FreeBSD 4.2, before the SYN-cache code, was 32,000/second. > > Out of pure curiosity what is the reason that the Duke and Rice patches were > never incorporated into the base system. If it really enables the same machine > to provide 4 times the number of connections this seems like it would be a > useful thing to include. To be accurate, it's 3X. The 4X number requires a different kernel memory allocator for mbufs, which my employer at the time did not permit me to publish the code for, though the idea has plenty of prior art (back to 1992 and DEC WRL). The current Rice (FreeBSD 4.0) and Duke patches (FreeBSD 4.4) require executing a technology transfer license in order to be able to use them commercially; technically, they have license restrictions incompatible with FreeBSD. When the code was first offerred to the project (FreeBSD 2.2), the project never integrated the code. I don't know why they didn't make it in, then. FWIW, I personally dislike the "rescon -- Resource Container" -- code in the newer implementation; for embedded devices, it's not important to account overhead to a particular process, I think. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message