Sanitizing kernel memory
Posted May 28, 2009 18:25 UTC (Thu) by
anton (guest, #25547)
In reply to:
Sanitizing kernel memory by lemmings
Parent article:
Sanitizing kernel memory
Clearing on freeing will also add a performance cost in the zeroed
case: Even if you avoid the cache and CPU cost of clearing in some
way, there are still the memory bandwidth costs of writing the zeros
out, and later loading them again; plus the CPU latency cost of having to
load the zeros into the cache on use. In contrast, if you zero the
page on-demand, the zeros are written to the cache, and in many cases
are then available to the user program from the cache, requiring less
CPU time and less memory bandwidth.
(
Log in to post comments)