lkml.org 
[lkml]   [1999]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Allocation of too much memory hangs system, kernel 2.2.*
    Date

    > >> 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ürgen

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


    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 13:52    [W:0.022 / U:30.384 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site