linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [LSF/MM/BPF TOPIC] MM: Mapcount Madness
@ 2024-01-29 12:05 David Hildenbrand
  2024-01-29 13:49 ` Matthew Wilcox
  0 siblings, 1 reply; 4+ messages in thread
From: David Hildenbrand @ 2024-01-29 12:05 UTC (permalink / raw)
  To: lsf-pc; +Cc: linux-mm@kvack.org, Michal Hocko, Dan Williams

As PTE-mapped large folios become more relevant (mTHP [1]) and there is 
the desire to shrink the metadata allocated for such large folios as 
well (memdesc [2]), how we track folio mappings gets more relevant. Over 
the years, we used folio mapping information to answer various 
questions: is this folio mapped by somebody else? do we have to COW on 
write fault? how do we adjust memory statistics? ...

Let's talk about ongoing work in the mapcount area, get a common 
understanding of what the users of the different mapcounts are and what 
the implications of removing some would be: which questions could we 
answer differently, which questions would we not be able to answer 
precisely anymore, and what would be the implications of such changes?

For example, can we tolerate some imprecise memory statistics? How 
expressive is the PSS when large folios are only partially mapped? Would 
we need a transition period and glue changes to a new CONFIG_ option? Do 
we really have to support THP and friends on 32bit?

[1] 
https://patchwork.kernel.org/project/linux-mm/cover/20231207161211.2374093-1-ryan.roberts@arm.com/#25628022
[2] https://kernelnewbies.org/MatthewWilcox/Memdescs

-- 
Cheers,

David / dhildenb



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-01 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 12:05 [LSF/MM/BPF TOPIC] MM: Mapcount Madness David Hildenbrand
2024-01-29 13:49 ` Matthew Wilcox
2024-01-29 14:09   ` David Hildenbrand
2024-02-01 16:17   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).