This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Telnet / SSH connection timeout on LAN


On Jul 9, 2015, at 12:04 AM, Andrey Repin <anrdaemon@yandex.ru> wrote:
> 
>> rsync requires a pretty heavy network transaction to figure
>> out if files have changed.
> 
> I'm rsync'ing about 15 gigabytes of my home directory with just a few megs of
> network exchange.

âJust?â

That was my definition of âheavyâ.

Consider all the disk I/O required.  In its default mode, rsync must do a full directory tree scan on the directory to be transferred, on *both* ends.  For each file with a different mtime or size, it must then recompute all the hashes in that file, again on both sides.

Can you really handwave away megs of network I/O and potentially gigs of disk I/O?  Do you never use locate(1) instead of find(1)?  Same issue.

On top of that, the OP wants to do this every time the machine becomes idle.  Even if it was idle a few seconds ago, did some work, and is idle again, the OP wants all this work to be done all over again.

Horribly wasteful.

I believe Dropbox and its major competitors avoid the need for this tree scan by hooking into the OSâs filesystem change notification API, so that they donât do any network or disk I/O until one of the files it is responsible for changes.

Thatâs the right way.
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]