linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* huge zero page vs FOLL_DUMP
@ 2013-01-11 23:53 Michel Lespinasse
  2013-01-12  3:36 ` Kirill A. Shutemov
  0 siblings, 1 reply; 6+ messages in thread
From: Michel Lespinasse @ 2013-01-11 23:53 UTC (permalink / raw)
  To: Kirill A. Shutemov, Hugh Dickins, linux-mm

Hi,

follow_page() has code to return ERR_PTR(-EFAULT) when it encounters
the zero page and FOLL_DUMP flag is passed - this is used to avoid
dumping the zero page to disk when doing core dumps, and also by
munlock to avoid having potentially large number of threads trying to
munlock the zero page at once, which we can't reclaim anyway.

We don't have the corresponding logic when follow_page() encounters a
huge zero page. I think we should, preferably before 3.8. However, I
am slightly confused as to what to do for the munlock case, as the
huge zero page actually does seem to be reclaimable. My guess is that
we could still skip the munlocks, until the zero page is actually
reclaimed at which point we should check if we can munlock it.

Kirill, is this something you would have time to look into ?

Thanks,

-- 
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2013-01-14 15:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 23:53 huge zero page vs FOLL_DUMP Michel Lespinasse
2013-01-12  3:36 ` Kirill A. Shutemov
2013-01-12  4:27   ` Michel Lespinasse
2013-01-14 15:18     ` Kirill A. Shutemov
2013-01-13  1:43   ` Simon Jeons
2013-01-13 16:10     ` Kirill A. Shutemov

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).