Re: Out of pty's

2003-12-07 Thread Malcolm Kay
On Sun, 7 Dec 2003 14:42, Justin Burke wrote:
 * Malcolm Kay ([EMAIL PROTECTED]) wrote:
   1. Build and install a new kernel with the line
  
pseudo-device pty 256
  
  in the configuration file.
  
   2. Run the commands
 
  I believe this may be out of date. I think the kernel may now
  produce 256 by default -- I'm on 4.7-STABLE and more than 32 exist for
  me.

 More than 32 may exist, but can you actually use them? 96 ptys currently
 exist on my system, but I can only use 32. The pseudo-device line in my
 kernel is the default (ie.  no numeric value is provided).


There is also no numeric value in the relevant line of my kernel config.

I would think that if you can't use ptys they don't exist -- but you might 
still have references to non-existing ptys in /dev/

Are they listed in /etc/ttys? -- apparently this is needed for some 
applications to know they exist.

My check for real existance of ptyq0/ttyq0 was to enter
# cat /dev/ttyq0
in one console window and
# echo fred  /dev/ptyq0
in another.
'fred' then appears in the first window and both commands complete.

I would have thought this was pretty strong evidence that at least this 
master/slave pair actually existed.

(I understand that xterm will not find all 256 ptys -- apparently some 
limitation in xterm -- but should be able to find at least 64.)


Malcolm Kay



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of pty's

2003-12-06 Thread Justin Burke
* Lee Harr ([EMAIL PROTECTED]) wrote:
 How do I find out the limit of ptys on my system? (sysctl doesn't
 seem to show anything relevant.)
 
 How do I increase that value? The pseudo-pty value in the kernel config
 has no assigned value (ie. we are using the default) but what is the
 default?
 
 
 Which version of FreeBSD?

4.9-PRERELEASE


 I had a similar problem on my 4.9-stable box. What I did was use
 /dev/MAKEDEV to create some more pty devices.
 
 ls /dev/pty*
 
 will show you how many you have, then
 
 /dev/MAKEDEV pty1   (can also use pty2 pty3 pty4 etc)
 
 will create more.

It seems that creating the devices isn't the problem. I just can't get
screen and ssh to actually use those ptys. I'm going just rebuild the
kernel with modification suggested in the FAQ.


Justin

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of pty's

2003-12-06 Thread Justin Burke
* Malcolm Kay ([EMAIL PROTECTED]) wrote:
  1. Build and install a new kernel with the line
 
   pseudo-device pty 256
 
 in the configuration file.
 
  2. Run the commands
 
 
 I believe this may be out of date. I think the kernel may now
 produce 256 by default -- I'm on 4.7-STABLE and more than 32 exist for me.

More than 32 may exist, but can you actually use them? 96 ptys currently
exist on my system, but I can only use 32. The pseudo-device line in my
kernel is the default (ie.  no numeric value is provided).


   # cd /dev
   # sh MAKEDEV pty{1,2,3,4,5,6,7}
 
 to make 256 device nodes for the new terminals.
 
 
 On 4.x certainly need this to create more devices. I don't know if you need to 
 do something with devfs in 5.x, but 5.x doesn't have MAKEDEV.

This seems to be the case on my 5.1 box. The ptys are automatically
created. And the pty limit has been bummed up to 256 in the default
config. (Just checked it with multiple instances of screen)


Justin

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Out of pty's

2003-12-04 Thread Justin Burke
Hi All,

Looks like my system is running out of free pty's. There are a bunch of
users on the system running screen, so we are using up a ton of the
ptys. 

How do I find out the limit of ptys on my system? (sysctl doesn't
seem to show anything relevant.) 

How do I increase that value? The pseudo-pty value in the kernel config
has no assigned value (ie. we are using the default) but what is the
default?


TIA,
Justin

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of pty's

2003-12-04 Thread Jez Hancock
On Thu, Dec 04, 2003 at 01:28:36PM -0800, Justin Burke wrote:
 Looks like my system is running out of free pty's. There are a bunch of
 users on the system running screen, so we are using up a ton of the
 ptys. 
 
 How do I find out the limit of ptys on my system? (sysctl doesn't
 seem to show anything relevant.) 
I believe you can increase the number of ptys by modifying /etc/ttys -
from looking at my /etc/ttys file it looks as though once the ttyp* ttys
are used up, the tty monniker changes to ttyq* etc...

 How do I increase that value? The pseudo-pty value in the kernel config
 has no assigned value (ie. we are using the default) but what is the
 default?
Again I believe this is down to /etc/ttys.


-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of pty's

2003-12-04 Thread Justin Burke
* Jez Hancock ([EMAIL PROTECTED]) wrote:
 On Thu, Dec 04, 2003 at 01:28:36PM -0800, Justin Burke wrote:
  Looks like my system is running out of free pty's. There are a bunch of
  users on the system running screen, so we are using up a ton of the
  ptys. 
  
  How do I find out the limit of ptys on my system? (sysctl doesn't
  seem to show anything relevant.) 
 I believe you can increase the number of ptys by modifying /etc/ttys -
 from looking at my /etc/ttys file it looks as though once the ttyp* ttys
 are used up, the tty monniker changes to ttyq* etc...
 
  How do I increase that value? The pseudo-pty value in the kernel config
  has no assigned value (ie. we are using the default) but what is the
  default?
 Again I believe this is down to /etc/ttys.


Hi Jez,

/etc/ttys lists a ton of pseudo terminals, which is great. However,
after opening up 32 pseudo terminals (/dev/ptyp[0-9] and
/dev/ptyp[a-v]]), none of the other terminals are used (eg. /dev/ptyq*).
How do I get the system to start using those devices?

(The /etc/ttys entries for /dev/ttyp* are identical to the /dev/ttyq*
entries.)


Justin

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Out of pty's

2003-12-04 Thread Lee Harr
Looks like my system is running out of free pty's. There are a bunch of
users on the system running screen, so we are using up a ton of the
ptys.
How do I find out the limit of ptys on my system? (sysctl doesn't
seem to show anything relevant.)
How do I increase that value? The pseudo-pty value in the kernel config
has no assigned value (ie. we are using the default) but what is the
default?
Which version of FreeBSD?

I had a similar problem on my 4.9-stable box. What I did was use
/dev/MAKEDEV to create some more pty devices.
ls /dev/pty*

will show you how many you have, then

/dev/MAKEDEV pty1   (can also use pty2 pty3 pty4 etc)

will create more.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of pty's

2003-12-04 Thread Jez Hancock
On Thu, Dec 04, 2003 at 03:25:54PM -0800, Justin Burke wrote:
 /etc/ttys lists a ton of pseudo terminals, which is great. However,
 after opening up 32 pseudo terminals (/dev/ptyp[0-9] and
 /dev/ptyp[a-v]]), none of the other terminals are used (eg. /dev/ptyq*).
 How do I get the system to start using those devices?
Sorry to hear that - I've never gotten that many ttys used up :P  I
could try it now I suppose with screen...

Mmm I see what you mean, I get up to ttypv as well and then it complains
no more ttys :(

Sorry I'm not sure about that then... anyone else know?

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Out of pty's

2003-12-04 Thread DG
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Jez Hancock
 Sent: Friday, 5 December 2003 10:46 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Out of pty's


 On Thu, Dec 04, 2003 at 03:25:54PM -0800, Justin Burke wrote:
  /etc/ttys lists a ton of pseudo terminals, which is great. However,
  after opening up 32 pseudo terminals (/dev/ptyp[0-9] and
  /dev/ptyp[a-v]]), none of the other terminals are used (eg.
 /dev/ptyq*).
  How do I get the system to start using those devices?
 Sorry to hear that - I've never gotten that many ttys used up :P  I
 could try it now I suppose with screen...

 Mmm I see what you mean, I get up to ttypv as well and then
 it complains
 no more ttys :(

 Sorry I'm not sure about that then... anyone else know?

 --
 Jez Hancock
  - System Administrator / PHP Developer

This is covered in the FAQ:

10.19. How do I add pseudoterminals to the system?

   If you have lots of telnet, ssh, X, or screen users, you will probably
run
   out of pseudoterminals. Here is how to add more:

1. Build and install a new kernel with the line

 pseudo-device pty 256

   in the configuration file.

2. Run the commands

 # cd /dev
 # sh MAKEDEV pty{1,2,3,4,5,6,7}

   to make 256 device nodes for the new terminals.

3. Edit /etc/ttys and add lines for each of the 256 terminals. They
   should match the form of the existing entries, i.e. they look like

 ttyqc none network

   The order of the letter designations is tty[pqrsPQRS][0-9a-v], using
a
   regular expression.

4. Reboot the system with the new kernel and you are ready to go.

Dave

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of pty's

2003-12-04 Thread Malcolm Kay
On Fri, 5 Dec 2003 10:30, DG wrote:
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Jez Hancock
  Sent: Friday, 5 December 2003 10:46 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Out of pty's
 
  On Thu, Dec 04, 2003 at 03:25:54PM -0800, Justin Burke wrote:
   /etc/ttys lists a ton of pseudo terminals, which is great. However,
   after opening up 32 pseudo terminals (/dev/ptyp[0-9] and
   /dev/ptyp[a-v]]), none of the other terminals are used (eg.
 
  /dev/ptyq*).
 
   How do I get the system to start using those devices?
 
  Sorry to hear that - I've never gotten that many ttys used up :P  I
  could try it now I suppose with screen...
 
  Mmm I see what you mean, I get up to ttypv as well and then
  it complains
  no more ttys :(
 
  Sorry I'm not sure about that then... anyone else know?
 
  --
  Jez Hancock
   - System Administrator / PHP Developer

 This is covered in the FAQ:

 10.19. How do I add pseudoterminals to the system?

If you have lots of telnet, ssh, X, or screen users, you will probably
 run
out of pseudoterminals. Here is how to add more:

 1. Build and install a new kernel with the line

  pseudo-device pty 256

in the configuration file.

 2. Run the commands


I believe this may be out of date. I think the kernel may now
produce 256 by default -- I'm on 4.7-STABLE and more than 32 exist for me.

  # cd /dev
  # sh MAKEDEV pty{1,2,3,4,5,6,7}

to make 256 device nodes for the new terminals.


On 4.x certainly need this to create more devices. I don't know if you need to 
do something with devfs in 5.x, but 5.x doesn't have MAKEDEV.

 3. Edit /etc/ttys and add lines for each of the 256 terminals. They
should match the form of the existing entries, i.e. they look like

  ttyqc none network

The order of the letter designations is tty[pqrsPQRS][0-9a-v], using
 a
regular expression.

I found these already in my default ttys


 4. Reboot the system with the new kernel and you are ready to go.

 Dave


Malcolm
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]