From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 8 08:56:39 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AC541065674 for ; Sun, 8 Jun 2008 08:56:39 +0000 (UTC) (envelope-from tzhuan@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id A623D8FC1D for ; Sun, 8 Jun 2008 08:56:38 +0000 (UTC) (envelope-from tzhuan@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1355525fgb.35 for ; Sun, 08 Jun 2008 01:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=Rmms8D70qE33AAHZZF1UwVKkR7kV+kE0OTtwNV0E1ls=; b=H758ug3hdBHdLj7o/gvVaeJcBmv6ByG8qhGFMGcEr8KQFiMdFt1XvWcRLOXuop4lYg 9ygpZFcf0sqksTDVrAOQ6Bs011NuEKSCq0BTzdCCwElgSBqARc3upr+N7VOCVmZ4Wv/4 I8JjXhzzuEgK2OVVoInuuqqU62uK8v7BqYLc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=LQ3E35Upd+dWRkr8KpYTTk/IkJmWtn+IVP7UK0VgrCou1UG5YmEjeMYdBnWwqMmExd gEFd9vC/rHBEEtAj53lVyTJmbT3glILyjsuLJfGdajJCxcZImIrcCVDyWsC4fDMc63oZ lS7wc+gdMOWXwEidxb1vWIIoqK2ITT3/zBIdw= Received: by 10.86.87.5 with SMTP id k5mr2682854fgb.59.1212915396840; Sun, 08 Jun 2008 01:56:36 -0700 (PDT) Received: by 10.86.92.1 with HTTP; Sun, 8 Jun 2008 01:56:36 -0700 (PDT) Message-ID: <6a7033710806080156o76fb38cfsdf5dc0554105d50b@mail.gmail.com> Date: Sun, 8 Jun 2008 16:56:36 +0800 From: "Tz-Huan Huang" Sender: tzhuan@gmail.com To: "Alan Cox" In-Reply-To: <484B75F1.6010505@cs.rice.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <484B20E7.2040009@cs.rice.edu> <6a7033710806072132i5abe2368h3db3ba269951fac5@mail.gmail.com> <484B75F1.6010505@cs.rice.edu> X-Google-Sender-Auth: 41071b5e658d2301 Cc: hackers@freebsd.org Subject: Re: Increasing KVM on amd64 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: Sun, 08 Jun 2008 08:56:39 -0000 On Sun, Jun 8, 2008 at 2:02 PM, Alan Cox wrote: > Tz-Huan Huang wrote: > >> On Sun, Jun 8, 2008 at 7:59 AM, Alan Cox wrote: >> >>> >>> You can download a patch from >>> http://www.cs.rice.edu/~alc/amd64_kvm_6GB.patch that increases amd64's >>> kernel virtual address space to 6GB. This patch also increases the >>> default >>> for the kmem map to almost 2GB. I believe that kernel loadable modules >>> still work. However, I suspect that mini-dumps are broken. >>> >>> I don't plan on committing this patch in its current form. Some of the >>> changes are done in a hackish way. I am, however, curious to hear >>> whether >>> or not it works for you. >> >> Thanks for the patch. I applied it on 7-stable but got failed on pmap.c. > > [snip] > >> We have no machine running 8-current with more than 6G memory now... > > Sorry, at this point the patch is only applicable to HEAD. That said, the > failed chunk is probably easily applied by hand to RELENG_7. Ok, I applied the patch and fixed the failed chunk by hand. I also modified the type of vm_kmem_size from u_int to u_long. Here is the diff: http://w.csie.org/~tzhuan/tmp/vm_kmem_size.diff The patched kernel is compiled and boots without problem. I set the vm.kmem_size/vm.kmem_size_max to 3G and vfs.zfs.arc_max to 2G, everything looks fine. Some stress tests are running now, I'll report if any problem. Thanks, Tz-Huan