From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 20:43:15 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EB1B16A468 for ; Thu, 15 Nov 2007 20:43:15 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 6A00613C448 for ; Thu, 15 Nov 2007 20:43:14 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id lAFKS4EL005386; Thu, 15 Nov 2007 14:28:04 -0600 (CST) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iaD4mln4nGzM; Thu, 15 Nov 2007 14:27:58 -0600 (CST) Received: from archangel.daleco.biz (dsl.daleco.biz [209.125.108.70]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id lAFKRrei005382; Thu, 15 Nov 2007 14:27:53 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <473CABC3.6090604@daleco.biz> Date: Thu, 15 Nov 2007 14:27:47 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070418 SeaMonkey/1.1.1 MIME-Version: 1.0 To: questions@freebsd.org References: <20071115200215.GF43532@hal.rescomp.berkeley.edu> In-Reply-To: <20071115200215.GF43532@hal.rescomp.berkeley.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ccowart@rescomp.berkeley.edu Subject: Re: Kernel pty limit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2007 20:43:15 -0000 Christopher Cowart wrote: > Hello, > > I went to open up a new shell to our login server (recently rebuilt from > Debian to FreeBSD) and found problems allocating a new pty. With a > 256-pty limit, I'm surprised more people haven't had this problem. With > team of 8 SysAdmins, each leaving about 30 windows open in screen > sessions, 256 starts feeling a bit claustrophobic. Hmm, 8 guys root on one boxen? Sounds like a "cushy" job! Got an IP and a couple of partners I could play xtank with? J/k, of course. :-D > I found a questions thread from January 2006 and these PRs: > standards/90896: not enough PTYs in the FreeBSD > kern/25866: [patch] more than 256 ptys, up to 1302 ptys. > There was also discussion on hackers@ at the time[1], and a mention from rwatson@ that a new tty_pts.c and support in libc for this was added to HEAD then[2]; I haven't checked, but I'm assuming it's still in the new 7 branch and will be a part of 7.0 Real Soon Now(tm), if that's any comfort. There may be patches available, there was some discussion. Also, if it *IS* in 7.0, I guess you could holler for a MFC. > The latter appears to have been kicking around since FreeBSD 4.3 (still > open). > > What can I do to help get that limit raised? Does anyone have a patch > against 6.2? If not, would anyone be interested in writing one? > > Thanks for any help, > HTH, Kevin Kinsey -- Break into jail and claim police brutality. [1] http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2006-01/msg00177.html [2] http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2006-01/msg00306.html