sio: tty-level overflow during user-level PPP connect

sio: tty-level overflow during user-level PPP connect

Post by Daniel Aust » Tue, 11 Nov 1997 04:00:00



I've installed FreeBSD 2.2.5 on a 50Mhz 486 DX2 (12 Mb RAM).
During the install, I used the provided PPP interface (ppp0)
and got 3.2 Kb/sec throughput with my Netcomm 34F modem. I
used a line speed of 115K. All went well. Congrats to the FreeBSD
team on a very smooth install routine (well, I had some probs
but they were my fault!).

After installation and reboot I configured my machine to use
user-level PPP to dial in to my ISP. It connects fine and I
can ping remote hosts and telnet to them.

I tried to FTP a file however and got numerous sio errors
relating to "tty-level buffer overflows". My com port is
id'd by the kernel as a 16550A. When I ping'd the host, things
were fine, but if I used packet sizes greater than 4K, I got:

        /kernel: sio0: 1221 more tty-level buffer overflows ...

In my ppp.conf, I had put "set line 115200", which was what I used
during the install (which went fine, and had no overflows). I
decreased the line speed to 57K, then 38K, then 28K and finally
14.4K before the buffer overflows disappeared completely. I
know get throughput of around 0.5 Kb/sec. Yuk!

The sio man page said a tty-level overflow was when the client
couldn't fetch the data out of the sio buffer quick enough.
The machine is not heavily loaded. Since I can use the 34K
modem under OS/2 Warp with a line speed of at least 57K, I
thought FreeBSD should be able to. So what am I doing wrong?

Is kernel level PPP quicker? (It will still use sio0 though,
won't it?) If 115K line speed and 3.2 Kb/sec is possible
during install, why doesn't it work now? Can anyone help?

Please e-mail suggestions as beofre, and I will post a summary
back to the group.

Dan

 
 
 

sio: tty-level overflow during user-level PPP connect

Post by Brian Some » Wed, 12 Nov 1997 04:00:00


[Posted and mailed]



 : I've installed FreeBSD 2.2.5 on a 50Mhz 486 DX2 (12 Mb RAM).
 : During the install, I used the provided PPP interface (ppp0)

AFAIK, the installation stuff uses ppp over tun0.

 : and got 3.2 Kb/sec throughput with my Netcomm 34F modem. I
 : used a line speed of 115K. All went well. Congrats to the FreeBSD
 : team on a very smooth install routine (well, I had some probs
 : but they were my fault!).
 :
 : After installation and reboot I configured my machine to use
 : user-level PPP to dial in to my ISP. It connects fine and I
 : can ping remote hosts and telnet to them.
 :
 : I tried to FTP a file however and got numerous sio errors
 : relating to "tty-level buffer overflows". My com port is
 : id'd by the kernel as a 16550A. When I ping'd the host, things
 : were fine, but if I used packet sizes greater than 4K, I got:
 :
 :      /kernel: sio0: 1221 more tty-level buffer overflows ...

Hmm, this is normally due to a dodgy UART or a flow control problem.

 : In my ppp.conf, I had put "set line 115200", which was what I used
 : during the install (which went fine, and had no overflows). I
 : decreased the line speed to 57K, then 38K, then 28K and finally
 : 14.4K before the buffer overflows disappeared completely. I
 : know get throughput of around 0.5 Kb/sec. Yuk!

Looks like flow control :-|

 : The sio man page said a tty-level overflow was when the client
 : couldn't fetch the data out of the sio buffer quick enough.
 : The machine is not heavily loaded. Since I can use the 34K
 : modem under OS/2 Warp with a line speed of at least 57K, I
 : thought FreeBSD should be able to. So what am I doing wrong?
 :
 : Is kernel level PPP quicker? (It will still use sio0 though,
 : won't it?) If 115K line speed and 3.2 Kb/sec is possible
 : during install, why doesn't it work now? Can anyone help?
 :
 : Please e-mail suggestions as beofre, and I will post a summary
 : back to the group.

Make sure that your modem is talking RTS/CTS and that your port is
stty'd with crtscts.

 : Dan
 :

--

      <http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour !

 
 
 

sio: tty-level overflow during user-level PPP connect

Post by Daniel Aust » Tue, 18 Nov 1997 04:00:00


: [problems with sio buffer overflows]

I've solved my little problem with help from some FreeBSD users. Many
thanks (sorry - I don't have names handy). If anyone else has sio
problems, try these:

1. Make sure ctsrts option is set in your PPP config file.
   ("set ctsrts on" in your /etc/ppp/ppp.conf file) Use
   "stty -f DEVICE" to check, where DEVICE is the /dev
   device your modem hangs off.

2. Make sure your modem is using ctsrts flow control and not xon/xoff
   or no flow control. Save the setting so it is used by default on
   power on. This is not the same as 1 (*oops* :-) ).

3. Double check for IRQ/IO port/DMA conflicts.

4. Check for faulty hardware using a good diagnostics tool and
   loop-back connectors for the COM port. Check for genuine
   16550A and not plain old 16550.

If all else fails it was reccommended to upgrade to 2.2-STABLE,
altho I've got 2.2.5-RELEASE working OK now.

Anyway, thanks again to those who responded.

Dan

 
 
 

1. tty-level buffer overflows

First, I'm in process of moving and won't have access to news for a

miss any responses.  Thanks.

Need some advice...  :(

I recently replaced my P120 with a P166MMX on my ASUS P/I-P55T2P4
mother board running:

FreeBSD 2.1.5-RELEASE #0: Mon Sep  7 20:17:05 EDT 1998

CPU: 166-MHz Pentium  (Pentium-class CPU)
  Origin = "GenuineIntel"  Id = 0x543  Stepping=3
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 50331648 (49152K bytes)
avail memory = 46784512 (45688K bytes)

XFree86 Version 3.1.2 / X Window System
(protocol Version 11, revision 0, vendor release 6001)
Operating System: FreeBSD 2.0.5
Configured drivers:
  S3: accelerated server for S3 graphics adaptors (Patchlevel 0)
      mmio_928, s3_generic

Number Nine FX Motion 771

Ever since I did so I've been getting many and frequent sio errors
(line wrapped for readability):

Nov  8 11:09:52 quail /kernel: sio0: 26 more tty-level buffer
overflows (total 3770)

Please let me know if I haven't provided enough information of if
I've provided the wrong information.

Thanks for any suggestions...

--
NB:  While I welcome reasonable and relevant e-mail responses, any
e-mail with a *long* "To: list" or any mailing list will be treated
as spam and reported to the sender's ISP.
--
Best regards,

Charlie "Older than dirt" Sorsby    San Antonio, NM    "I'm the NRA!"

2. ext2 access to ntfs

3. Accessing memory above linux kernel load address

4. tty level buffer overflows

5. ipmasqadm question

6. sio1 keeps getting interrupt-level buffer overflows during modem connections

7. What does "rpc.lockd: unable to do cnvt" indicate?

8. VisionFS Share level vs user level Domain authentication

9. Calling kernel level function from user level program

10. Firewalling at the domain users level instead of network level

11. How can I make the signal solution....to user level..from kernel level

12. FreeBSD user-level PPP (iijppp) times out