From owner-freebsd-current@FreeBSD.ORG Tue Jul 22 22:59:58 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 399F51065685 for ; Tue, 22 Jul 2008 22:59:58 +0000 (UTC) (envelope-from mgowda82@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.232]) by mx1.freebsd.org (Postfix) with ESMTP id 1C2F98FC1A for ; Tue, 22 Jul 2008 22:59:58 +0000 (UTC) (envelope-from mgowda82@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2515417rvf.43 for ; Tue, 22 Jul 2008 15:59:57 -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:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=QdeaHj0IEEIPW7GgWs4KYMDJNOSNzJ727hABkTbfoII=; b=aqZRN0zWUwqkclpo7W3/83t2SXQcEmN391r4/gFr4av9QPm0zoSw/iUGFBLXyVkZYs M99upS6YEUfxxYVVjGntS/ujJKA45XFaZBgfi0T6YqA3oAwKlxMj50bduaES8+erbDN0 F0lE2rsDZid4KJNTKNR/z+thRbkGUDTPdGG4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=dm60emGAcNtQNnq+11TfTiU6dI8oho/sXSTCQTULt9cnKN8Q4aeIhoIeV4v49UYUwc enbk/USLYlwmbSWI7zX1cO4zkBAoA4AVfgzF4rIWQ7DeMQoR2+9X415jaP562p+Lj/1p RemqzE1sLn6GkulzRyPbXMehlvnBZeiNDpAp8= Received: by 10.140.133.9 with SMTP id g9mr184840rvd.235.1216766111395; Tue, 22 Jul 2008 15:35:11 -0700 (PDT) Received: by 10.141.145.12 with HTTP; Tue, 22 Jul 2008 15:35:10 -0700 (PDT) Message-ID: Date: Tue, 22 Jul 2008 15:35:10 -0700 From: "Manjunath Ranganathaiah" To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: setting memory size with hw.physmem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 22:59:58 -0000 On of my system with 8G of RAM running 7.0R amd64, dmesg shows memory usage as: usable memory = 8576397312 (8179 MB) avail memory = 8289071104 (7905 MB) If I set hw.physmem tunable to 8g, dmesg shows the following usable memory = 7771095040 (7411 MB) avail memory = 7507386368 (7159 MB) If I set hw.physmem to 8950M usable memory = 8565911552 (8169 MB) avail memory = 8278892544 (7895 MB) if I set hw.physmem to 8999M usable memory = 8576397312 (8179 MB) avail memory = 8289071104 (7905 MB) Is this expected behavior? How do I increase or decrease physical memory size by 1MB? Thanks, -Manjunath