lkml.org 
[lkml]   [1999]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject(fwd) Re: Why Linux CRASHES when process overscome swap memory ?????
Path: news.dhp.com!newsfeed.srv.cs.cmu.edu!arclight.uoregon.edu!newsfeed.mathworks.com!remarQ-easT!rQdQ!supernews.com!remarQ.com!news.supernews.com!not-for-mail
From: David Schwartz <davids@webmaster.com>
Newsgroups: comp.os.linux.development.system
Subject: Re: Why Linux CRASHES when process overscome swap memory ?????
Date: Wed, 27 Oct 1999 00:04:21 -0700
Organization: Posted via Supernews, http://www.supernews.com
Lines: 30
Message-ID: <3816A3F5.B66A926D@webmaster.com>
References: <37F46566.B4FD0B6@irit.fr>
X-Complaints-To: newsabuse@supernews.com
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: news.dhp.com comp.os.linux.development.system:82047
Francois THIEBOLT wrote:
>
> Hi,
>
> Got students writting progs (beginners & pros...), one of them made a
> test :
>
> #include <stdio.h>
> #include <stdlib.h>
>
> int main()
> {
> char *mem;
> const size_t TAILLE=1048576;
>
> while (1)
> {
> mem=(char *)malloc(TAILLE);
> }
> }
>
> Then linux start to allocate memory, then it uses memory swap and then
> it crashes (even mouse isn't responding)...then Reset.
>
> Got a RHL 6.0 128MB RAM + 1x128MB swap partition...any clue ?

Why does a car crash when you drive it into a wall? This is a classic
"then don't do that" question.

DS

--
Mike,
mikesw@whiterose.net


-
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:54    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site