*BSD News Article 24892


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!math.ohio-state.edu!news.cyberstore.ca!nntp.cs.ubc.ca!unixg.ubc.ca!acs.ucalgary.ca!cpsc.ucalgary.ca!xenlink!fsa.ca!deraadt
From: deraadt@fsa.ca (Theo de Raadt)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Daffy: "No More Ptys!" =O
Date: 9 Dec 93 17:18:16
Organization: little lizard city
Lines: 11
Message-ID: <DERAADT.93Dec9171816@newt.fsa.ca>
References: <CHsBxI.1J8@rucs2.sunlab.cs.runet.edu> <2e8brq$9hn@homer.cs.mcgill.ca>
NNTP-Posting-Host: newt.fsa.ca
In-reply-to: storm@cs.mcgill.ca's message of 9 Dec 1993 23:20:26 GMT

In article <2e8brq$9hn@homer.cs.mcgill.ca> storm@cs.mcgill.ca (Marc WANDSCHNEIDER) writes:
    I do believe however, that there is a memory cost for increasing the
    number of ptys, so you don't want to get overzealous and have 1048576
    ptys on your machien.

In NetBSD the cost is less than 32 bytes/pty. (from the top of
tty_pty.c).

That is, until you use them. Then the rest of the memory is malloc()'d..
--
This space not left unintentionally unblank.		deraadt@fsa.ca