Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2025 10:04:19 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        Andriy Gapon <avg@FreeBSD.org>, arch@FreeBSD.org
Subject:   Re: swapoff_all at shutdown time
Message-ID:  <7c178e10-f7de-452a-8c9f-d54d30e62b7f@FreeBSD.org>
In-Reply-To: <679a6e57-2255-4e4f-bbd0-f38449622dc1@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

On 3/26/25 10:11, Andriy Gapon wrote:
> 
> This is more of a question than suggestion.
> 
> I noticed that swapoff_all() at shutdown time seems to swap in all pages (for
> non-dead objects).
> 
> Does that really have to be done?
> Can't we just "discard" those pages at that late stage of shutdown?
> Especially now that we don't swap kernel stacks.

That does seem odd, yes.  I can understand why we might have needed the pages
for a kstack, but I'm not sure if there are any other anon pages we might need
during shutdown.  Presumably not?

-- 
John Baldwin



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7c178e10-f7de-452a-8c9f-d54d30e62b7f>