linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karsten Keil <kkeil@suse.de>
To: Stephan von Krawczynski <skraw@ithnet.com>
Cc: alan@lxorguk.ukuu.org.uk, kai@tp1.ruhr-uni-bochum.de,
	linux-kernel@vger.kernel.org
Subject: Re: ISDN massive packet drops while DVD burn/verify
Date: Mon, 5 May 2003 18:46:53 +0200	[thread overview]
Message-ID: <20030505164653.GA30015@pingi3.kke.suse.de> (raw)
In-Reply-To: <20030505173249.50a72df9.skraw@ithnet.com>

On Mon, May 05, 2003 at 05:32:49PM +0200, Stephan von Krawczynski wrote:
> On Mon, 5 May 2003 16:23:00 +0200
> Karsten Keil <kkeil@suse.de> wrote:
> 
> > Hi Stephan,
> 
> Hi Karsten,
> 
> long time no hear ;-)
> 

Yes.

> > > Sorry Alan, "been there, done that"
> > > I made ISDN work on just about anything that you would call an OS on
> > > sometimes quite ancient hardware (compared to nowadays), and I really
> > > cannot imagine that the combined (though sometimes confusing) efforts of
> > > you, Andre, Pavel, name-one on IDE made a dual 1.4 GHz PIII slower
> > > (responding) than a M68k 7,14 MHz with a polling IDE interface - which
> > > happens to be the slowest thing I ever did ISDN programming on
> > > _flawlessly_.
> > > 
> > 
> > No Alan and Kai are right.
> > 
> > The problem with the Infineon ISDN chips is that the fifos are small and so
> > IRQ latency is relativ critical. 32 or 64 bytes are only 4/8 ms, and if one
> > of these 32 Byte is dropped, the complete frame is lost. Modern ethernet
> > cards allways have fifos for multiple complete frames, so that such things
> > don't happen here.
> 
> I know the relatively small fifos. On the other hand compared to the ridiculous
> throughput of 8 kByte/sec (single channel) (which most people seem to ignore in
> this discussion), it is ok.

Again, the throughput doesn't matter so much.
The problem is latency and fifo size.
You lost a complete frame of 1500 Byte if one IRQ is missed and you need
about 46 IRQ per 1500 byte frame. So if you only miss 1% of RX IRQ, you
loose 33% of you troughput (every 3. frame).
On a High Speed Ethernet controller with 1% IRQ loss you don't see a effect,
since you loose also only 1%.
Thats why throughput doesn't matter in this case.

> 
> Let me simply ask back: is the IDE code in nowadays 2.4 kernel so bad, that a
> dual 1,4 GHz PIII cpu with 3 GB ram performs much worse than a 90 MHz P I with
> 64 MB and OS/2 on it???
> _My_ isdn drivers showed _no_ such problems under OS/2 and IDE load...
> 
> How did we manage to become that bad?

Its not so bad, the problem is how do you tune the system. If you prefer to
not interrupt the IDE transfers, which seems to be the default case, you
loose IRQ latency, which doesn't matter in much cases, but not on
this. You can tune it (hdparm work also with cdwriters, since
even if it use ide-scsi, the underlying driver is the ide driver.


> 
> > You can try to use HFC based ISDN cards (e.g. Conrad: ISDN TA 128K) the
> > fifos are much bigger (7.5kB) so at least 4 complete 1500 byte frames can be 
> > handled without segmentation. That increase the IRQ latency a lot (~900 ms).
> 
> I know HFC is nice. But that cannot mean ISAC/HSCX must have dropouts. You have
> to have long interrupt lock outs for such a behaviour, which cannot be intended
> at all.

Yes at least you must have 4+x ms interrupt lock outs, I didn't meassure it,
but reports show that hdparm -u1 helps in much cases. Note enabling IRQ
don't say that now the ISDN IRQ will handled, here maybe other IRQs with
higher priority which are served first and add extra latency.

This all don't say that here maybe also other problems around, but I have no
better explanation.

> 
> -- 
> Regards,
> Stephan

-- 
Karsten Keil
SuSE Labs
ISDN development

  reply	other threads:[~2003-05-05 16:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-16 13:12 ISDN massive packet drops while DVD burn/verify Stephan von Krawczynski
2003-04-18 14:25 ` Kai Germaschewski
2003-04-19 17:38   ` Stephan von Krawczynski
     [not found]     ` <20030419205000.A3541@skunk.physik.uni-erlangen.de>
2003-04-19 20:23       ` Stephan von Krawczynski
2003-04-19 22:01     ` Alan Cox
2003-04-20 16:18       ` Stephan von Krawczynski
2003-04-20 18:53         ` Alan Cox
2003-05-05 14:23         ` Karsten Keil
2003-05-05 15:32           ` Stephan von Krawczynski
2003-05-05 16:46             ` Karsten Keil [this message]
2003-05-05 17:26               ` Stephan von Krawczynski
2003-05-05 18:31                 ` Karsten Keil
2003-05-06 10:53                 ` Alan Cox
2003-05-06 12:39                   ` Stephan von Krawczynski
2003-05-06 12:56                     ` Alan Cox
2003-05-06 14:01                       ` Stephan von Krawczynski
2003-05-06 16:46                         ` Wolfgang Fritz
2003-05-06 14:13                       ` Mike Dresser
2003-05-06 13:06                     ` Karsten Keil
2003-05-06  9:52             ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030505164653.GA30015@pingi3.kke.suse.de \
    --to=kkeil@suse.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=kai@tp1.ruhr-uni-bochum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=skraw@ithnet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).