From owner-freebsd-performance@FreeBSD.ORG Wed Jul 26 23:20:57 2006 Return-Path: X-Original-To: freebsd-performance@freebsd.org 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 6FE9816A4DD for ; Wed, 26 Jul 2006 23:20:57 +0000 (UTC) (envelope-from jin@george.lbl.gov) Received: from smtp102.sbc.mail.mud.yahoo.com (smtp102.sbc.mail.mud.yahoo.com [68.142.198.201]) by mx1.FreeBSD.org (Postfix) with SMTP id E6D1243D55 for ; Wed, 26 Jul 2006 23:20:56 +0000 (GMT) (envelope-from jin@george.lbl.gov) Received: (qmail 49693 invoked from network); 26 Jul 2006 23:20:56 -0000 Received: from unknown (HELO ?192.168.2.8?) (jinmtb@sbcglobal.net@68.127.175.91 with plain) by smtp102.sbc.mail.mud.yahoo.com with SMTP; 26 Jul 2006 23:20:55 -0000 Message-ID: <44C7F819.9020504@george.lbl.gov> Date: Wed, 26 Jul 2006 16:17:45 -0700 From: "Jin Guojun [VFFS]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050108 X-Accept-Language: en, zh, zh-CN MIME-Version: 1.0 To: "R. B. Riddick" References: <20060726072753.17138.qmail@web30312.mail.mud.yahoo.com> In-Reply-To: <20060726072753.17138.qmail@web30312.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org, Raymond Owens Subject: Re: question concerning proper usage of kernel variables net.bpf.bufsize and vm_kmem_size_max X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2006 23:20:57 -0000 R. B. Riddick wrote: >--- Raymond Owens wrote: > > >>Questions: >>Can VM_KMEM_SIZE_MAX be set manually with sysctl? >> >> >> >No, but you could set it with this procedure: >1. Insert the lines > vm.kmem_size=123456789 > vm.kmem_size_max=1234567890 >in > /boot/loader.conf > >2. reboot > >That should change those values... >(see src/sys/kern/kern_malloc.c) > >I wonder, why your box needs such a big buffer? Do u have network traffic >bursts or so? > > Regardless what purpose is for, the net.bpf.bufsize should never set above hardware cache size. The best (optimal size) is 50% - 80% of the hardware cache size, unless original BPF is modified in some way I do not know. Such high bufsize will degrade performance. -- ------------ Jin Guojun ----------- v --- jin@george.lbl.gov --- Distributed Systems Department http://www.dsd.lbl.gov/~jin Lawrence Berkeley National Laboratory, Berkeley, CA 94720