Re: can't change tty speed and buffer size on 8.0

2009-10-12 Thread Mikolaj Golub
On Mon, 12 Oct 2009 16:26:54 -0700 Doug Barton wrote: > Mikolaj Golub wrote: >> Hi, >> >> On 8.0-RC1 if you run this command: >> >> cat > /dev/null >> >> and try to input a long line, the maximum length you can input is 1920 >> characters. >> >> I have investigated a bit how I can increase a t

Re: can't change tty speed and buffer size on 8.0

2009-10-12 Thread Doug Barton
Mikolaj Golub wrote: > Hi, > > On 8.0-RC1 if you run this command: > > cat > /dev/null > > and try to input a long line, the maximum length you can input is 1920 > characters. > > I have investigated a bit how I can increase a tty buffer as this is a problem > for me (I have logs with very long

Re: can't change tty speed and buffer size on 8.0

2009-10-12 Thread Mikolaj Golub
On Mon, 12 Oct 2009 09:08:29 +0200 Ed Schouten wrote: > * Mikolaj Golub wrote: >> So 115200/5=23040 would be more then enough for me :-) > > Great. I've attached a patch that should allow the buffer size to be > configured. Unfortunately gettytab currently sets the baud rate to > 115200, which me

Re: can't change tty speed and buffer size on 8.0

2009-10-12 Thread Ed Schouten
* Mikolaj Golub wrote: > So 115200/5=23040 would be more then enough for me :-) Great. I've attached a patch that should allow the buffer size to be configured. Unfortunately gettytab currently sets the baud rate to 115200, which means we'll always use buffer sizes. I think we'd better just remov

Re: can't change tty speed and buffer size on 8.0

2009-10-11 Thread Mikolaj Golub
On Sun, 11 Oct 2009 22:17:15 +0200 Ed Schouten wrote: > Hello Mikolaj, > > It is indeed true that the new TTY layer restricts the baud rate to > 9600. We could consider clamping the baud rate between a certain range, > to prevent the TTY buffer size from growing excessively. > > So what kind of bu

Re: can't change tty speed and buffer size on 8.0

2009-10-11 Thread Ed Schouten
Hello Mikolaj, It is indeed true that the new TTY layer restricts the baud rate to 9600. We could consider clamping the baud rate between a certain range, to prevent the TTY buffer size from growing excessively. So what kind of buffer size are you interested in? Would 115200 / 5 be enough? --

Re: can't change tty speed and buffer size on 8.0

2009-10-11 Thread Mikolaj Golub
On Sun, 11 Oct 2009 13:51:09 +0300 Mikolaj Golub wrote: MG> So to increase the buffer size I need to decrease tty speed. Sorry, of course I meant "to increase tty speed" :-). -- Mikolaj Golub ___ freebsd-stable@freebsd.org mailing list http://lists.

can't change tty speed and buffer size on 8.0

2009-10-11 Thread Mikolaj Golub
Hi, On 8.0-RC1 if you run this command: cat > /dev/null and try to input a long line, the maximum length you can input is 1920 characters. I have investigated a bit how I can increase a tty buffer as this is a problem for me (I have logs with very long lines and I used to copy&past a particular