Re: [PATCH] General purpose zeroed page slab

Martin K. Petersen
2004-10-18T18:54:13Z

>>>>> "Matthew" = Matthew Wilcox <matthew@wil.cx> writes:

Matthew> It's probably worth doing this with a static cachep in slab.c
Matthew> and only exposing a get_zeroed_page() / free_zeroed_page()
Matthew> interface, with the latter doing the memset to 0.

*nod*

Matthew> I disagree with Andi over the dumbness of zeroing the whole
Matthew> page. That makes it cache-hot, which is what you want from a
Matthew> page you allocate from slab.

Yeah, plus the housekeeping may be more of a hassle than it's worth.

We'll see...

--
Martin K. Petersen Wild Open Source, Inc.
mkp@wildopensource.com http://www.wildopensource.com/