Thanks John. I looked into this patch but it doesn't resolve my
problem, and we have have posix FADV.

I found a simple solution. Just open the file on receiver to be write
direct to disk avoid file buffer/cache. Of course the performance
sucks but it's what I need. The output block rate cannot be reduced by
2/3 based on my besting on linux 2.6.22. I can post the diff if
anybody wants.

- Reeve

On Sun, Mar 30, 2008 at 10:23 PM, John Van Essen wrote:
> On Fri, 28 Mar 2008, Reeve Yang wrote:
> > Is there anyway to make rsync use direct I/O bypassing FS buffer?

>
> I'm not an expert on that by any means, but AFAIK, rsync supports that
> only via this patch:
>
> http://rsync.samba.org/ftp/rsync/pat...rop-cache.diff
>
> (You'll have to compile your own version of rsync.)
>
>
>
> John
>
> --
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html