Sanitizing kernel memory
Posted Jun 2, 2009 16:24 UTC (Tue) by
anton (guest, #25547)
In reply to:
Sanitizing kernel memory by etienne_lorrain@yahoo.fr
Parent article:
Sanitizing kernel memory
Yes, if the zeroed cache lines are not accessed or not accessed before
being replaced in the cache, then the performance of on-demand zeroing
for that cache line will be just as bad as eager zeroing in the cache,
and a little worse than for eager methods that don't go through the
cache. But I doubt that that's the case for the majority of cache
lines. In particular, I don't think that there are replaced at all
cache levels before being accessed. But yes, measurements would be a
good idea.
Concerning eager zeroing of cache lines, that is certain to replace
a page full of cache lines just as on-demand zeroing does, except that
it is far less likely that the cache lines will be accessed before
being replaced by other cache lines, so it is a bad idea. Tagging the
line as least-recently-used helps only a little, if it is possible at
all.
(
Log in to post comments)