From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501p.mail.yandex.net (forward501p.mail.yandex.net [77.88.28.111]) by sourceware.org (Postfix) with ESMTPS id 626F33858D35 for ; Tue, 1 Feb 2022 08:50:04 +0000 (GMT) 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 Received: from vla3-ceb7ce11bd61.qloud-c.yandex.net (vla3-ceb7ce11bd61.qloud-c.yandex.net [IPv6:2a02:6b8:c15:341d:0:640:ceb7:ce11]) by forward501p.mail.yandex.net (Yandex) with ESMTP id 455616212F59; Tue, 1 Feb 2022 11:50:02 +0300 (MSK) Received: from vla1-ef285479e348.qloud-c.yandex.net (vla1-ef285479e348.qloud-c.yandex.net [2a02:6b8:c0d:35a1:0:640:ef28:5479]) by vla3-ceb7ce11bd61.qloud-c.yandex.net (mxback/Yandex) with ESMTP id Wa5c6RJr8P-o1dGxF5h; Tue, 01 Feb 2022 11:50:02 +0300 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 Received: by vla1-ef285479e348.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id O2kzacakmm-o1HWHqen; Tue, 01 Feb 2022 11:50:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 2 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 01 Feb 2022 08:47:59 -0000 Date: Tue, 1 Feb 2022 11:47:59 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <139085903.20220201114759@yandex.ru> To: cygwin@kosowsky.org, cygwin@cygwin.com Subject: Re: Renaming (with 'mv') very large files is SLOW In-Reply-To: <25079.64935.73349.331715@consult.pretender> References: <25079.63376.349893.86395@consult.pretender> <25079.64935.73349.331715@consult.pretender> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@cygwin.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: , X-List-Received-Date: Tue, 01 Feb 2022 08:50:06 -0000 Greetings, cygwin@kosowsky.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...