From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 1 18:29:26 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 407F9106566B for ; Wed, 1 Apr 2009 18:29:26 +0000 (UTC) (envelope-from prvs=1342d789fa=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id C088F8FC14 for ; Wed, 1 Apr 2009 18:29:25 +0000 (UTC) (envelope-from prvs=1342d789fa=killing@multiplay.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=multiplay.co.uk; s=Multiplay; t=1238610565; x=1239215365; q=dns/txt; h=Received: Message-ID:From:To:References:Subject:Date:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=6PlFUnKfIHl34mqyuVQA/ 0v8c06duNnpNc4hJXRQ0KE=; b=gCSotZ3JHvOOOpoBJ9ubxvskEdjdRV+nrqOy2 JOy/VSyyujehjilZbZ4gMbjBV+8pbZDQLk5HLQ4x62LWJn2XrmR2qjb+8nVWKTug o6fsHdjJyXHCnM+T7nWsn4XUxWD2osFBGZIC/mADRuyvm2HbRQZZj50SgGZzoyXz WCUVjY= X-MDAV-Processed: mail1.multiplay.co.uk, Wed, 01 Apr 2009 19:29:25 +0100 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v10.0.4) with ESMTP id md50007242674.msg for ; Wed, 01 Apr 2009 19:29:25 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Wed, 01 Apr 2009 19:29:25 +0100 (not processed: message from trusted or authenticated source) X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 85.236.106.102 X-Return-Path: prvs=1342d789fa=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org Message-ID: <57E2F83B3290402281CDBA24485427AE@multiplay.co.uk> From: "Steven Hartland" To: "Steven Hartland" , References: Date: Wed, 1 Apr 2009 19:29:20 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Cc: 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 18:29:26 -0000 I knew his sounded very familiar, seems I asked the same question back in 2007 for 5.4 just it was capped at 256: http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2007-October/021852.html I'm sure I also remember saying this limit had been removed in 7.x but looking in the source for pqrsPQRS it seems there are several places where this still hard coded:- contrib/telnet/telnetd/sys_term.c: for (cp = "pqrsPQRS"; *cp; cp++) { lib/libc/stdlib/grantpt.c:#define PTY_DEV1 "pqrsPQRSlmnoLMNO" lib/libutil/pty.c: for (cp1 = "pqrsPQRSlmnoLMNO"; *cp1; cp1++) { sys/kern/tty_pty.c:static const char names[] = "pqrsPQRSlmnoLMNOtuvwTUVWxyzXYZ"; sys/kern/tty_pty.c: * pts == /dev/tty[pqrsPQRSlmnoLMNO][0123456789abcdefghijklmnopqrstuv] sys/kern/tty_pty.c: * ptc == /dev/pty[pqrsPQRSlmnoLMNO][0123456789abcdefghijklmnopqrstuv] usr.sbin/ac/ac.c: strchr("pqrsPQRS", usr.ut_line[3]) != 0 || So the questions are:- 1. Is the fix to this still to just to update these settings? 2. Is there any significance to the upper case lower case thing? 3. Are there any other restrictions on the letters that can be used? ----- Original Message ----- From: "Steven Hartland" > 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. ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.