Re: PATCH 2.3.26: kmalloc GFP_ZERO

Jes Sorensen (Jes.Sorensen@cern.ch)
09 Nov 1999 15:07:12 +0100


>>>>> "Mikulas" == Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> writes:

Mikulas> On 9 Nov 1999, Jes Sorensen wrote:
>> Why, all it does is to provide an obfuscated macro for something
>> which is not a problem. Right now some code will do kmalloc();
>> memset();, it's very clean and easy to deal with.

Mikulas> GFP_ZERO is not so stupid idea. It allows us to implement
Mikulas> something like zero-page cache. While processor has nothing
Mikulas> to do, it can clear free pages, and when GFP_ZERO request
Mikulas> comes, it returns page directly without clearing overhead.

Which I doubt is a win anyway, all you do is to sit there and thrash
your cache in the background.

Jes

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/