News for hackers. Stuff that matters.
Re:Debugging Your Operating System: A Lesson in Memory Alloc... by brigade on Friday December 09, 2016 @05:27PM (#13142414)
If you zero upfront, you have to do all of that save the page fault anyway, but for large allocations you also thrash the cache zeroing stuff that's immediately evicted to memory. It really is faster in general to zero a page when the program actually touches it, since that's when the program wants it in cache (for certain thresholds of "large allocation")
Re:Debugging Your Operating System: A Lesson in Memory Alloc... by haimez on Friday December 09, 2016 @07:32PM (#13143165)
"Thrashing to memory". Man, we must have different SLOs.