linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compact Flash PIO 4 tuning
@ 2003-05-06  0:53 David Wuertele
  2003-05-06  5:47 ` Vojtech Pavlik
  0 siblings, 1 reply; 2+ messages in thread
From: David Wuertele @ 2003-05-06  0:53 UTC (permalink / raw)
  To: linux-ide

Howdy,

I'm working on an embedded system that has a CF card on the IDE bus.
The CF spec only allows PIO mode, and my card can do PIO 4.  However,
when I try to stream data from this card into memory at 2 MBytes per
second, it pegs the CPU at 100%.  This is ruining the performance of
my application, which has to process this data in real time.

I realize that PIO 4 requires CPU involvement, but are there ways I
can tune the kernel for copying large files to memory, so that my
application doesn't get starved of CPU?

Thanks,
Dave


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compact Flash PIO 4 tuning
  2003-05-06  0:53 Compact Flash PIO 4 tuning David Wuertele
@ 2003-05-06  5:47 ` Vojtech Pavlik
  0 siblings, 0 replies; 2+ messages in thread
From: Vojtech Pavlik @ 2003-05-06  5:47 UTC (permalink / raw)
  To: David Wuertele; +Cc: linux-ide

On Mon, May 05, 2003 at 05:53:35PM -0700, David Wuertele wrote:
> Howdy,
> 
> I'm working on an embedded system that has a CF card on the IDE bus.
> The CF spec only allows PIO mode, and my card can do PIO 4.  However,
> when I try to stream data from this card into memory at 2 MBytes per
> second, it pegs the CPU at 100%.  This is ruining the performance of
> my application, which has to process this data in real time.
> 
> I realize that PIO 4 requires CPU involvement, but are there ways I
> can tune the kernel for copying large files to memory, so that my
> application doesn't get starved of CPU?

If you use the full bandwidth of the PIO device, you use 100% CPU.
That's it and there's no way around. You can check that the IDE/CF
interface is set to PIO4 and that under Linux you have IRQ unmasking
enabled, those two will help, though the first statement is still
valid.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-06  5:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-06  0:53 Compact Flash PIO 4 tuning David Wuertele
2003-05-06  5:47 ` Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).