lkml.org 
[lkml]   [2000]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-2.4.0-test5 slowed down unusable with OOM
please insert the code which sets RLIMIT_AS which lowers the limits for
your process and try again.

it seems this week everyone is trying to write a little malloc(3)
helloworld program to prove that Linux VM is wrong. It isn't. It is as
perfect as any other part of the Linux kernel.

Regards,
Tigran

On Thu, 3 Aug 2000, Andreas Jellinghaus wrote:

> this simple c app will make 2.4.0-test5 such slow,
> it's unusable. i saw some progress in the xterm running this app,
> but it was not possible to do anything else (like ctr-alt-f1 or
> ctrl-alt-del, mouse and keyboard strokes also had no effekt).
> ping to the box worked still.
>
> it might be nice to kill the app much sooner,
> instead of swapping for hours.
>
> regards, andreas
>
> #include <malloc.h>
> #include <stdio.h>
>
> void main()
> {
> int *mem;
> long int i;
> long int x;
> x=1;
> while (1) {
> x++;
> printf("%ld MB ... ",x);
> fflush(stdout);
> mem=malloc(1024*1024*x);
> for (i=0; i<x*1024*1024/sizeof(int); i=i+64)
> {
> mem[i]=0;
>
> }
> free(mem);
> }
> }
>
>
> -
> 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/
>


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.163 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site