LWN.net Logo

Zeroing freed memory

Zeroing freed memory

Posted Nov 13, 2008 0:48 UTC (Thu) by nix (subscriber, #2304)
In reply to: Zeroing freed memory by Felix_the_Mac
Parent article: /dev/ksm: dynamic memory sharing

Because it pointlessly blows the dcache (a precious resource), generally
to very little gain, because a lot of freed userspace pages are reused for
something other than userspace pages and are filled with something else,
and those pages which *are* reused for other userspace pages are zeroed at
*that* point.


(Log in to post comments)

Zeroing freed memory

Posted Nov 13, 2008 22:45 UTC (Thu) by bdauvergne (subscriber, #6989) [Link]

and there is still madvise(MADV_DONTNEED) to release the physical pages to the system.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds