From owner-freebsd-current@FreeBSD.ORG Fri Apr 30 08:12:00 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4EA61065A64 for ; Fri, 30 Apr 2010 08:11:59 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 2EFB18FC12 for ; Fri, 30 Apr 2010 08:11:58 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so3547165fge.13 for ; Fri, 30 Apr 2010 01:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:x-mailer:mime-version :content-type:content-transfer-encoding; bh=ehZWC7rCvtikDJcflPGMO2OExioEt2dxp1ryvqBrqFM=; b=iDhg+x0bb4kjZSRqGTt6kkCbpaWCg1LGfD/1ef/RxufxSqMXtxlmnyebG1ZM9Ynt/v mPIwY/4F1pqk2BwM6hUdQFgLf7TZ0zgUqoY4BQFBGaaPHW0Lw67ql0MxS2J0ukEj6984 qw08AAgllFghKRJ4SrxiXX9UE4CBbbOf0PcGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=BajbJLStVK5ZZK+jZOQ8ewAF/558O7vH/gF38MNR6JdzPZD8pDk2QqQY6ZEHoKiMWx xsG/50yzChHB66rmQR0iuDxRJ8GS7cvJKWT4RT0uoWZ0z87Uxdp+dPOmZYLcHEfoUweP a0DwewMmi37A7UQXilvPpM1Z4l2UTJNN4aYpw= Received: by 10.103.141.3 with SMTP id t3mr6008129mun.48.1272615111567; Fri, 30 Apr 2010 01:11:51 -0700 (PDT) Received: from ernst.jennejohn.org (p57AE0288.dip0.t-ipconnect.de [87.174.2.136]) by mx.google.com with ESMTPS id w5sm7736145mue.24.2010.04.30.01.11.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Apr 2010 01:11:50 -0700 (PDT) Date: Fri, 30 Apr 2010 10:11:49 +0200 From: Gary Jennejohn To: Willem Jan Withagen Message-ID: <20100430101149.35d50368@ernst.jennejohn.org> In-Reply-To: <4BDA07B4.40506@digiware.nl> References: <4BD8F7FA.2080103@jrv.org> <4BDA07B4.40506@digiware.nl> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Current , Artem Belevich , "James R. Van Artsdalen" Subject: Re: kmem_map too small: 3832475648 total allocated X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2010 08:12:01 -0000 On Fri, 30 Apr 2010 00:27:00 +0200 Willem Jan Withagen wrote: > On 29-4-2010 6:17, Artem Belevich wrote: > > Do you have vm.kmem_size set in /boot/loader.conf? > > > > If not, do set it to about double of your physical RAM size. Defaults > > are way too conservative for use with large amounts of memory and ZFS. > > As per this suggestion I set this value to 2*8G: > vm.kmem_size="17179869184" > > And bfore the kernel boots this value is set in the loader. > Tested it by goinginto the loader and show the value. > > But once booted I still get: > [/boot] wjw@zfs.digiware.nl> sysctl vm.kmem_size > vm.kmem_size: 3718209536 > > So who is resetting this value??? > A number of variables go into calculating vm.kmem_size (see kmeminit() in kern_malloc.c). In the end, the kernel won't allocate more than twice the physical memory size _which it has discovered_. The question is, how much of your physical memory does the kernel actually see? -- Gary Jennejohn