From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 1 20:57:10 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1239A106564A for ; Wed, 1 Apr 2009 20:57:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id AA27E8FC16 for ; Wed, 1 Apr 2009 20:57:09 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Lp7Uh-0003BU-Ee; Wed, 01 Apr 2009 23:57:07 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n31Kv4YQ070578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Apr 2009 23:57:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n31Kv4u1085837; Wed, 1 Apr 2009 23:57:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n31Kv4Pj085836; Wed, 1 Apr 2009 23:57:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 1 Apr 2009 23:57:04 +0300 From: Kostik Belousov To: Ed Schouten Message-ID: <20090401205703.GX31897@deviant.kiev.zoral.com.ua> References: <20090401205306.GO13393@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hrlM+fc7ZNh8C9pu" Content-Disposition: inline In-Reply-To: <20090401205306.GO13393@hoeg.nl> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1Lp7Uh-0003BU-Ee 6321f86e8ddbda99f3f5d796e2aa2d7a X-Terabit: YES Cc: FreeBSD Hackers , Steven Hartland Subject: Re: How to increase the max pty's on Freebsd 7.0? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2009 20:57:10 -0000 --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 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--