*BSD News Article 58405


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!news.sprintlink.net!news.netvoyage.net!digital.netvoyage.net!bogawa
From: bogawa@digital.netvoyage.net (Bryan Ogawa at Work)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: 2.0.5 problem- can't get >32 ptys (was: Re: process table too small (odd circumstances))
Date: 28 Dec 1995 23:51:21 GMT
Organization: NetVoyage, Los Angeles, CA
Lines: 49
Message-ID: <4bvahq$8qu@news.netvoyage.net>
References: <bogawa.820138847@digital>
NNTP-Posting-Host: digital.netvoyage.net
X-Newsreader: slrn (0.7.9.0)

First, I would like to say thanks to Chris Jewell (sp?) who kindly, and 
correctly, diagnosed my problem.

My problem, in summary:

I got a "can't fork" error while trying to use screen to test to see if I 
had 64 ptys, while creating many sh shells.  The problem was that this 
overflowed the CHILD_MAX kernel variable--which, according to LINT, is 
the number of processes a user can own.  I reset this to 128, and did my 
testing with two users, instead of one.

My problem now:

I can't get past the 32nd pty, even though I have the kernel option set 
to 64 ptys, and I have 64 ptys set up in /dev via ./MAKEDEV pty2 .  In 
addition, I set /etc/ttys to have 32 additional entries for ttyr* .

One note--my slightly unusual circumstances are mentioned below, just 
in case that has anything to do with anything.

Any suggestions?

Thank you.

As previously mentioned--news propogation isn't the best, so email copies 
are appreciated (that's how I got Chris' reply--it didn't make it here 
via news yet).

Bryan

In article <bogawa.820138847@digital>, Bryan Ogawa at Work wrote:
[snip]
>To test it out, I'm compiling a kernel for a test machine on our "real" 
>machine.  The "real" machine is a P90 w/ 64 megs of RAM, and SCSI.  the 
>test machine is a cyrix 486/66 w/ 8 megs and 100 (or so) megs of IDE 
>storage for freebsd.  As you might imagine, there's no source on the test 
>machine, so I've been recompiling the kernel on the other machine, then 
>moving it over via ftp.
>
>After moving it over, I install it with the following command:
>
>install -c -m 555 -o root -g wheel -fschg kernel /
[snip]

-- 
Bryan K. Ogawa
Questions or Problems with NetVoyage?  help@netvoyage.net
Check out the NetVoyage HelpWeb at..   <URL: http://www.netvoyage.net/~help/>