in reply to Re^3: Script exponentially slower as number of files to process increases
in thread Script exponentially slower as number of files to process increases
Is running more workers than the number of logical CPU cores improving performance? There are golden CPU samples out there.
I don't know what to say, other than try to benignly bypass the perlmonks' filter and show somehow the graphs (if a janitor would be kind enough to URLify these, thanks). It does seem that in certain scenarios the first part of your statement holds true.
You need to copy/paste the links by hand, but it's worth the trouble. The gain of fork() from 256 to 512 processes is almost unbelievable, while the performance of the other implementations is practically linear.
EDIT: But of course it is, it's due to workers exiting early.
I also tested your updated script but it showed no tangible improvement on my setup.
|
|---|