From: Rogier Wolff <R.E.Wolff@BitWizard.nl>
To: yodaiken@fsmlabs.com
Cc: "Richard B. Johnson" <root@chaos.analogic.com>,
Mark Hounschell <markh@compro.net>,
"Wessler, Siegfried" <Siegfried.Wessler@de.hbm.com>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: interrupt latency
Date: Wed, 28 Aug 2002 00:47:06 +0200 [thread overview]
Message-ID: <20020828004705.A24712@bitwizard.nl> (raw)
In-Reply-To: <20020827145631.B877@hq.fsmlabs.com>
On Tue, Aug 27, 2002 at 02:56:31PM -0600, yodaiken@fsmlabs.com wrote:
> > No. You can easily read into memory 75,000 bytes per second from the
> > parallel port, hell RS-232C will do 22,400++ bytes per second (224,000
> > baud) on a Windows machine, done all the while to feed a PROM burner. I
>
> You can do it in a tight loop. But you cannot do it otherwise. RS232 works
> because most UARTs have fifo buffers. Old Windows did pretty well, because
> you could grab the machine and let nothing else happen.
>
> What makes me dubious about your claim is that it is easy to test
> and see that a single ISA operation can take 18 microseconds
> on most PC hardware.
>
> try:
> cli
> loop:
> read tsc
> inb
> read tsc
> compute difference
> print worst case every 1000000 times.
>
> sti
>
> run for an hour on a busy machine.
That machine won't be busy if you disable interrupts for an hour... :-)
I have benchmarked a Linux system (probably 2.0 era!) to handle
about 140k interrupts per second. I was NOT worried about missing
one interrupt. We would see userspace significantly slowing down
around 120k interrupts per second, and at around 140k interrupts
per second, the machine would grind to a halt. Until you turned
the interrupt generator back down below the limit.
This was with a 120MHz Pentium.
I wouldn't be surprised if you could handle around 75k interrrupts
per second without missing one if all other interrupts are behaving.
(i.e. don't disable interrupts for more than 7 us).
(Of course pulling in 163 Mb per second over an ordinary 33MHz 32bit
PCI bus is impossible, and quite difficult on 33MHz/64bit or 66MHz/32bit
and doable on 66MHz/64bit).
Roger.
--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots.
* There are also old, bald pilots.
next prev parent reply other threads:[~2002-08-27 22:43 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-27 9:58 interrupt latency Wessler, Siegfried
2002-08-27 14:11 ` Stephen Samuel
2002-08-27 17:16 ` Robert Schwebel
2002-08-27 21:44 ` Stephen Samuel
2002-08-27 17:41 ` Mark Hounschell
2002-08-27 18:01 ` Richard B. Johnson
2002-08-27 19:54 ` yodaiken
2002-08-27 20:44 ` Richard B. Johnson
2002-08-27 20:56 ` yodaiken
2002-08-27 22:47 ` Rogier Wolff [this message]
2002-08-28 12:18 ` Richard B. Johnson
2002-08-28 13:41 ` yodaiken
2002-08-28 14:25 ` Jonathan Lundell
2002-08-28 13:53 ` yodaiken
2002-08-28 15:02 ` Richard B. Johnson
2002-08-28 15:19 ` yodaiken
2002-08-28 15:31 ` Alan Cox
2002-08-28 15:37 ` Richard B. Johnson
2002-08-28 16:53 ` Randy.Dunlap
2002-08-28 12:42 ` Pavel Machek
2002-08-27 18:05 ` Dag Nygren
-- strict thread matches above, loose matches on Subject: below --
2002-10-30 23:50 Keith Adamson
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=20020828004705.A24712@bitwizard.nl \
--to=r.e.wolff@bitwizard.nl \
--cc=Siegfried.Wessler@de.hbm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=markh@compro.net \
--cc=root@chaos.analogic.com \
--cc=yodaiken@fsmlabs.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