Christian,
I would like to suggest to make use of multithreading when creating / verifying MD5 / SFV files, one thread per file. Would that be possible to implement?
TIA
Roman
MD5 (SFV) per file multithreading
Moderators: Hacker, petermad, Stefan2, white
MD5 (SFV) per file multithreading
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
The cpu-load percentage only, is not an adequate criterion to decide if it's useful or not.
For example: we don't know if Sob's (i5) quad core supports hyper threading, thus 10% would mean 80% load for a single core.
Here (sha1/3Gbyte files ) i'm getting a throughput (ProcessExplorer) about 30 to 35Mbyte/sec using an AMD X2 dual core while the overall cpu-load is also about 45% (90% per single core).
And of course the local HDD can delivery more than that (about 80-90MByte/s).
And this would be even more, if the file system cache provides the data.
Regards
Holger
For example: we don't know if Sob's (i5) quad core supports hyper threading, thus 10% would mean 80% load for a single core.
Here (sha1/3Gbyte files ) i'm getting a throughput (ProcessExplorer) about 30 to 35Mbyte/sec using an AMD X2 dual core while the overall cpu-load is also about 45% (90% per single core).
And of course the local HDD can delivery more than that (about 80-90MByte/s).
And this would be even more, if the file system cache provides the data.
Regards
Holger
Ok, I stand corrected, it is not a bad idea after all. :) Previously I was talking about sfv, but other algorithms need more CPU power. So in my case one core can do ~250MB/s for sfv, ~100MB/s for md5 and only ~60MB/s for sha (all are very rough numbers). So in some cases the CPU can be bottleneck instead of HDD and multithreading would actually help.
But it would require clever use of large buffers, because reading multiple files from normal disk at the same time can totally kill performance because of seeking delays.
But it would require clever use of large buffers, because reading multiple files from normal disk at the same time can totally kill performance because of seeking delays.