Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you certain it's not bypassing cache on the writes? It's been relatively straightforward to do this on x86 for ages now, especially if you're using SSE to fill many bytes at once. I would be shocked if the page zeroing thread did cached reads or writes.


The page-zeroing code may be able to minimize its effect on the cache, but it will then necessarily consume memory bandwidth -- 4 KB of bandwidth per page zeroed as it writes each page. So, it still affects overall performance.

And it guarantees that when a process goes to use the pages they will not be in the cache. Ah, tradeoffs.


It does it when the system is otherwise idle.

> And it guarantees that when a process goes to use the pages they will not be in the cache.

There isn't much point in caching a page full of zeros. Let the cache fill when there is actual data.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: