lkml.org 
[lkml]   [2010]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectLinux Serial Performance
From
I have been working on an application for work written in Java. It's a
production system used for loading firmware into embedded devices via
RS-232. It is designed to load multiple devices in parallel (tested
with up to 32 on a machine thus far). With another Java application
running on Windows XP, a single unit would take about 1 min to load
~400,000 byte binary image. I ported this code to the production
system on Linux and it took over 15 min to load a single unit.

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 had also
noticed that Linux seemed to be very slow in 2006-2007 when using
Fedora (can't recall which version) and the Serialio API, but at that
time I could not get Windows to work at all. This has forced us to
lean toward the use of Windows (and pay for licensing for multiple
machines, etc.) instead of Linux for every system that will be used in
testing and manufacture of our product.

I am wondering, have there been any performance tests comparing Linux
serial IO to Windows and what was the result? Is it a problem in the
comm API (e.g. - the Windows DLL having better performance than the
Linux .so)? Is it a problem in the Linux serial driver itself? Is
there something I can/need to do on Linux to tweak the driver and make
it faster?

Thanks,

PGA
--
Paul G. Allen
Random Logic Consulting
www.randomlogic.net


\
 
 \ /
  Last update: 2010-01-09 20:01    [W:1.505 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site