lkml.org 
[lkml]   [2007]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: O_DIRECT question
Hua Zhong wrote:
>> The other problem besides the inability to handle IO errors is that
>> mmap()+msync() is synchronous. You need to go async to keep
>> the pipelines full.
>
> msync(addr, len, MS_ASYNC); doesn't do what you want?
>

No, because there is no notification of completion. In fact, does this
call actually even avoid blocking in the current code, while asking the
kernel to flush the pages in the background?

Even if it performs the sync in the background, what about faulting in
the pages to be synced? For instance, if you splice pages from a source
mmaped file into the destination mmap, then msync on the destination,
doesn't the process still block to fault in the source pages?


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

\
 
 \ /
  Last update: 2007-01-12 17:07    [W:0.124 / U:1.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site