From: Theodore Tso <tytso@mit.edu>
To: George Spelvin <linux@horizon.com>
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [RFC 2/2] serial/8250.c: Use self-adjusting list for port poll order.
Date: Sun, 16 Nov 2008 11:49:54 -0500 [thread overview]
Message-ID: <20081116164954.GE6958@mit.edu> (raw)
In-Reply-To: <20081116152352.20261.qmail@science.horizon.com>
On Sun, Nov 16, 2008 at 10:23:52AM -0500, George Spelvin wrote:
> The goal is not fewer dropped characters (although there could be a small
> benefit in that direction), and it doesn't improve worst-case timing;
> the goal is to reduce the time spent in the interrupt handler _on average_
> and thereby make more CPU available for other work.
Have you actually measured how much CPU is currently being burned by
the interrupt handler? And does it actually make a difference with
your optimization? I did a lot of measurements of this back in the
day of the 40 MHz 386 and 16 serial ports running at 115kbps. CPU's
have gotten *so* much faster, and as you have pointed the out, the PCI
bus accesses are also faster (and on the ISA bus, given edge-triggered
interrupts, you have to scan all of the ports any way) --- so it's not
obvious to me that it's actually worth it.
There were programs to measure CPU overhead; they normally worked by
doing a certain amount of work (i.e., seeing how many interations of
some mathematical calculation) in a given amount of clock time both
with and without the serial ports being busy. It might be worthwhile
to see whether for your workload how measurrable the CPU reduction
really is, given modern hardware. I'm not convinced given the number
of Moore's law doublings since 1992, that it's really going to be
worth it for a rational number of serial ports being serviced by a
modern Linux machine.
- Ted
prev parent reply other threads:[~2008-11-16 16:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20081113150308.3590.qmail@science.horizon.com>
[not found] ` <20081114053042.11532.qmail@science.horizon.com>
2008-11-14 21:17 ` [RFC 1/2] serial/8250.c: Change to singly linked handler chain George Spelvin
[not found] ` <20081114053314.12093.qmail@science.horizon.com>
2008-11-14 21:34 ` [RFC 2/2] serial/8250.c: Use self-adjusting list for port poll order George Spelvin
2008-11-14 21:47 ` Alan Cox
2008-11-15 0:10 ` Theodore Tso
2008-11-16 15:23 ` George Spelvin
2008-11-16 15:51 ` Alan Cox
2008-11-16 16:57 ` George Spelvin
2008-11-16 16:23 ` Theodore Tso
2008-11-16 18:02 ` George Spelvin
2008-11-16 16:49 ` Theodore Tso [this message]
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=20081116164954.GE6958@mit.edu \
--to=tytso@mit.edu \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@horizon.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