Re: How to increase the max pty's on Freebsd 7.0?

2009-04-08 Thread Bernd Walter
On Wed, Apr 08, 2009 at 12:43:53PM +0100, Max Laier wrote: > On Wednesday 08 April 2009 13:25:39 Bernd Walter wrote: > > On Thu, Apr 02, 2009 at 08:10:03AM +0200, Ed Schouten wrote: > > > * Paul Schenkeveld wrote: > > > > Or change 'pts' to, for example, 'pt' so without changing utmp and > > > > r

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-08 Thread Max Laier
On Wednesday 08 April 2009 13:25:39 Bernd Walter wrote: > On Thu, Apr 02, 2009 at 08:10:03AM +0200, Ed Schouten wrote: > > * Paul Schenkeveld wrote: > > > Or change 'pts' to, for example, 'pt' so without changing utmp and > > > related stuff we'll have space for a four digit pty number. > > > > I'

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-08 Thread Bernd Walter
On Thu, Apr 02, 2009 at 08:10:03AM +0200, Ed Schouten wrote: > * Paul Schenkeveld wrote: > > Or change 'pts' to, for example, 'pt' so without changing utmp and > > related stuff we'll have space for a four digit pty number. > > I've noticed lots of apps already misbehave because of the pty(4) ->

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-02 Thread Steven Hartland
Yep that's what I came up with after looking though the code thanks for the link though, always good to get confirmation that I didn't miss something. Regards Steve - Original Message - From: "John Baldwin" On Wednesday 01 April 2009 1:55:12 pm Steven Hartland wrote: How can

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-02 Thread John Baldwin
On Wednesday 01 April 2009 1:55:12 pm Steven Hartland wrote: > How can I increase the maximum number or ptys available on FreeBSD 7.0? > > It seems that currently the machine is maxing out at 512 but there is > still loads of capacity left on the machine. > > Ideally would like to double at least

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-02 Thread Steven Hartland
0n Wed, Apr 01, 2009 at 10:53:06PM +0200, Ed Schouten wrote: You can increase the maximum amount of PTYs by editing a lot of source files on your system. There is some good news: in -CURRENT we switched to Unix98-style PTYs (/dev/pts/%u). Right now the maximum amount of PTYs is limited to 1000 (0

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
Hi Alex, * Wilkinson, Alex wrote: > > 0n Wed, Apr 01, 2009 at 10:53:06PM +0200, Ed Schouten wrote: > > >You can increase the maximum amount of PTYs by editing a lot of source > >files on your system. There is some good news: in -CURRENT we switched > >to Unix98-style PTYs (/dev

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
* Paul Schenkeveld wrote: > Or change 'pts' to, for example, 'pt' so without changing utmp and > related stuff we'll have space for a four digit pty number. I've noticed lots of apps already misbehave because of the pty(4) -> pts(4) migration. I guess using a new naming scheme would totally break

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Wilkinson, Alex
0n Wed, Apr 01, 2009 at 10:53:06PM +0200, Ed Schouten wrote: >You can increase the maximum amount of PTYs by editing a lot of source >files on your system. There is some good news: in -CURRENT we switched >to Unix98-style PTYs (/dev/pts/%u). Right now the maximum amount of PTYs

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Paul Schenkeveld
On Wed, Apr 01, 2009 at 11:08:35PM +0200, Ed Schouten wrote: > Hi Kostik, > > * Kostik Belousov wrote: > > Can we switch to %x ? Or even, use some radix encoding of the number, > > to allow alphabetical symbols too ? > > I guess that would break a lot of existing libraries. For example: older >

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
* Ed Schouten wrote: > I also thought about that, but the risks are probably too high. I think > it's better to just redesign our utmp/wtmp/lastlog system. I guess we > could do something like this: I forgot one step: > - Implement utmpx. At first utmpx should just be a set of wrappers > aroun

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
Hi Kostik, * Kostik Belousov wrote: > Can we switch to %x ? Or even, use some radix encoding of the number, > to allow alphabetical symbols too ? I guess that would break a lot of existing libraries. For example: older RELENG_7/CURRENT libcs might still use TIOCGPTN. This ioctl just returns a nu

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Kostik Belousov
On Wed, Apr 01, 2009 at 10:53:06PM +0200, Ed Schouten wrote: > Hi Steven, > > * Steven Hartland wrote: > > How can I increase the maximum number or ptys available on FreeBSD 7.0? > > > > It seems that currently the machine is maxing out at 512 but there is > > still loads of capacity left on the

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
Hi Steven, * Steven Hartland wrote: > How can I increase the maximum number or ptys available on FreeBSD 7.0? > > It seems that currently the machine is maxing out at 512 but there is > still loads of capacity left on the machine. > > Ideally would like to double at least the number of ttys avail

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Steven Hartland
I knew his sounded very familiar, seems I asked the same question back in 2007 for 5.4 just it was capped at 256: http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2007-October/021852.html I'm sure I also remember saying this limit had been removed in 7.x but looking in the source for pqrsPQ

How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Steven Hartland
How can I increase the maximum number or ptys available on FreeBSD 7.0? It seems that currently the machine is maxing out at 512 but there is still loads of capacity left on the machine. Ideally would like to double at least the number of ttys available, any help would be most appreciated. R