lkml.org 
[lkml]   [2008]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: disk IO directly from PCI memory to block device sectors
On Fri, 26 Sep 2008 11:11:35 +0200
Jens Axboe <jens.axboe@oracle.com> 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


\
 
 \ /
  Last update: 2008-09-26 12:09    [W:0.101 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site