*BSD News Article 89782


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsxfer.itd.umich.edu!uunet!in3.uu.net!206.13.28.13!news.pbi.net!news5.crl.com!nexp.crl.com!usenet
From: "Jordan K. Hubbard" <jkh@FreeBSD.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: I need MORE than 120 ptys........please help
Date: Thu, 20 Feb 1997 23:01:57 -0800
Organization: Walnut Creek CDROM
Lines: 25
Message-ID: <330D4865.3F54BC7E@FreeBSD.org>
References: <3309E9A0.938@sticky.usu.edu>
NNTP-Posting-Host: time.cdrom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.2-970215-GAMMA0 i386)
To: hal@sticky.usu.edu
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35859

Hal Lynch wrote:
> I have a Compaq Deskpro 5100 with a 100mhz Pentium, 81920K bytes
> of memory and Free BSD 2.1.5 running a gateway application for our

How much memory?  81MB?  That's kind of an odd amount. :)  I'll assume
you typo'd in a 0 and what you actually meant was 8MB, in which case
this machine is woefully underconfigured for what you're trying to do
with it.  I wouldn't be surprised if the PTY allocation failures
happened for other reasons if you're really trying to do this much in
8MB of memory.  Memory is very cheap, and even just doubling this poor
machine's memory would make a big difference.  I'd be more inclined to
stick at least 32MB in it and leave myself some room for overhead.

Second, if this is a PTY exhaustion problem then it's fairly simple to
test, and you should probably do this before you go chasing any wild
geese.  Just write a little C program to gobble up all the ptys and then
print when it's not able to open any more.  Shut down the system to
single user mode and run it and you'll quickly find out if it's a PTY
allocation problem or what, exactly.  I don't remember what the PTY
constraints in 2.1.5 were - that's all ancient history to me now. :-)

I've also forwarded your question to questions@freebsd.org.
-- 
- Jordan Hubbard
  FreeBSD core team / Walnut Creek CDROM.