Messages in this thread | | | Subject | Re: [patch-2.3.40-pre6] kzalloc() (ala kmem_zalloc() of SVR4) | From | Jes Sorensen <> | Date | 24 Jan 2000 10:37:51 +0100 |
| |
>>>>> "Jeff" == Jeff Garzik <jgarzik@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@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |