[Csync2] speed of "-cr /"

Aristedes Maniatis ari at ish.com.au
Wed Jun 9 12:12:52 CEST 2010


On 8/06/10 12:02 AM, Lars Ellenberg wrote:
> csync2 -cr /
> does exactly that:
> it looks at its database, and stats all files listed in that database,
> as well as directories, and compares the recorded stat info with the
> "live" stat info.
>
> In case a directory stat info has changed, that directory needs to be
> scanned for potentially added files.
>
> Excludes (or non-includes) are respected.

I'm afraid that still doesn't quite make sense to me.

csync.cfg:

    include /usr/ports/packages;


# time csync2 -cr /usr/ports/packages
real	0m1.097s

# time csync2 -cr  /
real	1m15.614s


It does not appear to be respecting the includes with respect to the folders it is scanning. Perhaps they will never be added to the DB, but the above simple test seems to show that csync to scanning through lots of files which it doesn't need to. This is a problem with respect to load and speed in our use.


Are you expecting that we need to pass on the command line to -c a list of every folder that we want csync to scan, even though they are already included in the 'include' configuration command?

One of the big drawcards of csync over rsync was the fact that the config is neatly contained in one configuration file.

Thanks

Ari



-- 
-------------------------->
Aristedes Maniatis
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A


More information about the Csync2 mailing list