From nobody Mon Sep 13 22:12:33 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C9D1917B4CF9 for ; Mon, 13 Sep 2021 22:12:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4H7ghV1Lc1z3vkC for ; Mon, 13 Sep 2021 22:12:41 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 18DMCYRi036565 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 14 Sep 2021 01:12:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 18DMCYRi036565 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 18DMCX0A036564; Tue, 14 Sep 2021 01:12:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 14 Sep 2021 01:12:33 +0300 From: Konstantin Belousov To: Guido Falsi Cc: FreeBSD Current Subject: Re: recent head having significantly less "avail memory" Message-ID: References: <4c990632-868a-2393-291b-fe7e2bc1974f@madpilot.net> <9e40483c-29e0-303a-eaa4-86d294403868@madpilot.net> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9e40483c-29e0-303a-eaa4-86d294403868@madpilot.net> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on tom.home X-Rspamd-Queue-Id: 4H7ghV1Lc1z3vkC X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Sep 13, 2021 at 10:07:46PM +0200, Guido Falsi wrote: > On 13/09/21 19:08, Konstantin Belousov wrote: > > On Mon, Sep 13, 2021 at 02:59:25PM +0200, Guido Falsi via freebsd-current wrote: > > > Hi, > > > > > > I updated head recently and today I noticed a difference which looks wrong. > > > > > > At boodt the new head shows signifcantly less avail memory than before, > > > around 3 GiB less. > > > > > > I moved from commit 71fbc6faed6 [1] where I got: > > > > > > Aug 28 22:03:03 marvin kernel: real memory = 17179869184 (16384 MB) > > > Aug 28 22:03:03 marvin kernel: avail memory = 16590352384 (15821 MB) > > > > > > to commit 7955efd574b [2] where I get: > > > > > > Sep 13 10:44:40 marvin kernel: real memory = 17179869184 (16384 MB) > > > Sep 13 10:44:40 marvin kernel: avail memory = 13298876416 (12682 MB) > > > > > > I'm seeing this on multiple machines. > > > > > > Unluckily bisecting and trying an older loader.efi in sseparate tests did > > > not give me any more insight. > > > > > > The recent changes to efi loader, starting with commit 6032b6ba9596 [3] look > > > like a possible trigger to this, but I have been unable to confirm it. > > > > > > Any suggesstions on how to proceed to debug thiss? ANy idea what a fix could > > > be? > > > > Is this UEFI or bios boot? > > Provide verbose dmesg for old and new boots on the same machine. > > For UEFI boot, show output of 'sysctl machdep.efi_map', again for old > > and new boots. > > > > I shared the data you request here: > > https://www.madpilot.net/cloud/s/ENW5zF7jfmrmFeG Thanks. If you do on the loader prompt for the new (AKA bad) kernel copy_staging enable and then boot, does the report of avail memory becomes good?