Renaming (with 'mv') very large files is SLOW

Andrey Repin
Tue Feb 1 08:47:59 GMT 2022


> I literally am typing something like:
>   mv foo bar

> In Linux, that just edits the file system table & inode...

> 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...

More information about the Cygwin mailing list