From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from p3plsmtpa07-09.prod.phx3.secureserver.net (p3plsmtpa07-09.prod.phx3.secureserver.net [173.201.192.238]) by sourceware.org (Postfix) with ESMTPS id CE646385C417 for ; Mon, 31 Jan 2022 15:20:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CE646385C417 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kosowsky.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kosowsky.org Received: from consult.pretender ([146.115.145.129]) by :SMTPAUTH: with ESMTPSA id EYTRnX6uEVyEtEYTRn20sd; Mon, 31 Jan 2022 08:20:09 -0700 X-CMAE-Analysis: v=2.4 cv=YLFadTKx c=1 sm=1 tr=0 ts=61f7fe29 a=BYuR5sdBHlGgEYWvfiqr5Q==:117 a=BYuR5sdBHlGgEYWvfiqr5Q==:17 a=8nJEP1OIZ-IA:10 a=DghFqjY3_ZEA:10 a=Y4wjOHm_AAAA:8 a=dr7m91kpFVIWsMrW3w0A:9 a=wPNLvfGTeEIA:10 a=vUyUeBe4x1l68iL-zyVZ:22 X-SECURESERVER-ACCT: inbox@kosowsky.org Received: from consult.pretender (localhost [127.0.0.1]) by consult.pretender (Postfix) with ESMTP id 22884290D981 for ; Mon, 31 Jan 2022 10:20:09 -0500 (EST) Received: by consult.pretender (Postfix, from userid 495) id 1FDA4290D980; Mon, 31 Jan 2022 10:20:09 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Level: Received: from consult.pretender (localhost [127.0.0.1]) by consult.pretender (Postfix) with ESMTPSA id C2086290D97C; Mon, 31 Jan 2022 10:20:08 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <25079.65064.763368.222635@consult.pretender> Date: Mon, 31 Jan 2022 10:20:08 -0500 To: =?iso-8859-1?Q?Ren=E9?= Berber Cc: cygwin@cygwin.com Subject: Re: Renaming (with 'mv') very large files is SLOW In-Reply-To: References: <25079.63376.349893.86395@consult.pretender> X-Mailer: VM 8.2.0b under 25.2.2 (x86_64-pc-linux-gnu) From: cygwin@kosowsky.org X-Virus-Scanned: ClamAV using ClamSMTP X-CMAE-Envelope: MS4xfN6+5Qi0s+rgcIxNgaqiHqTPptkq+eha8C20dW4O/tqyVzK9oaxeTGO+/0fftksX1lx4dmun3Cn4Di/z6fbvUOxUwW1pw296VeOlQRWTgSaW696lxDYD DOmqa5mY0y3onZaWFIgE4ZwQLDlKkKyNmOARecXU/ys92gy3ykv4hOCd1ubvhSqcWumjhwKznQTWGK6oqvHXXaiSFz+ZGZb2uPQ= 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: Mon, 31 Jan 2022 15:20:13 -0000 Ren=E9 Berber wrote at about 09:13:59 -0600 on Monday, January 31, 2022= : > On 1/31/2022 8:59 AM, Eliot Moss wrote: >=20 > > On 1/31/2022 9:52 AM, cygwin@kosowsky.org wrote: >=20 > >> I tried renaming some very large files (20-40 GB) using: mv > >> without changing the directory of course. > >>=20 > >> The process took about 10-20 minutes with Task Manager showing > >> disk activity of 100+ MB/s. > >>=20 > >> Is there something about such large 'renaming' that actually > >> results in the file being really moved (aka copied) rather than > >> just renamed? > >=20 > > The two places are probably on different volumes (loosely, differe= nt > > disks). That requires a physical move, even under Linux. Your > > volumes seem a bit slow to access - is one perhaps across a slow > > network? The rates you cite suggest movement of 50Mb/s (50Mb read= + > > 50Mb write =3D 100Mb overall). For 40 Gb that should take 40Gb / = 50Mb > > =3D about 820 secs =3D a little under 14 mins. > >=20 > > (When I say your volumes are slow, I speak from the luxury of havi= ng > > a 2Tb solid state drive! Actually, those speeds may be reasonable= > > depending on the nature of your system.) > >=20 > > If the two locations are on different drives, there's no real > > avoiding this. >=20 > Nope, I've also complained about this (long ago), if the two locatio= ns > are the same remote drive... Cygwin moves the entire file over the n= etwork. >=20 > I ended up writing my own Samba mv command. > --=20 In my case the directory (where I renamed the file) is on my C-drive.