jzdziarski
Registered
Hehehe. You're a programmer jzdziarski?
I'm not sure what's prompting you to act like an asshole in a public forum, but if you can't be constructive, I suggest you find another forum to post in.
Make a call to malloc() for whatever size buffer you want and tell me if it's zero'ed out. It is not.
I never said it was (or should be), although the OS had better be zeroing secure pages in memory so that you can't just allocate a huge block and get access to passwords people have typed in (and such). Especially on a multi-user system. The space still has to be deallocated, returned to the pool, and then allocated to the application requesting the memory. This takes what is commonly referred to as 'overhead'. To leave the pages sitting in memory allocated is poor design, I don't care what pretty algorithms you have managing it. They should be put back on the free list and show up as free memory.
I think that's where the real slow down is: when the kernel has to manage memory and make distinctions between what is/isn't available to give to apps.
ding ding ding
I'm not sure what's prompting you to act like an asshole in a public forum, but if you can't be constructive, I suggest you find another forum to post in.
Make a call to malloc() for whatever size buffer you want and tell me if it's zero'ed out. It is not.
I never said it was (or should be), although the OS had better be zeroing secure pages in memory so that you can't just allocate a huge block and get access to passwords people have typed in (and such). Especially on a multi-user system. The space still has to be deallocated, returned to the pool, and then allocated to the application requesting the memory. This takes what is commonly referred to as 'overhead'. To leave the pages sitting in memory allocated is poor design, I don't care what pretty algorithms you have managing it. They should be put back on the free list and show up as free memory.
I think that's where the real slow down is: when the kernel has to manage memory and make distinctions between what is/isn't available to give to apps.
ding ding ding