Re: Kernel panic caused by fork

2009-09-08 Thread Ivan Radovanovic
Jan Mikkelsen napisa: A quick observation: This is not one process misbehaving, it is a large number of processes misbehaving. From an administrative point of view, I think the response is call setrlimit(RLIMIT_NPROC, ...), otherwise the expected behaviour is for your machine to stop making

Re: Kernel panic caused by fork

2009-09-08 Thread Jan Mikkelsen
Hi, On 07/09/2009, at 8:59 PM, Ivan Radovanovic wrote: ... After running this program I got kernel panic with message get_pv_entry: increase vm.pmap.shpgperproc IMHO it is not very good idea to bring entire system down if one process misbehaves in this way, it is maybe much better to kill

Re: Kernel panic caused by fork

2009-09-08 Thread Cheng Renquan
On Mon, Sep 7, 2009 at 6:59 PM, Ivan Radovanovicriv...@gmail.com wrote: I was testing FreeBSD's behavior when running many threads at the same time (and I find it performs excellent) when I wanted to test how system will behave towards program that spawns itself too many times. I wrote a very

Re: Kernel panic caused by fork

2009-09-08 Thread Julian Elischer
Cheng Renquan wrote: On Mon, Sep 7, 2009 at 6:59 PM, Ivan Radovanovicriv...@gmail.com wrote: I was testing FreeBSD's behavior when running many threads at the same time (and I find it performs excellent) when I wanted to test how system will behave towards program that spawns itself too many

Re: Kernel panic caused by fork

2009-09-08 Thread Ivan Radovanovic
Julian Elischer napisa: Cheng Renquan wrote: On Mon, Sep 7, 2009 at 6:59 PM, Ivan Radovanovicriv...@gmail.com wrote: I was testing FreeBSD's behavior when running many threads at the same time (and I find it performs excellent) when I wanted to test how system will behave towards program that

Re: Kernel panic caused by fork

2009-09-08 Thread Ivan Voras
Ivan Radovanovic wrote: I was testing FreeBSD's behavior when running many threads at the same time (and I find it performs excellent) when I wanted to test how system will behave towards program that spawns itself too many times. I wrote a very simple program #include sys/types.h #include

Kernel panic caused by fork

2009-09-07 Thread Ivan Radovanovic
I was testing FreeBSD's behavior when running many threads at the same time (and I find it performs excellent) when I wanted to test how system will behave towards program that spawns itself too many times. I wrote a very simple program #include sys/types.h #include unistd.h int main() {