Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - strange issue: "cannot fork": (3 Items)
   
strange issue: "cannot fork"  
Hi,

I was just testing ETFS  (creating a copy of a file, both src and dst in ETFS).. as I tried to issue further shell 
commands, i got the message:
"ksh: cannot fork".

To the best of my knowledge on Unix this happens when the process table is full (happened to me once on an old SunOS box
 when a fork bomb cut loose...)...
But a quick look into the process table using the already running qconn showed that there was nothing unusual concerning
 the amount of processes running.

This didn't clear itself, so i needed to reboot.

This was on qnx 6.4.0 on mpc8313....

Any ideas?

Greetings,
 Marc
RE: strange issue: "cannot fork"  
How much free memory was on the system?  That error message can also
happen if there's not enough memory allocate a new process. 

> -----Original Message-----
> From: Marc Roessler [mailto:community-noreply@qnx.com] 
> Sent: April 17, 2009 10:17 AM
> To: ostech-core_os
> Subject: strange issue: "cannot fork"
> 
> Hi,
> 
> I was just testing ETFS  (creating a copy of a file, both src 
> and dst in ETFS).. as I tried to issue further shell 
> commands, i got the message:
> "ksh: cannot fork".
> 
> To the best of my knowledge on Unix this happens when the 
> process table is full (happened to me once on an old SunOS 
> box when a fork bomb cut loose...)...
> But a quick look into the process table using the already 
> running qconn showed that there was nothing unusual 
> concerning the amount of processes running.
> 
> This didn't clear itself, so i needed to reboot.
> 
> This was on qnx 6.4.0 on mpc8313....
> 
> Any ideas?
> 
> Greetings,
>  Marc
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post27348
> 
> 
Re: RE: strange issue: "cannot fork"  
good question.. I'll have to keep an eye on this next time.. this may be a reason of course.