Direct I/O support (patches included)
Dag Wieers
dag at wieers.com
Thu Feb 14 07:50:21 MST 2013
Hi,
Since a --direct-io feature was requested a few times the past decade with
little response and the actual patch is quite trivial, I patched both
v3.0.9 and master branch and included the patches here.
If this functionality is acceptable I don't mind spending the additional
effort to update the documentation, etc.
Beware that the underlying filesystem needs Direct I/O support, therefore
for this to work on NFS, one needs the kernel CONFIG_NFS_DIRECTIO enabled
(probably default these days anyway). This is the reason why --direct-io
is not enabled by default and should be used with care. I don't know what
the behavior is if the local or remote side do not support O_DIRECT.
In my tests it provides a much more stable copy process (on NFS) with
improved performance, but I didn't do any prolonged repeated tests yet (I
only used it during a large copy that was ongoing so I prefer not to
juggle with numbers here). Please test yourself and report back.
Kind regards,
--
-- dag wieers, dag at wieers.com, http://dag.wieers.com/
-- dagit linux solutions, info at dagit.net, http://dagit.net/
[Any errors in spelling, tact or fact are transmission errors]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsync-master-direct-io.patch
Type: text/x-patch
Size: 2975 bytes
Desc:
URL: <http://lists.samba.org/pipermail/rsync/attachments/20130214/6c3cf8b6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsync-3.0.9-direct-io.patch
Type: text/x-patch
Size: 2141 bytes
Desc:
URL: <http://lists.samba.org/pipermail/rsync/attachments/20130214/6c3cf8b6/attachment-0001.bin>
More information about the rsync
mailing list