lkml.org 
[lkml]   [1998]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] Re: Out Of Memory in v. 2.1
Andrea Arcangeli wrote:
>
> On Sat, 3 Oct 1998, Bill Hawes wrote:
>
> >Roy Bixler wrote:
> >

[deleted]

>
> I passed last night and this afternoon on the OOM problem. I discovered
> many problems in the current MM of 2.1.123.
>
> I developed a patch that fix all problems I can reproduce. With this my
> patch applyed I am not able to deadlock (or better persistence starvation)
> 2.1.123. Linux now is _always_ able to kill a process when _needed_.
>
[deleted]

Hi Andrea:

Here are the results of my tests:

System: Pentium 166, 64MB RAM, 44348KB SWAP, linux-2.1.124, libc5,
running X on KDE 1.0 with kdm (xdm). All over an old Slackware heavy
"upgraded" by hand.

leak.c
-------------------------
#include <stdlib.h>

main()
{
while(1)
{
if( malloc(2048) == 0)
sleep(1);
}
}
---------------------------
TEST 1
I ran leak in one xterm and switched to another.

I keep running free on the 2nd xterm and got messages like that (disk
spinning like crazy):

$ free
free: can't map '/lib/libc.so.5'
$ free
Segmentation fault (core dumped)

At some time, the system got not responsive: no mouse, cant switch VCs,
NumLock and CapsLock don't even lit the LEDs.

Pressed Reset :-(
----------------------
TEST 2

System: the same as above with linux-2.1.124+your patch

$ leak
Bus error [ something different :-) ]
$ leak

The disk was not spinning like crazy, the system was more responsive.

Suddenly, one xterm died, the other died, KDE interface died, X died and
the kdm (xdm) appeared. I was able to log in again and go to TEST 3
------------------------
TEST 3

$ leak

The system was responsive for a while.

Tried to run free in the 2nd xterm and bash output something like
bash: out of virtual memory
and the xterm died

The system got no responsive, no mouse, cant switch VCs, no CapsLock,
NumLock,....

Reset again
--------------------------

Next test will be without X, KDE, etc, will only use the console.

I will send you my next results.

Regards

Dino

-
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:44    [W:0.067 / U:4.080 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site