mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Halasa <khc@pm.waw.pl>
To: "Paul G. Allen" <pgallen@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux Serial Performance
Date: Sun, 10 Jan 2010 19:26:22 +0100	[thread overview]
Message-ID: <m363793jg1.fsf@intrepid.localdomain> (raw)
In-Reply-To: <bd8e30a41001091057t97f90abgffe9cca329ace477@mail.gmail.com> (Paul G. Allen's message of "Sat, 9 Jan 2010 10:57:48 -0800")

"Paul G. Allen" <pgallen@gmail.com> writes:

> I ran some tests on Windows XP and Linux CentOS 5.1 using the Sun
> NetBeans IDE 6.7.1 profiler. The same Java code on both Linux and XP
> machines, the same model of machine (Dell, Pentium 4 3GHz, 2.5GB
> memory). I am using the Sun comm API currently, and previously I was
> using the Serlio API. In all cases, the profiler shows the serial Tx
> to be about 20x faster (twenty times) on Windows XP than in Linux. It
> takes Linux several seconds to Tx 1024 byte blocks of data over the
> serial port where Windows XP takes a fraction of a second.

I don't know about Java, but I'm using 460 kb/s and 920 kb/s serial
ports and Linux can transmit (and receive) full speed data without any
problem. This includes mobile Pentium III 500 MHz with 460 kb/s NS super
IO chip.

4-port OX16PCI954, PL2303 (max 2) and FTDI2232-based USB dongles also
work as well. I know people use ca. 4 Mb/s async serial (with PPP).

The last time I remember serial IO problems it was 8-port 8251-based ISA
card on 486DX. I think it was reliable at max 19200 b/s.


Perhaps you're requesting hardware (or software) handshaking when it's
unavailable? Or maybe there is some "padding" configured?

I wonder what does strace say about it.
-- 
Krzysztof Halasa

  parent reply	other threads:[~2010-01-10 18:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-09 18:57 Paul G. Allen
2010-01-09 19:10 ` Samuel Thibault
2010-01-09 19:32   ` Paul G. Allen
2010-01-09 19:46     ` Dr. David Alan Gilbert
2010-01-09 19:47     ` Michael Trimarchi
2010-01-09 20:30 ` Alan Cox
2010-01-09 23:51 ` Robert Hancock
2010-01-10 18:26 ` Krzysztof Halasa [this message]
2010-01-10 19:42 ` James Courtier-Dutton
2010-01-14 18:35   ` Paul G. Allen

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=m363793jg1.fsf@intrepid.localdomain \
    --to=khc@pm.waw.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pgallen@gmail.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

Powered by JetHome