[patch-2.3.40-pre6] kzalloc() (ala kmem_zalloc() of SVR4)

Jes Sorensen Jes.Sorensen en cern.ch
Lun Ene 24 08:35:23 CST 2000


>>>>> "Jeff" == Jeff Garzik <jgarzik en mandrakesoft.com> writes:

Jeff> I proposed something along these lines several months ago, poke
Jeff> around for the thread.  While I agree with the patch, because it
Jeff> will save me a few lines of code here and there, an idea that
Jeff> came out of the previous discussion is also worth considering --
Jeff> zeroing pages during system idle time, and then handing those
Jeff> out from kzalloc() (or kmalloc(GFP_ZERO|GFP_xxx) or whatever)

Another thing I forgot to bring up earlier in the dicussion, most of
the places doing kmalloc();memset(); are in initialization parts of
the code, ie. they will be marked __init, so the optimization is a
no-win, the only thing you save is to write one line less of code.

Jes

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



Más información sobre la lista de distribución Ayuda