From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Greg Lee <glee@swspec.com>
Cc: linux-kernel@vger.kernel.org, rmk+kernel@arm.linux.org.uk
Subject: Re: HZ != 1000 causes problem with serial device shown by git-bisect
Date: Tue, 28 Mar 2006 15:13:53 +0100 [thread overview]
Message-ID: <1143555233.17522.23.camel@localhost.localdomain> (raw)
In-Reply-To: <0e6601c651f8$9d253b40$a100a8c0@casabyte.com>
On Llu, 2006-03-27 at 18:46 -0500, Greg Lee wrote:
> I am having a problem when using PPP over a particular PCMCIA based serial device and have
> pinned the problem down using git-bisect to this particular commit that was made between
> 2.6.12.6 and 2.6.13:
That would make sense.
> I have also tried a number of other kernels and the problem exists all the way to 2.6.15.6
> but is fixed in 2.6.16, so I am going to git-bisect 2.6.15.6 to 2.6.16, but I thought I
> would get this message out now in case someone has an inkling of what the problem is.
I think I can tell you fairly accurately if you are running fairly high
data rates.
The old pre 2.6.16 tty code works something like this
Each serial IRQ
add chars to buffer if they fit
Each timer IRQ
switch buffers
process original buffer
So the higher HZ is the faster data speed you can do. With very high
data rates lower HZ means more dropped characters.
2.6.16 implements the new tty layer which replaces this with a proper
buffering and queueing mechanism and is SMP aware (and thanks to Paul
rather SMP clever too).
If you want to do very high data rates you either
1. Up HZ
2. Set the tty to low latency mode (process each char as it arrives) and
pray you have enough CPU power
3. Fix the buffering. (2.6.16)
In theory you can change the flip buffer sizes but that needs care.
Alan
next prev parent reply other threads:[~2006-03-28 14:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-27 23:46 HZ != 1000 causes problem with serial device shown by git-bisect Greg Lee
2006-03-28 1:27 ` Lee Revell
2006-03-28 2:03 ` HZ != 1000 causes problem with serial device shown bygit-bisect Greg Lee
2006-03-28 2:19 ` Alistair John Strachan
2006-03-28 5:37 ` HZ != 1000 causes problem with serial device shown by git-bisect Valdis.Kletnieks
2006-03-28 13:44 ` Greg Lee
2006-03-28 8:13 ` Russell King
2006-03-28 14:17 ` Greg Lee
2006-03-29 17:22 ` Bill Davidsen
2006-03-28 14:13 ` Alan Cox [this message]
2006-03-29 17:31 ` Bill Davidsen
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=1143555233.17522.23.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=glee@swspec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+kernel@arm.linux.org.uk \
/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