From owner-freebsd-hackers@FreeBSD.ORG Sat May 31 18:18:10 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 860191065672 for ; Sat, 31 May 2008 18:18:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id BEE838FC19 for ; Sat, 31 May 2008 18:18:09 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m4VHuAW4080416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 31 May 2008 20:56:10 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m4VHu9YX059239; Sat, 31 May 2008 20:56:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m4VHu8hj059238; Sat, 31 May 2008 20:56:08 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 31 May 2008 20:56:08 +0300 From: Kostik Belousov To: John Baldwin Message-ID: <20080531175608.GH21317@deviant.kiev.zoral.com.ua> References: <6a7033710805302252v43a7b240x66ca3f5e3dd5fda4@mail.gmail.com> <200805311249.53986.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LNKrWK8T5LDJo+fl" Content-Disposition: inline In-Reply-To: <200805311249.53986.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, Tz-Huan Huang Subject: Re: Is there any way to increase the KVM? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 May 2008 18:18:10 -0000 --LNKrWK8T5LDJo+fl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 31, 2008 at 12:49:53PM -0400, John Baldwin wrote: > On Saturday 31 May 2008 01:52:56 am Tz-Huan Huang wrote: > > Hi, > > > > Our nfs server is running 7-stable/amd64 with 8G ram, the size of zfs > > pool is 12T. We have set vm.kmem_size and vm.kmem_size_max to > > 1.5G, but the kernel still panics by "kmem_map too small" often. > > According to [1], the limitation is not only by the loader (is it fixed > > now?) but also by the default layout of KVM. [2] points a way to increa= se > > the KVM, but we get the similar linking error. > > > > Is there any standard way to modify the layout of KVM? For example, we > > may want to set KVM to 6G and leave the 2G for user space usage. >=20 > On i386 you only have 4GB of virtual address space period. For amd64 you= can=20 > jack up KVM just fine AFAIK. The mcmodel=3Dkernel stuff should only affe= ct=20 > global variables (so .data and .bss) and not malloc'd stuff. Have you tr= ied=20 > increasing the KVM size and seeing what happens? I believe the module memory is malloc'ed, isn't it ? --LNKrWK8T5LDJo+fl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhBkTgACgkQC3+MBN1Mb4h+UgCdGaiEYnRREBtseg/QpffMsNcz Ef8An0DPVGCB8RaiF5KkWXfZymVIcVlw =7GoJ -----END PGP SIGNATURE----- --LNKrWK8T5LDJo+fl--