webfork wrote:Went back and checked ... pressing Esc works. No clue why I didn't try that.
That's exactly what happens during the
first phase
... Fortunately, the
first phase actually is very fast. And it's the
second phase, where the hash of each files is computed, that takes most of the time. Still, on a very large drive, even the
first phase can take several minutes...
Weird. There might be something with my setup. Let me be specific:
- Download and extract
- Click Start Scan
- Run on my TrueCrypt volume (with Recurse Directories checked)
- Click OK
- "Searching for files and directories, please be patient" appears
- Wait 10 mins
This is what I'm seeing:
http://i.imgur.com/V7RVjuh.png
I didn't mean that the
first phase necessarily takes a short time. Actually, it can take quite some time on a large volume! But it's certainly very fast
compared to the
second phase.
And running on a TrueCrypt volume, with the overhead of encryption, certainly doesn't make things faster
Anyway, you can run the Double File Scanner program with the "--console" switch in order to display some additional status information, if you want to.
webfork wrote:How long should it take to check the number of files in a volume? When I open the volume, select all files, right-click and select "properties", the number comes right up (in my case 12,000 files in 12.2 gigs).
You mean in Windows Explorer?
Well, either Windows Explorer directly uses some low-level Win32 API functions that are faster than Qt's QDirIterator class. Or it uses some smart caching strategy, so it doesn't actually need to scan whole the file system at the moment when you open the properties dialogue, but instead just grabs the info from its cache.
webfork wrote:Also, it's very CPU intensive during this first phase. What's up with that?
High CPU usage isn't a bad thing per se. Actually, the "CPU usage" you see in Taskmanager is simply the fraction of time that the CPU has been working, as opposed to the time the CPU has been idle. So if, for example, you have 75% CPU usage, it means that, in the last time interval, the CPU has been working 75% of the time and it has been idle 25% of the time. In other words: 25% of the CPU cycles have been
wasted unused! Okay, modern CPU's do not actually "waste" these CPU cycles (like old CPU's used to do), but fall into sleep state very quickly. But still these CPU cycles could have been used for something useful instead. So, from this perspective, you want the CPU usage to be as high as possible - in order to finish your task as quickly as possible.
Double File Scanner handles each directory as a separate task. It uses a thread pool to distribute these tasks on multiple threads and thus take advantage of multi-core processors. This way the overall process is much faster - and CPU usage will be higher (intentionally).
Enternal wrote:Anyway, like webfork said, this should really come with a pause/stop button.
This
experimental version has suspend/resume support hacked in. Use the "Pause" button!
http://sourceforge.net/projects/mulders ... p/download