Date: Sun, 22 Jan 2006 23:54:22 +0000 (GMT) From: Robert Watson <rwatson@FreeBSD.org> To: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net> Cc: freebsd-hackers@freebsd.org, Antti Korpela <antti.korpela@devnet.fi> Subject: Re: FreeBSD 6.0 default pty/tty-limit (256) OFF! Message-ID: <20060122235133.Y89461@fledge.watson.org> In-Reply-To: <20060121155821.Y73866@spirou.home> References: <43CC3C6B.4060703@devnet.fi> <49431.195.139.252.5.1137461466.squirrel@webmail.i13i.com> <20060121155821.Y73866@spirou.home>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-527915674-1137974062=:89461 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sat, 21 Jan 2006, Mikko Ty=F6l=E4j=E4rvi wrote: >> I need patch to raise FreeBSD 6.0 default pty/tty-limit (256) UP or OFF.= In=20 >> shell-production usage, that limit is ridiculous, there must be stop to= =20 >> this and put PTY-limits off! I changed my servers operating systems mome= nt=20 >> ago from Linux to FreeBSD thinking that FreeBSD could be more better, bu= t=20 >> how this can be possible, that so important think like PTYs are limited = to=20 >> so low?? every UNIX has more ptys. > > This is a long standing problem, as is evident from kern/25866 [1] from= =20 > 2001. A more recent report is standards/90896 [2], wich also contains a= =20 > patch. > > I'd suggest you try the patch and provide feedback to the bug report. FYI, there's also a tty_pts.c floating around, based on some work I did at= =20 McAfee a couple of years ago, that implements /dev/ptmx and /dev/pts for=20 FreeBSD. Among other things, it removes the limit on the number pty's, and= =20 adopts the Sys V pty naming convention. While there are upsides and downsi= des=20 to the naming convention, it does attempt to normalize the way we handle=20 pty's, as well as removing the requirement for root privilege in order to= =20 allocate and properly protect a pty. I have an older version at=20 http://www.watson.org/~robert/freebsd/pts/. However, it's fairly dated, an= d=20 may not work due to other changes since it was written (I've not looked to= =20 see). I've tried several times to trick developers into picking it up and= =20 doing the last remaining work to make it real -- largely what's required is= =20 work on the forward/backward compatibility issue, that and extensive testin= g=20 and a security audit. It would be nice to ship 7.x with these changes as i= t=20 would resolve a lot of problems. Robert N M Watson --0-527915674-1137974062=:89461--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060122235133.Y89461>