Date: Wed, 1 Apr 2009 23:57:04 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Ed Schouten <ed@80386.nl> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, Steven Hartland <killing@multiplay.co.uk> Subject: Re: How to increase the max pty's on Freebsd 7.0? Message-ID: <20090401205703.GX31897@deviant.kiev.zoral.com.ua> In-Reply-To: <20090401205306.GO13393@hoeg.nl> References: <A48E38AADF784030A7496551F1416A3B@multiplay.co.uk> <20090401205306.GO13393@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--hrlM+fc7ZNh8C9pu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 01, 2009 at 10:53:06PM +0200, Ed Schouten wrote: > Hi Steven, >=20 > * Steven Hartland <killing@multiplay.co.uk> wrote: > > How can I increase the maximum number or ptys available on FreeBSD 7.0? > > > > It seems that currently the machine is maxing out at 512 but there is > > still loads of capacity left on the machine. > > > > Ideally would like to double at least the number of ttys available, > > any help would be most appreciated. >=20 > You can increase the maximum amount of PTYs by editing a lot of source > files on your system. There is some good news: in -CURRENT we switched > to Unix98-style PTYs (/dev/pts/%u). Right now the maximum amount of PTYs > is limited to 1000 (0 to 999). >=20 > We're currently limited to 7 characters (pts/999) because our utmp/ > wtmp/lastlog files only reserve 8 bytes for the TTY name. If you're > brave enough, you can increase UT_LINESIZE in include/utmp.h and > MAXPTSDEVS in sys/kern/tty_pts.c. Be sure to recompile everything and to > remove your utmp/wtmp/lastlog files. Can we switch to %x ? Or even, use some radix encoding of the number, to allow alphabetical symbols too ? --hrlM+fc7ZNh8C9pu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAknT1R8ACgkQC3+MBN1Mb4jo4QCeMBJbO+7ODuvwo6Xu2yjocGt/ DRUAn2zJVZXmSjdtRHjqwFQtfNq77jhd =ddDC -----END PGP SIGNATURE----- --hrlM+fc7ZNh8C9pu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090401205703.GX31897>