From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,17c387ad7b9f0c2,start X-Google-Attributes: gidfee84,public From: Art Werschulz Subject: ptys Date: 1998/06/04 Message-ID: #1/1 X-Deja-AN: 359532536 Organization: Fordham University/FCLC Newsgroups: comp.unix.osf.osf1 Hi. We are running DU 4.0 on a DEC AlphaServer 1000. Last night, when about 15 students were simultaneously logged in on exploras and running script, they started getting error messages "no more ptys." Examination of /dev revealed 64 files with names pty[n-q][0-9a-f]. Thinking that perhaps each student could be using several pty's in /dev, we tried creating more pty's. In MAKEDEV there are some convenience targets to create groups of pty's, so assuming PTY_1 was already made, we did ``MAKEDEV PTY_2''. This created 336 files with names pty[A-U][0-9a-f]. The problem persisted, however, until we rebooted. Must the kernel be reconfigured with more ptys? We tried reading manpages, but did not find anything that said what to do to increase the usable number of pty's. Rebooting may have helped merely by bumping off yourself and a couple other idle users. In fact, after the class got back on, things were OK for awhile, but when we tried to fire up an xterm on the DU box from another machine it said "no more ptys" for us. So we suspect a kernel config setting has to be upped. We looked in /usr/sys , but all we found was pty.h, which contains the one line #define NPTY 0 Thanks. -- Art Werschulz (8-{)} "Metaphors be with you." -- bumper sticker GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y? Net: agw@dsm.fordham.edu WWW Phone: Fordham U. (212) 636-6325, Columbia U. (212) 939-7061 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,17c387ad7b9f0c2 X-Google-Attributes: gidfee84,public From: Timo Felbinger Subject: Re: ptys Date: 1998/06/05 Message-ID: #1/1 X-Deja-AN: 359786145 References: To: Art Werschulz Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: University of Potsdam Mime-Version: 1.0 Reply-To: Timo.Felbinger@quantum.physik.uni-potsdam.de Newsgroups: comp.unix.osf.osf1 On 4 Jun 1998, Art Werschulz wrote: > Hi. > > We are running DU 4.0 on a DEC AlphaServer 1000. > > Last night, when about 15 students were simultaneously logged in on > exploras and running script, they started getting error messages "no > more ptys." Examination of /dev revealed 64 files with names > pty[n-q][0-9a-f]. Thinking that perhaps each student could be using > several pty's in /dev, we tried creating more pty's. In MAKEDEV there Did you remove the SUID root flag from xterm? This caused the same strange spurious errors to me. It does not seem to be related to the number of pty's in /dev; rather, xterm on DU seems to need root privileges on rare occasions (it will run without the SUID flag most of the time). Can anyone come up with an explanation for this? xterm under Linux, for example, works perfect without any root privileges (and I use _lots_ of xterms simultaneously, frequently more then 64; I still wonder why they ship it SUID root). Regards, Timo