From owner-freebsd-performance@FreeBSD.ORG Tue Aug 26 17:44:42 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1881116A4BF for ; Tue, 26 Aug 2003 17:44:42 -0700 (PDT) Received: from ns.aratech.co.kr (ns.aratech.co.kr [61.34.11.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6003F43FA3 for ; Tue, 26 Aug 2003 17:44:41 -0700 (PDT) (envelope-from tj@atj.dyndns.org) Received: from tj.aratech.co.kr ([61.34.11.212] helo=atj.dyndns.org ident=mail) by ns.aratech.co.kr with esmtp (Exim 3.36 #1 (Debian)) id 19roQM-0001ua-00 for ; Wed, 27 Aug 2003 09:44:34 +0900 Received: from tj by atj.dyndns.org with local (Exim 4.22) id 19roSZ-0005hP-DK for freebsd-performance@freebsd.org; Wed, 27 Aug 2003 09:46:51 +0900 Date: Wed, 27 Aug 2003 09:46:51 +0900 From: TeJun Huh To: freebsd-performance@freebsd.org Message-ID: <20030827004651.GA21881@atj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Sender: TeJun Huh X-Mailman-Approved-At: Tue, 26 Aug 2003 17:54:32 -0700 Subject: Performance of freeBSD 5.1 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 00:44:42 -0000 Hello, I've been conducting performance tests using simple HTTP proxies and web polygraph . Web polygraph is believed to generate realistic Internet load (high number of sessions, many idle, req rate independent of resp rate, and so on). I built several equivalent HTTP proxies using various concurrency mechanisms and comparing those on linux and freeBSD. The following result is obtained on p4 xeon 2.4g (UP kernels). Custom version of Kqueue is used on Linux. FreeBSD 5.1 is updated to the latest cvs tree three weeks ago (due to thread stability issues) and compiled with GENERIC option. FreeBSD Linux Select Kqueue Select Kqueue rps 400 500 500 2500 I feel something is very wrong with FreeBSD kqueue result. Used tuning parameters are * Loader tunables kern.maxusers="512" kern.ipc.maxsockets="200000" kern.ipc.nmbclusters="51200" kern.ipc.nmbufs="102400" net.inet.tcp.tcbhashsize="65536" * Sysctls sysctl -w net.inet.ip.portrange.first=1024 sysctl -w net.inet.ip.portrange.last=65535 sysctl -w kern.ipc.somaxconn=1024 sysctl -w kern.maxfiles=200000 sysctl -w kern.maxfilesperproc=200000 sysctl -w kern.threads.max_threads_per_proc=100000 sysctl -w kern.threads.max_groups_per_proc=8000 As soon as the test machine becomes available, I'm gonna run tests on freeBSD 4.8 and compare the results. Any suggestions are welcomed. P.S. Please don't forget to CC me. TIA. -- tejun