<blockquote class="webkit-indent-blockquote" style="margin:0 0 0 40px;border:none;padding:0px"></blockquote>Hi,<br><blockquote class="webkit-indent-blockquote" style="margin:0 0 0 40px;border:none;padding:0px"><br>I&#39;m using CSYNC2 2.0-rc1 from the git stream on CENT OS 5.6 64 bit...<br>

<br>CSync2 is consuming lot of cpu cycles and taking a lot of time [roughly, around 10 times] compared to SCP or RSYNC; are there any special options to make csync2 work like scp/rsync style copy for large files? <br><br>

If we clearly know that certain files will only be added to or removed from a directory and no modifications happen to any of those large files, then would it not be beneficial to just plainly copy instead of finding differences, infact there won&#39;t be any differences, just 1 or 0 for existence or  absence of file.<br>

<br>I tried initializing the csync2 metadata database with csync2 -crI and then did an csync -x, but it is taking a lot of time even on a LAN when compared to other copy utilities like rsync or scp.<br><br>One may ask why use csync2 and why not go with scp or rsync for such use cases; the only answer i can give is that those tools are no match for the flexibility and power of csync2 and i would want to address this use case also along with the other common scenarios that csync2 excels in.<br>

<br>Please let me if there is any way where i can force csync2 to straightway sync the file like plain rsync and do not try to find diffs and thus improve speed and reduce resource consumption?<br><br></blockquote>Thanks and Regards,<br>

Samba<br><b><br></b><blockquote class="webkit-indent-blockquote" style="margin:0 0 0 40px;border:none;padding:0px"></blockquote>PS:<br><br><blockquote class="webkit-indent-blockquote" style="margin:0 0 0 40px;border:none;padding:0px">

Here are the results for times taken for copying a nearly 1 GB file between two hosts in the same LAN:<br><br></blockquote><blockquote class="webkit-indent-blockquote" style="margin:0 0 0 40px;border:none;padding:0px"><div>

<b>SCP </b></div><div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

[root@master~]# time scp /opt/test/installer.zip root@slave:/opt/test/</blockquote></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

real    0m35.041s</blockquote></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

user    0m11.590s</blockquote></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

sys     0m8.933s</blockquote></div><div><div><br></div></div><div><div><b>RSYNC</b></div></div><div><div><br></div></div><div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

[root@master~]# time rsync /opt/test/installer.zip root@slave:/opt/test/</blockquote></div></div><div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

real    0m32.724s</blockquote></div></div><div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

user    0m10.987s</blockquote></div></div><div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

sys     0m4.576s</blockquote></div></div><div><div><div> </div></div></div><div><div><b>CSYNC2</b></div></div><div><div><div><br></div></div></div><div><div><div>[root@master~]# time csync2 -x</div></div></div><div><div>
<div>
<br></div></div></div><div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

real    5m53.171s</blockquote></div></div><div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

user    4m19.255s</blockquote></div></div><div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

sys     0m31.349s</blockquote></div></div><div><div><div><br></div></div></div><div><div><div> </div></div></div></blockquote>