On Friday 10 November 2000 17:05, you wrote:
> Anon Sricharoenchai a �crit :
> > I have tested the "fork" and so called "copy-on-write" operation by
> > invoking the following command (as a normal user, not superuser).
> >
> > perl -e '$| = 1; sub s1() { system("free -t | tail -1") } s1(); for ($i =
> > 0; $i<10_000_000; $i++) { $a[$i] = 0 } s1(); if (\!fork()) { s1(); for
> > ($i = 0; $i<scalar(@a); $i+=300) { $a[$i] = 0 } s1() } else { wait() }'
> >
> > How can I protect this crash ?
>
> You may protect from 'out of memory' linux crash by setting limits on
> memory/time for processes with the ulimit command (ugly turnaround).
a ulimiting could be a good idea for limiting hungry process ;-)