From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 2 21:46:26 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 795C3B39 for ; Tue, 2 Jul 2013 21:46:26 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [188.252.31.196]) by mx1.freebsd.org (Postfix) with ESMTP id DC8ED1874 for ; Tue, 2 Jul 2013 21:46:25 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.7/8.14.7) with ESMTP id r62LjwKd004778; Tue, 2 Jul 2013 23:45:58 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.7/8.14.7/Submit) with ESMTP id r62LjvV4004775; Tue, 2 Jul 2013 23:45:57 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 2 Jul 2013 23:45:57 +0200 (CEST) From: Wojciech Puchar To: Daniel Braniss Subject: Re: hw.physmem/hw.realmem question In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.4.3 (wojtek.tensor.gdynia.pl [127.0.0.1]); Tue, 02 Jul 2013 23:45:58 +0200 (CEST) Cc: freebsd-hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 21:46:26 -0000 > AMD Features2=0x1 > TSC: P-state invariant, performance statistics > real memory = 34359738368 (32768 MB) > avail memory = 32191340544 (30700 MB) 2GB memory "disappears" too even when you don't set anything. i asked such a question for other machine some time ago without much answer. in your laptop it may be shared graphics memory reserved by chipset still on my dell server real memory = 34359738368 (32768 MB) avail memory = 33166921728 (31630 MB) i have over 1GB unavailable and it doesn't have shared graphics memory. it would be nice to be able to look exactly how memory is used. > Event timer "LAPIC" quality 600 > ACPI APIC Table: > > and from sysctl: > hw.physmem: 34284916736 > hw.usermem: 32964923392 > hw.realmem: 36507222016 > > after setting > hw.physmem=16G > > from dmesg: > real memory = 34359738368 (32768 MB) > avail memory = 13999382528 (13350 MB) > > and sysctl: > > hw.physmem: 14957563904 > hw.usermem: 10094678016 > hw.realmem: 17179869184 > > from the numbers, I can assume that realmem is the real physical memory, > (or whatever is set in hw.physmem), > if so, where did almost 2G go? (realmem - physmen) > > the only info I found so far is: > from loader(8): > > hw.physmem Limit the amount of physical memory the system will use. > By default the size is in bytes, but the k, K, m, M, g and > G suffixes are also accepted and indicate kilobytes, > megabytes and gigabytes respectively. An invalid suffix > will result in the variable being ignored by the kernel. > > what is physmem and realmem, and what's the relationship - if any - between > them? > > cheers, > danny > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >