Re: Allocation of too much memory hangs system, kernel 2.2.*

Juergen Vollmer (vollmer@cocolab.de)
Sun, 30 May 1999 10:57:18 +0200


--==_Exmh_-2036693030P
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

> >> Program #1 ends with a huge core dump.
> >> Program #2 ends with a core too, but it is very little, about 8MB.
> >> Strange.
> >
> >> Anyway the machine is still OK and prefectily working and stable.
> You
> >> should
> >> post the peice of code that cause you that troubles...
> >
> >Please try the following:
> >
> >-------------------------------------
> > # include "stdio.h"
> >
> > [...]
> >
> >after printing 375, the system stops as described in my problem
> report.

> Nope. The program cores at 7, when it reaches 8MB, just like the other
> my testprgs.
> Very very strange. If I allocate memory by malloc(), I can fill all the=

> available memory, but if I use infinite recursion the programs stops
> when the stack reaches 8MB...
> Can someone explain me this behaviour ?

> [kernel 2.2.9 on a PowerPC 604e/200MHz]

my output of `ulimit -a' is:

core file size (blocks) 20000
data seg size (kbytes) unlimited
file size (blocks) unlimited
max locked memory (kbytes) unlimited
max memory size (kbytes) unlimited
open files 1024
pipe size (512 bytes) 8
stack size (kbytes) unlimited
cpu time (seconds) unlimited
max user processes 256
virtual memory (kbytes) unlimited

my be you have a limit for the stack size.

J=FCrgen

-------------------------------------------------------------------------=
-----
Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe
office: vollmer@cocolab.de Tel: +49(721) 9204871 Fax: +49(721) =
24874
private: Juergen.Vollmer@acm.org Tel: +49(721) 24874 Fax: +49(721) =
24874
WWW: www.cocolab.de/vollmer
-------------------------------------------------------------------------=
-----

--==_Exmh_-2036693030P
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6.3i
Comment: Requires PGP version 2.6 or later.

iQCVAwUBN1D9boh48drK23N9AQGjYAP/fSz28gd4xiVWn/avRyANUCMQd/2MZmow
q7iv9RHRFIA7zxVIM5bIvcrvP+IaO/9Mt+Rv2Z+qpD6Z8nO1M4voXvYlLPmL04yU
padMj6Kr5SBIP/C90ytsf7yW6l36iqLGJMGCOr32taj1hSX1ms41EEG27F6BwkrL
mlG0kFCUcwA=
=9GO4
-----END PGP MESSAGE-----

--==_Exmh_-2036693030P--

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