Re: ioatdma

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

 



On Wed, Mar 19, 2008 at 2:57 AM, Bernd Schubert <bs@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux