From owner-freebsd-questions Wed Oct 15 00:04:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA23858 for questions-outgoing; Wed, 15 Oct 1997 00:04:32 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from shell.futuresouth.com (shell.futuresouth.com [207.141.254.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA23853 for ; Wed, 15 Oct 1997 00:04:28 -0700 (PDT) (envelope-from fullermd@futuresouth.com) Received: from shell.futuresouth.com (mail.futuresouth.com [207.141.254.21]) by shell.futuresouth.com (8.8.5/8.8.5) with SMTP id CAA00605; Wed, 15 Oct 1997 02:04:15 -0500 (CDT) Date: Wed, 15 Oct 1997 02:04:15 -0500 (CDT) From: "Matthew D. Fuller" To: Greg Lehey cc: parrothd@midwest.net, freebsd-questions@FreeBSD.ORG Subject: Re: tty-level buffer overflows In-Reply-To: <19971015145606.47003@lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 15 Oct 1997, Greg Lehey wrote: > On Wed, Oct 15, 1997 at 12:19:14AM -0500, Matthew D. Fuller wrote: > > > > I had a problem with overflows. > > I have a 28.8 modem, and if I set the port speed to 115200, I get > > overflows over-flowing on my xconsole. But only on incoming packets, > > which would seem to me to be the opposite of what you'd expect. > > It's certainly what I would expect. It's impossible to get overflows > on outgoing packets unless the driver is programmed wrong. There is that... I was thinking something weird involving a permutation of... nevermind. > > > If I set it to 28800, no problems. If I set it to 14400, no > > problems. I know it's not my system that's slow; Cyrix 6x86 166, 72 > > megs RAM, the serial ports are both 16550. > > What happens if you set the port speed to 57600? If that works, that > should be enough for you. Otherwise you should check your cabling and > modem setup. You should be using hardware handshake. Check this > excerpt from "The Complete FreeBSD": > > If you look at this profile, you'll notice that the active profile includes the > parameter &K4. This means ``use XON/XOFF flow control''. This is not > desirable: it's better to use RTS/CTS flow control. To fix it, > OK; maybe I did use bad phrasing... Both serial ports REPORT 16550. cuaa1 is an internal 28.8 modem. I can't look at my modem's settings now, obviously, since I'm PPP'd into my ISP, but when I do this: PPP ON mortis> show modem device: /dev/cuaa1 speed:28800 cs8, no parity, CTS/RTS on. (blah blah blah) doesn't that mean that it is enabled at all levels? I don't think this is a big problem either way; my ISA bus isn't exactly overflowing, so I don't think I gain much speed or reliability my having compression to my modem, but I'm not too knowledgeable about bus issues anyway, so... Thoughts, anyone? *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | FreeBSD; the way computers were meant to be | * "The only reason I'm burning my candle at both ends, is * | that I haven't figured out how to light the middle yet."| * fullermd@futuresouth.com :-} MAtthew Fuller * | http://keystone.westminster.edu/~fullermd | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*