From owner-freebsd-bugs@freebsd.org Sat Mar 17 10:57:34 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 135F9F5CA52 for ; Sat, 17 Mar 2018 10:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A063E7585A for ; Sat, 17 Mar 2018 10:57:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E392E26AE for ; Sat, 17 Mar 2018 10:57:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2HAvW0k006337 for ; Sat, 17 Mar 2018 10:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2HAvW4x006336 for freebsd-bugs@FreeBSD.org; Sat, 17 Mar 2018 10:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 226673] real memory > physical memory (amd64 Virtualbox guest) Date: Sat, 17 Mar 2018 10:57:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@oldach.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2018 10:57:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226673 Bug ID: 226673 Summary: real memory > physical memory (amd64 Virtualbox guest) Product: Base System Version: 11.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: freebsd@oldach.net For some reason, an 11-STABLE amd64 system running under VirtualBox reports more physical memory than allocated by the host. For example, an allocation= of 4096 MB physical memory by VirtualBox results in: FreeBSD 11.1-STABLE #0 r330790: Fri Mar 16 20:51:59 CET 2018 root@latitude.local:/usr/obj/amd64.amd64/usr/src/sys/GENERIC amd64 ... real memory =3D 4831838208 (4608 MB) avail memory =3D 4104138752 (3914 MB) sysctl also reports an odd value for hw.realmem: hw.physmem: 4260958208 hw.usermem: 4167311360 hw.realmem: 536870912 All figures are OK when running an i386 kernel in the same VM (but of course lower than in amd64 mode): FreeBSD 11.1-STABLE #0 r330790: Mon Mar 12 08:56:08 CET 2018 toor@latitude.local:/usr/obj/usr/src/sys/HMO i386 ... real memory =3D 3758030848 (3583 MB) avail memory =3D 3678859264 (3508 MB) hw.physmem: 3744882688 hw.usermem: 3710955520 hw.realmem: 3758030848 And also when reducing memory allocation from 4096 MB to 3072 MB the amd64 figures are sensible: FreeBSD 11.1-STABLE #0 r330790: Fri Mar 16 20:51:59 CET 2018 root@latitude.local:/usr/obj/amd64.amd64/usr/src/sys/GENERIC amd64 ... real memory =3D 3221159936 (3071 MB) avail memory =3D 3079446528 (2936 MB) hw.physmem: 3187220480 hw.usermem: 3106312192 hw.realmem: 3221159936 --=20 You are receiving this mail because: You are the assignee for the bug.=