From owner-freebsd-stable Sun Nov 11 8: 9:32 2001 Delivered-To: freebsd-stable@freebsd.org Received: from D00015.dialonly.kemerovo.su (www2.svzserv.kemerovo.su [213.184.65.86]) by hub.freebsd.org (Postfix) with ESMTP id 438E837B41B; Sun, 11 Nov 2001 08:09:15 -0800 (PST) Received: (from eugen@localhost) by D00015.dialonly.kemerovo.su (8.11.6/8.11.4) id fABG8Hw02428; Sun, 11 Nov 2001 23:08:17 +0700 (KRAT) (envelope-from eugen) Date: Sun, 11 Nov 2001 23:08:17 +0700 From: Eugene Grosbein To: stable@freebsd.org Cc: hackers@freebsd.org Subject: kern.vm.kmem.size Message-ID: <20011111230817.A2325@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I'm trying to test and tune speed of freebsd's filesystem in many aspects. I run recent FreeBSD 4.4-STABLE with new dirprefs code, read tuning(7), newfs'd my FS, turned softupdates on, have UFS_DIRHASH kernel option. Also, I've read DIRHASH kernel code source. It seems that efficiency of DIRHASH greatly depends of kernel memory size (and some experiments approve this). loader(8) describes tunnable parameter kern.vm.kmem.size which overrides default size of kernel memory. Increasing this helps DIRHASH not to fall back to linear search. But how can I see exact amount of used kernel memory? Default 12M does not seem to be suitable for my tasks and I would like to increase this but cannot estimate right value. Perhaps, sysctl vm.zone might help but I do not know how to interpret its output. All that I need is a % of used kernel memory. Eugene Grosbein P.S. Please CC: me when replying. Thank you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message