On Fri, Sep 12, 2025 at 04:39:02PM +0100, Kiryl Shutsemau wrote: > > Shower thought: it might be in these cases especially where the FreeBSD > > reservation system comes in handy - best effort allocating a THP, but not > > actually mapping it as such until you really _know_ it is hot - and until > > then, memory reclaim can just break your THP down if it really needs to. > > This is just silly. All downsides without benefit until maybe later. And > for short-lived processes the "later" never comes. The right way out is to get better info on access pattern from hardware. For instance, if we move access bit out of page table entry and make it independent of the actually mapping size that would give us much better view on what actually is going on. -- Kiryl Shutsemau / Kirill A. Shutemov