LWN.net Logo

we have /dev/zero, why not use the hardware implementation?

we have /dev/zero, why not use the hardware implementation?

Posted Mar 4, 2009 8:03 UTC (Wed) by xoddam (subscriber, #2322)
In reply to: Speeding up the page allocator by etienne_lorrain@yahoo.fr
Parent article: Speeding up the page allocator

Yep. Zeroing memory before handing it to userspace is a *very* common operation (an absolute requirement for security reasons) and every memory controller worth its salt should supply an efficient way of doing so without trashing the CPU cache. If the Linux kernel doesn't already make use of it wherever it is available, that's madness.


(Log in to post comments)

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