2.5.65-mm1 Adventures

Justin Hibbits kde-optimize@mail.kde.org
Tue, 18 Mar 2003 14:09:47 -0500


On Tue, Mar 18, 2003 at 07:33:16PM +0100, Alexander Kellett wrote:
> in the last place i worked we alloced and memset'ed 
> 1mb blocks until getting a out of mem error. i'm sure 
> there is better ways though ;-)
> 
> Alex

That's how I do it...except I allocate 1kB at a time, to get better clearing
(clears everything, when I had 1MB/malloc() it left usually 20-30MB uncleard).
very simple code...(at end of message).

-Justin

-- 
Registered Linux user 260206

------cut here------

#include <stdlib.h>

int main()
{
	while (1)
		malloc(10);
}