Re: linux-2.4.0-test5 slowed down unusable with OOM

From: Tigran Aivazian (tigran@veritas.com)
Date: Thu Aug 03 2000 - 09:17:18 EST


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/



This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:11 EST