Re: [RFC PATCH] mm: don't promote exclusive file folios of dying processes

From: David Hildenbrand
Date: Wed Apr 16 2025 - 04:32:44 EST


On 12.04.25 10:58, Barry Song wrote:
From: Barry Song <v-songbaohua@xxxxxxxx>

Promoting exclusive file folios of a dying process is unnecessary and
harmful. For example, while Firefox is killed and LibreOffice is
launched, activating Firefox's young file-backed folios makes it
harder to reclaim memory that LibreOffice doesn't use at all.

Do we know when it is reasonable to promote any folios of a dying process?

Assume you restart Firefox, would it really matter to promote them when unmapping? New Firefox would fault-in / touch the ones it really needs immediately afterwards?

--
Cheers,

David / dhildenb