From owner-freebsd-hackers Mon Feb 25 21:49: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from utility.clubscholarship.com (utility.clubscholarship.com [198.78.70.175]) by hub.freebsd.org (Postfix) with ESMTP id 5B03A37B405 for ; Mon, 25 Feb 2002 21:48:55 -0800 (PST) Received: from localhost (root@localhost) by utility.clubscholarship.com (8.11.6/8.11.6) with ESMTP id g1Q5k4w05228 for ; Mon, 25 Feb 2002 21:46:04 -0800 (PST) (envelope-from root@utility.clubscholarship.com) Date: Mon, 25 Feb 2002 21:46:04 -0800 (PST) From: Charlie ROOT To: Subject: I am running out of PTYs and I shouldn't be. Message-ID: <20020225213827.Q5021-100000@utility.clubscholarship.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have recompiled my kernel with: maxusers 128 And have confirmed that that is indeed the case by checking the value in `sysctl`. Further, in addition to the 16 pty device files that come in /dev by default, I have created all 256 of them by running the commands: `sh MAKEDEV ptyX` (where X is each of the numbers 1 through 7) And I have verified that all those devices are there, and have reasonable major/minor numbers with the `ls` command. So I am rather confused that I am running out of PTYs - I get an error message from `screen` "No More PTYs." - and I am nowhere near to using up all the PTYs. I have a total of 307 processes on the machine, of which roughly 100 are httpd processes, add to that another 20 or so for system items, and you are left with a worst case scenario of about 180 PTYs in use. However, in reality, most of the other processes are other daemons and programs. I suspect I am using _maybe_ 32 or so PTYs. ---- I have set up a laptop to test, and did the same things to it - set maxusers to 128, and built all the PTY devices in /dev, and I kept creating new screens over and over until I hit about 240 of them and the machine crashed....so what gives ? Why am I hitting a very low wall with PTYs on this machine ? I am happy to give out more information about the machine, just not sure what else would be useful. Many thanks, PT To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message