From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 23:37:30 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 7039E1065676 for ; Wed, 10 Sep 2008 23:37:30 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 002488FC14 for ; Wed, 10 Sep 2008 23:37:29 +0000 (UTC) (envelope-from artemb@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so660909uge.39 for ; Wed, 10 Sep 2008 16:37:28 -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:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=eIXSTcDCTZXxMCmywMp291FtOCD/W8F6R3o4jnQ9MR8=; b=PUHYMfQI7kjTJUhfSzHNf2vlCN8HRMLL0sB94xy0ZzFVJX2O3VTaytgPYQnlOW3qyu LTUmdZASF2M5/hz0L9YdAaesUtQnj8mNkg3psA/KBD8ulkbUrHZNqmIWCCCFc+KS8aX3 63l8fw7a/cKlzDrnYl6Ez2vcVcX/pLPe64qt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=gHElKbTHtdOlMkdNPg5GPEnyGGOMGQcSp9yF2C8LKKNRpS/YBerNqEWGFG49WtIjec qsnDj5WoC8VN/IAbs5Rt5k+U8Yh7Rp5YtF9zgI5WHKHUSJBtvVjyP8UMF/HLk3AIsmB5 /mQwbt5i+ms+uvh7v2kEMXbwI1PCx00qfEnsQ= Received: by 10.210.28.6 with SMTP id b6mr2259543ebb.60.1221088345922; Wed, 10 Sep 2008 16:12:25 -0700 (PDT) Received: by 10.210.128.7 with HTTP; Wed, 10 Sep 2008 16:12:25 -0700 (PDT) Message-ID: Date: Wed, 10 Sep 2008 16:12:25 -0700 From: "Artem Belevich" Sender: artemb@gmail.com To: "Alan Cox" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 439e3f780f22e249 Cc: freebsd-hackers@freebsd.org Subject: 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: Wed, 10 Sep 2008 23:37:30 -0000 Alan, Thanks a lot for the patch. I've applied it to RELENG_7 and it seems to work great - "make -j8 buildworld" succeeds, linux emulation seems to work well enough to run linux-sun-jdk14 binaries, ZFS ARC size is bigger, too. So far I didn't see any ZFS-related KVM shortages either. The only problem is that everything is fine as long as vm.kmem_size is set to less or equal to 4096M. As soon as I set it to 4100M or anything larger, kernel crashes on startup. I'm unable to capture exact crash messages as they keep scrolling really fast on the screen for a few seconds until the box reboots. Unfortunately the box does not have built-in serial ports, so the messages are gone before I can see them. :-( Is there a way to bump up KVM size even further - beyond 6GB? I've got a box with 8GB or RAM and would like let ZFS ARC use most of it which would require pretty large vm.kmem_max to fit it in. Thanks, --Artem