Custom Search

[Linux-RT]High CPU-load due to IRQ servicing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello linux-rt list!

I am using the RT-patchset with a 2.6.33.7-Kernel on a PCEngines
ALIX-Board (AMD Geode 500MHz). In several prior projects, everything
worked fine.

Right now, I am reading four virtual USB ports in parallel
(/dev/ttyUSB0-3) using an own single-threaded program for this. Data is
coming in on each port in intervals as fast as 40ms, each ~550 bytes, at
250.000 BAUD.

The problem I can observe is, that sometimes the CPU load goes up to
100% regarding the servicing of hardware IRQs.

I know, since I observed this via top(1). There is 100% on "hi" for a
some amount of time(<0.5s). Using a program called "itop", I was able to
check the interrupts per second and each time, the CPU gets this high
load, I observe about 1500 interrupts per second on IRQ 0 ("timer").

The result of this is, that my program is frozen for about 300ms, which
destroys the purpose of my software. In addition, the program stops
receiving data from all the four virtual USB ports, but only gets data
from one or two of the ports. So from this point on my program is broken
due to failure within the linux system.

First of all: What could I be doing wrong?
Second: Could this be a real-time bug? Or a bug within the driver I am
using (ftdi.c on FT4232H)?
Third: Could anyone image an improvement by making the software multi
threaded? One thread for each USB-port?

Kind regards for every hint about my problem.
Dennis
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RT Stable]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

Add to Google Powered by Linux