linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ioatdma
@ 2008-03-18 21:30 Bernd Schubert
  0 siblings, 0 replies; 3+ messages in thread
From: Bernd Schubert @ 2008-03-18 21:30 UTC (permalink / raw)
  To: linux-raid

Hello,

from my understanding of ioatdma it just should be loaded before raid456 to 
make use it, shouldn't it?

I just wonder why memcpy_count and bytes_transferred in /sys/class/dma/* is 
always zero.

I guess the kernel version is relevant, but this a bit difficult to answer, 
since we have backported a huge chunk of raid, ioatdma and dca to 2.6.22...


Do I miss something?


Thanks,
Bernd

-- 
Bernd Schubert
Q-Leap Networks GmbH

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

* ioatdma
@ 2008-03-19  9:57 Bernd Schubert
  2008-03-19 23:42 ` ioatdma Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Schubert @ 2008-03-19  9:57 UTC (permalink / raw)
  To: linux-raid

Hello,

from my understanding of ioatdma it just should be loaded before raid456 to 
make use it, shouldn't it?

I just wonder why memcpy_count and bytes_transferred in /sys/class/dma/* is 
always zero.

I guess the kernel version is relevant, but this a bit difficult to answer, 
since we have backported a huge chunk of raid, ioatdma and dca from 2.6.25
to 2.6.22...


Do I miss something or do I need to enable something somewhere?


Thanks,
Bernd



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

* Re: ioatdma
  2008-03-19  9:57 ioatdma Bernd Schubert
@ 2008-03-19 23:42 ` Dan Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Williams @ 2008-03-19 23:42 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: linux-raid

On Wed, Mar 19, 2008 at 2:57 AM, Bernd Schubert <bs@q-leap.de> wrote:
> Hello,
>
>  from my understanding of ioatdma it just should be loaded before raid456 to
>  make use it, shouldn't it?
>
>  I just wonder why memcpy_count and bytes_transferred in /sys/class/dma/* is
>  always zero.
>

Currently only network traffic will update these counts.  They are not
currently hooked up for the raid/async_tx case.  NET_DMA uses
dma_async_memcpy_*() whereas MD uses async_memcpy().

In my tests with the iop-adma driver on an iop342.  I look at
/proc/interrupts to check that things are alive and kicking.

You could add the following to async_memcpy():
        cpu = get_cpu();
        per_cpu_ptr(chan->local, cpu)->bytes_transferred += len;
        per_cpu_ptr(chan->local, cpu)->memcpy_count++;
        put_cpu();


--
Dan

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

end of thread, other threads:[~2008-03-19 23:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19  9:57 ioatdma Bernd Schubert
2008-03-19 23:42 ` ioatdma Dan Williams
  -- strict thread matches above, loose matches on Subject: below --
2008-03-18 21:30 ioatdma Bernd Schubert

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).