Slow "Verify" operation when copy with verification
Moderators: Hacker, petermad, Stefan2, white
Slow "Verify" operation when copy with verification
Total commander version : 9.22a, 9.20, 64bit and 32bit
OS: windows 7
hardware: i5-2400, 16gb RAM
When I copy with verification directories with many big files, I found, than "Verify" part of operation works slow - about 110-114 MBytes/sec, but md5 calculation for same files on same drive works much faster (with full read speed of drive, sata HDD, up to 190 MBytes/sec).
OS: windows 7
hardware: i5-2400, 16gb RAM
When I copy with verification directories with many big files, I found, than "Verify" part of operation works slow - about 110-114 MBytes/sec, but md5 calculation for same files on same drive works much faster (with full read speed of drive, sata HDD, up to 190 MBytes/sec).
- ghisler(Author)
- Site Admin
- Posts: 50463
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Slow "Verify" operation when copy with verification
That's because "Verify" bypasses the disk cache, otherwise it would be pointless. md5 calculation uses the cache, so when you just copied a file and then calculate its md5, the data will be taken from the disk cache and no real write verification will be performed.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Slow "Verify" operation when copy with verification
Related question: file copy with verification using an external HDD is extremely slow (around 1MB/s, sometimes less). Would shifting to external SSD or NVME disk result in meaningful improvement? i.e. what is the bottleneck in file access when disk cache is bypassed, IOPS or something else?
Re: Slow "Verify" operation when copy with verification
Hello DuBa, welcome.DuBa wrote: 2023-06-06, 10:19 UTC Related question: file copy with verification using an external HDD is extremely slow (around 1MB/s, sometimes less). Would shifting to external SSD or NVME disk result in meaningful improvement? i.e. what is the bottleneck in file access when disk cache is bypassed, IOPS or something else?
Which TC version and bitness do you use? On which OS?
Re: Slow "Verify" operation when copy with verification
Thanks! I am using 64-bit version on Windows 10, behavior is the same on versions 10.0 and 11b5Stefan2 wrote: 2023-06-06, 11:00 UTC Hello DuBa, welcome.
Which TC version and bitness do you use? On which OS?
- ghisler(Author)
- Site Admin
- Posts: 50463
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Slow "Verify" operation when copy with verification
Probably not. I would not use verify with external disks. Instead, copy the files normally, then disconnect the disk and reconnect it to flush the cache. Then just use the compare function in "synchronize dirs". This will me MUCH faster because it will use the disk cache, and still give you valid results because the cache was cleared. Unfortunately there doesn't seem to be a way to programmatically clear the cache.Would shifting to external SSD or NVME disk result in meaningful improvement?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Slow "Verify" operation when copy with verification
What kind of files do you copy? A speed of just 1 MB/s suggests that you copy a large amount of very small files. In such a case a solid-state disk would certainly improve the speed. Reaching such speeds when copying large files would definitely be not normal.DuBa wrote: 2023-06-06, 10:19 UTCRelated question: file copy with verification using an external HDD is extremely slow (around 1MB/s, sometimes less). Would shifting to external SSD or NVME disk result in meaningful improvement?
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Slow "Verify" operation when copy with verification
Thank you all! It is fascinating to me how many new ways to simplify life can be found in TC!
I will use this method from now on but would it be possible to make "verify2" to do the same thing with one or two clicks or via options dialogue?
Thanks again for help and fast feedback!

Fantastic, thank you! Compare by content function in "synchronize dirs" is identifying differences in files with identical names and size so I assume it is also using checksums?ghisler(Author) wrote: 2023-06-06, 13:42 UTC Probably not. I would not use verify with external disks. Instead, copy the files normally, then disconnect the disk and reconnect it to flush the cache. Then just use the compare function in "synchronize dirs". This will me MUCH faster because it will use the disk cache, and still give you valid results because the cache was cleared. Unfortunately there doesn't seem to be a way to programmatically clear the cache.
I will use this method from now on but would it be possible to make "verify2" to do the same thing with one or two clicks or via options dialogue?
This is well known limitation of USB file transfer, and i am either copying a reasonable number of small(ish) files or a few .zips over 1GB. Verify was particularly slow for large files, I can do a test and load screenshots if anyone is interested.Dalai wrote: 2023-06-06, 14:51 UTC What kind of files do you copy? A speed of just 1 MB/s suggests that you copy a large amount of very small files. In such a case a solid-state disk would certainly improve the speed. Reaching such speeds when copying large files would definitely be not normal.
Thanks again for help and fast feedback!
- ghisler(Author)
- Site Admin
- Posts: 50463
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Slow "Verify" operation when copy with verification
No, it is comparing the files byte by byte. Just make sure to check both "by content" and "ignore dates".Fantastic, thank you! Compare by content function in "synchronize dirs" is identifying differences in files with identical names and size so I assume it is also using checksums?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com