X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 626F33858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1643705402; bh=8HtfdP9Xi+g1MdztuPCqdyaR5zdq9MHv0ZsbWzWwcc8=; h=In-Reply-To:Subject:From:Message-ID:References:Date:Reply-To:To; b=ndTjbODH9C6R0v9bzaO6/VRfYiarEtl4uRUQRN7/cqbEBEqY7gtDTva4lmZHpkGOD B0TPK7DKYytU8nXz0JTj2nS+m+OEATlkGLnL2LlYXX7RuBkoiHEzABQXSOUMQglJEH hbSSXggN45Tn7HUUssyWchW8WJMq7UlOlAKvbXYo= Authentication-Results: vla3-ceb7ce11bd61.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Fwd: 2 Date: Tue, 1 Feb 2022 11:47:59 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <139085903.20220201114759@yandex.ru> To: cygwin AT kosowsky DOT org, cygwin AT cygwin DOT com Subject: Re: Renaming (with 'mv') very large files is SLOW In-Reply-To: <25079.64935.73349.331715@consult.pretender> References: <25079 DOT 63376 DOT 349893 DOT 86395 AT consult DOT pretender> <25079 DOT 64935 DOT 73349 DOT 331715 AT consult DOT pretender> MIME-Version: 1.0 X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, cygwin AT kosowsky DOT org! > I literally am typing something like: > mv foo bar > In Linux, that just edits the file system table & inode... > UPDATE... > I just tried a second 'mv' and it was near instantaneous. > (and similarly with subsequent renaming of the same file) > So perhaps not a 'Cygwin' thing but something going on within Windows. > Could it be that the first 'mv' triggered an anti-virus read of the file since > perhaps it detects it as a new/changed file? > But if so, would 'mv' (under Task Manager) be showing the 100+ MB/s disk activity? Install processmanager and check what actual activity is happening on that file. Is it reading or writing? Who is doing that? -- With best regards, Andrey Repin Tuesday, February 1, 2022 11:47:15 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple