Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Wow. Many deep bows of reverence for all that responded. As UK inferred, I was (indeed) doing something wrong. Based on the above suggestions, this was the script tested:
#!/usr/local/perl5.6.1/bin/perl -slw
while( sysread $fhi, $_, $BUFSIZE ) { An amazing 10 minutes. I checked the output and it looks exactly as expected. I even retested 3 times and each time the results were similar. Ok, now I am getting greedy and curious as to if this can be optimized more?? I ran top during this session and saw that SIZE and RES were both around 1026M throughout the duration and only 1 cpu seemed used. Would increasing BUFSIZE help performance linearly? If I was capable (and I am not) would either shared memory threads or parallel forks produce big gains? Any other low-hanging fruit? Perlfan, the ROMIO seemed interesting but I could not find a perl sample. Still it seemed interesting. Anonymous Monk, please forgive my ignorance but what does HD mean?
A sincere thanks to all, In reply to Re^2: Muy Large File
by BuddhaLovesPerl
|
|