From owner-freebsd-hackers Thu Dec 31 18:35:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA21767 for freebsd-hackers-outgoing; Thu, 31 Dec 1998 18:35:08 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail1.its.rpi.edu (mail1.its.rpi.edu [128.113.100.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA21752; Thu, 31 Dec 1998 18:35:04 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail1.its.rpi.edu (8.8.8/8.8.6) with ESMTP id VAA29508; Thu, 31 Dec 1998 21:36:02 -0500 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: drosih@pop1.rpi.edu Message-Id: In-Reply-To: <199812262138.WAA04817@ywing.creative.net.au> Date: Thu, 31 Dec 1998 21:34:36 -0500 To: adrian@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG From: Garance A Drosihn Subject: Re: auto-allocation of ptys Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 10:38 PM +0100 12/26/98, adrian@FreeBSD.ORG wrote: > I got sick of running out of ptys while running X, and having to > result in rebuilding a kernel with more ptys enabled. > > So, I modified sys/kern/tty_pty.c to dynamically allocate pt_ioctl > and tty structs when a pty access is made. > This patch breaks pstat -t (strangely enough :) ... > It also will break devfs - I'm sure a devfs solution could be nutted > out, but I'm still looking at it atm, ... > The upshoot of all this of course is that you don't have to rebuild > your kernel whenever you need more ptys. :-) > (patch is at http://www.freebsd.org/~adrian/tty_pty.c.diff ) > Does anyone want to take a look at the idea and comment on it ? I haven't looked at it, and wouldn't know enough about the internals to comment on it at that level anyway. Still, I'm always willing to comment on interesting ideas, even if I don't know the details :-) I like the idea of not having to rebuild the kernel, but somehow I'm not too comfortable with them being dynamic either. Would it be easier (on things like 'pstat' and devfs) if it were a fixed number that was settable at bootup? That way it would only be a system reboot, instead of a kernel rebuild. Just my 2 cents... --- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu Senior Systems Programmer or drosih@rpi.edu Rensselaer Polytechnic Institute To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message