Thread View: uk.comp.os.linux
9 messages
9 total messages
Started by Julie Brandon
Sat, 14 Mar 1998 00:00
Serial overruns & ppp - how do I know if I ever have them?
Author: Julie Brandon
Date: Sat, 14 Mar 1998 00:00
Date: Sat, 14 Mar 1998 00:00
66 lines
3605 bytes
3605 bytes
Okay, simple question! Linux v2.0.33 & pppd 2.2.0f with a external modem using hardware handshaking, and 115K2 data rate... How would I know if I am having serial overruns (i.e. not guessing from transfer speeds or pauses but actually *know*)? I'm trying to get our system flowing nicely under ppp, but I can't really tell whether or not I'm loosing out due to overruns. The not so simple bit! The background information; the reason I suspect overruns is as follows: I seem to have some very strange problems w.r.t. overruns using Linux, X2 48K connection & the USR BBS with Minicom -- with very fast transfers (i.e. very highly compressable data) I start getting, whenever the CPS is around 9000 or above and when the system writes the data to the hard-drive, overruns... ...what is strange about this is that it's... 1. hdparm & irqtune are set up accordingly. 2. for less than 9000cps, RX data xfer is *rock solid* -- I can do virtually anything with the computer and nothing nasty happens, no overruns etc. I can log onto X, start up netscape, frantically swap between text console and X, etc. etc. etc. and *no* overrun problems. 3. *other* hard-drive accesses doesn't cause problem, the problems pretty much *only* occur when the *downloaded* data is being written to the drive (X killing the system with memory swaps doesn't seem to hurt -- writing 9Kb/ps of the downloaded data on the otherhand *does*!) 4. changing the RX FIFO IRQ trigger level makes *no* difference (and this is a 16550A compat. UART) Hardware handshaking *is* definitely enabled. Having looked at serial.c etc. in the Linux kernel, I'm begining to get very suspicious. It looks to me like the design of serial handling under Linux doesn't really give the handling of hardware handshaking a particularly high priority. With the problems I am having it looks as if any idea with respect to perhaps lowering RTS (?) would always come much too late, i.e. the latency caused to the tasks that should be handling hardware handshaking induced by the respective disk writes is just too much. It seems that RTS could really do with being played with at a low/IRQ level, instead at such a high level? Am I talking complete rubbish here? Upgrading our hardware is not an option sadly (not unless there's a fantastic solution that involves a drop-in perfectly hardware/pin-compatible replacement for a 16550A chip that'll solve all the problems and doesn't cost an arm & a leg!). Anyone any thoughts/comments/ideas on this + also, of course, how to detect if serial overruns occur with ppp? Ta-ra, Julie. -- *** IMPORTANT: If replying, leave e-mail address as is, it's correct! *** "Here's a pin and here's a pingle, porcupines are always single, poor ol' 'pines they mustn't mingle, pingle pangle pingle." [singing] Marvellous Mouse Organ Mice (Bagpuss: 1970s UK Children's TV)
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: Richard Lamont
Date: Sat, 14 Mar 1998 00:00
Date: Sat, 14 Mar 1998 00:00
26 lines
1698 bytes
1698 bytes
In article <slrn6gljd1.q2.$julies/newsreply$@merp.demon.co.uk>, $julies/newsreply$@merp.demon.co.uk (Julie Brandon) writes: > Okay, simple question! Linux v2.0.33 & pppd 2.2.0f with a external > modem using hardware handshaking, and 115K2 data rate... > > How would I know if I am having serial overruns (i.e. not guessing > from transfer speeds or pauses but actually *know*)? > > I'm trying to get our system flowing nicely under ppp, but I can't > really tell whether or not I'm loosing out due to overruns. Surely ifconfig reports serial overruns? If you don't trust ifconfig, try downloading ftp.d.c.u/pub/test/regularfile. Assuming Demon's machine and network are working properly, which has been known on occasion, you should get 11 KB/sec download. Watch the RxD LED - it will be on solidly. A damaged packet or two will show. Using the hash option on the ftp client also gives a good indication of pauses. -- Richard Lamont richard@stonix.demon.co.uk http://www.stonix.demon.co.uk/
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: Julie Brandon
Date: Sun, 15 Mar 1998 00:00
Date: Sun, 15 Mar 1998 00:00
22 lines
1473 bytes
1473 bytes
On 14 Mar 1998 22:13:29 GMT, Richard Lamont did spake: >Surely ifconfig reports serial overruns? Didn't know - do now. *8-) > If you don't trust ifconfig, >try downloading ftp.d.c.u/pub/test/regularfile. Assuming Demon's >machine and network are working properly, which has been known on Thanks for the info. Last time I tried this, Demon's end was ****. *8-( Will do again though. Thanks again. Ta-ra, Julie. -- *** IMPORTANT: If replying, leave e-mail address as is, it's correct! *** "Here's a pin and here's a pingle, porcupines are always single, poor ol' 'pines they mustn't mingle, pingle pangle pingle." [singing] Marvellous Mouse Organ Mice (Bagpuss: 1970s UK Children's TV)
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: Nix
Date: Sun, 15 Mar 1998 00:00
Date: Sun, 15 Mar 1998 00:00
28 lines
1902 bytes
1902 bytes
In article <6eeve9$6l@stonix.demon.co.uk>,
Richard Lamont <richard@stonix.demon.co.uk> wrote:
>
>Surely ifconfig reports serial overruns?
It claims to, but it doesn't. I think this is because it's operating at
the wrong level. After all, it's designed to report overruns from Ethernet
cards and so forth, where the card can deliver data into Linux's internal
buffers far faster than the software can deal with it; here, the problem
is getting the data into Linux's buffers in the first place.
I think it's reporting overflows of those internal buffers (is it the TTY
flip buffer, or the TCP fragment reassembly queue? I've never quite worked
it out), not of the tiny FIFO inside the UART.
The easiest way to spot serial overflows is to not use irqtune and try
doing something that slams the disk at the same time as ftping something.
If the ftp transfer stops off dead when the disk access starts, you've got
overruns.[1]
[1] A tool like Andrew Bishop's ProcMeter (from
http://www.gedanken.demon.co.uk/) is damn useful for reporting packet
receive rates and interrupt levels - both of which tend to shadow
each other fairly closely when heavy serial comm is going on.
--
`Oooo! Saint Malcolm preserve us! This is heresy.'
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: Richard Lamont
Date: Sun, 15 Mar 1998 00:00
Date: Sun, 15 Mar 1998 00:00
20 lines
1414 bytes
1414 bytes
In article <slrn6go6pl.b4e.$julies/newsreply$@merp.demon.co.uk>, $julies/newsreply$@merp.demon.co.uk (Julie Brandon) writes: > On 14 Mar 1998 22:13:29 GMT, Richard Lamont did spake: > >> If you don't trust ifconfig, >>try downloading ftp.d.c.u/pub/test/regularfile. Assuming Demon's >>machine and network are working properly, which has been known on > > Thanks for the info. Last time I tried this, Demon's end was ****. > *8-( Will do again though. Last time I tried it, it was OK. I've just tried it again, and Demon's end was, as you put it, ****. -- Richard Lamont richard@stonix.demon.co.uk http://www.stonix.demon.co.uk/
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: Mark Brown
Date: Sun, 15 Mar 1998 00:00
Date: Sun, 15 Mar 1998 00:00
14 lines
1216 bytes
1216 bytes
Nix <$eri$@esperi.demon.co.uk> writes:
> The easiest way to spot serial overflows is to not use irqtune and try
> doing something that slams the disk at the same time as ftping something.
My memory may be faulty, but I believe that the kernel complains about
serial overruns in the kernel log (wherever that ends up on your
system).
--
Mark Brown mailto:broonie@tardis.ed.ac.uk (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFS http://www.ed.ac.uk/~filmsoc/
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: Julie Brandon
Date: Mon, 16 Mar 1998 00:00
Date: Mon, 16 Mar 1998 00:00
21 lines
1678 bytes
1678 bytes
On 15 Mar 1998 03:07:19 -0000, Nix did spake: >The easiest way to spot serial overflows is to not use irqtune and try >doing something that slams the disk at the same time as ftping something. >If the ftp transfer stops off dead when the disk access starts, you've got >overruns.[1] A bit of a haphazard guessing way to do it, surely? *8-( Not to mention the very real problem that we only get the overruns in *one* situation -- transfers above 9000cps + related disk accesses (not other general disc accesses). Below that, the computer can do what it darned well likes. Ta-ra, Julie. -- *** IMPORTANT: If replying, leave e-mail address as is, it's correct! *** "Here's a pin and here's a pingle, porcupines are always single, poor ol' 'pines they mustn't mingle, pingle pangle pingle." [singing] Marvellous Mouse Organ Mice (Bagpuss: 1970s UK Children's TV)
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: James Youngman
Date: Mon, 16 Mar 1998 00:00
Date: Mon, 16 Mar 1998 00:00
34 lines
1392 bytes
1392 bytes
If your serial port line discipline is "normal tty", then this
happens:-
/* linux/drivers/char/n_tty.c
*/
static inline void n_tty_receive_overrun(struct tty_struct *tty)
{
char buf[64];
tty->num_overrun++;
if (tty->overrun_time < (jiffies - HZ)) {
printk("%s: %d input overrun(s)\n", _tty_name(tty, buf),
tty->num_overrun);
tty->overrun_time = jiffies;
tty->num_overrun = 0;
}
}
For PPP, you may or may not get this warning (linux/drivers/net/ppp.c):-
if (ppp->toss) {
if (ppp->flags & SC_DEBUG)
printk (KERN_WARNING
"ppp_toss: tossing frame, reason = %d\n",
ppp->toss);
ppp->stats.ppp_ierrors++;
return 0;
}
Look for reason 4 (TTY_OVERRUN from serial.h)
Re: Serial overruns & ppp - how do I know if I ever have them?
Author: Richard Lamont
Date: Mon, 16 Mar 1998 00:00
Date: Mon, 16 Mar 1998 00:00
32 lines
2100 bytes
2100 bytes
In article <6ehi6s$6va@stonix.demon.co.uk>, richard@stonix.demon.co.uk (Richard Lamont) writes: > In article <slrn6go6pl.b4e.$julies/newsreply$@merp.demon.co.uk>, > $julies/newsreply$@merp.demon.co.uk (Julie Brandon) writes: >> On 14 Mar 1998 22:13:29 GMT, Richard Lamont did spake: >> >>> If you don't trust ifconfig, >>>try downloading ftp.d.c.u/pub/test/regularfile. Assuming Demon's >>>machine and network are working properly, which has been known on >> >> Thanks for the info. Last time I tried this, Demon's end was ****. >> *8-( Will do again though. > > Last time I tried it, it was OK. I've just tried it again, and > Demon's end was, as you put it, ****. I tried it this morning, when there were only 8 anonymous demon users, and it worked fine. One thing I forgot is that you need to use emptyfile4 so that tcp can get up to speed. With that I got 11KB/sec and no pauses at all on each of five consecutive attempts. On the first two nothing else was happening on machine, on the last three I used knews and netscape to rattle the disk. No change. BTW I still haven't bothered with irqtune [ ;-) ], but my modem port is on IRQ 2/9, which has fairly high priority by default IIRC. -- Richard Lamont richard@stonix.demon.co.uk http://www.stonix.demon.co.uk/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads