Re: disk IO directly from PCI memory to block device sectors

From: Alan Cox
Date: Fri Sep 26 2008 - 06:06:32 EST


On Fri, 26 Sep 2008 11:11:35 +0200
Jens Axboe <jens.axboe@xxxxxxxxxx> wrote:

> On Fri, Sep 26 2008, Alan Cox wrote:
> > > What I'm looking is for a more generic/driver independent way of sticking
> > > contents of PCI ram onto a disk.
> >
> > Ermm seriously why not have a userspace task with the PCI RAM mmapped
> > and just use write() like normal sane people do ?
>
> To avoid the fault and copy, I would assume.

It's a write to a raw partition so with O_DIRECT you won't have to copy
and MAP_POPULATE will premap the object if even the first write wants to
occur without faulting overhead.

Alan
--
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/