Re: Using DMA in read/write, setting block size for I/O

From: Arjan van de Ven
Date: Wed Oct 05 2005 - 03:16:02 EST


On Wed, 2005-10-05 at 11:53 +0530, Karthik Sarangan wrote:
> Arjan van de Ven wrote:
> > <>that depends, not all pieces of hardware can do transfers that big (or
> > at least advertise to the kernel that they can); if that's the case the
> > kernel will chop it up. Note:t he kernel will not *guarantee* that it'll
> > be one io either way. So don't depend on it for correctness!
> > Yet of course the kernel will try to optimize as good as possible
> Is there a way to find out whether my hardware supports such huge DMA?

max_sectors in the host template for scsi

> If it does how do I set it to 256KB chunk?

that ought to be automatic really once that's there


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/