X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=Z5ZxZn4pbzVsWLdw5dqXbtCSdaPo 1zNTAzVnyCy6C02StRZlK+kopdG+xrWxEL92fwZIzZmmZcFZgeW+qukSsS9Pzi2V KXmv4E1XpZiEXhAWBtB3F1hErXVnH9z/xzabMKMhALm3OgzdwV6+dlxRjFxmDtDX zX/irgXW4PVWpfQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=B+uzUx/hRzUwnKtRiQZsdlRnM2A=; b=Ms hoI3bZ0U4yIey/UZBDojFLHVMFP64yyc47DYpcPQobTRVv0BI1fCyjjtamRBkzfa KBKRiGNNnm0dCb2uwCfD14/XrN+B8ucEZLTHmhfj0NehthYCA72G1982yuBN8h2r 0AEXHGqKq5sS+BJpSokbdUQhXjsVkX231ksxdcoyA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: etr-usa.com Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: Telnet / SSH connection timeout on LAN From: Warren Young In-Reply-To: <1283519593.20150709090453@yandex.ru> Date: Fri, 10 Jul 2015 07:19:43 -0600 Message-Id: <5C24455B-3D28-4C6D-A77B-70BB5D67F0AA@etr-usa.com> References: <1436142936994-119480 DOT post AT n5 DOT nabble DOT com> <7931485F-EEA3-4C1B-8B2C-E495EF5ED1A9 AT etr-usa DOT com> <1283519593 DOT 20150709090453 AT yandex DOT ru> To: cygwin AT cygwin DOT com X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t6ADJts1017815 On Jul 9, 2015, at 12:04 AM, Andrey Repin 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