Smile-n-Nod has asked for the wisdom of the Perl Monks concerning the following question:
I have a Perl program with (typically) 32 threads, each of which uses a command-line utility (via a system() call) to download large files from one or more servers. These threads also write periodically to STDOUT, which I've redirected to a (log) file on my local drive.
When my program downloads these files onto my local hard-drive, everything works fine. However, when my program downloads the files and saves them onto a data-drive that is physically located on another machine (across a network), everything bogs down and becomes deadlocked (I think). If I use fewer threads (say, 4 or 8 on my 4-processor machine), my program usually works fine.
Obviously I'm overloading the network, but are there any strategies that I can use to minimize the problems I'm having? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using multiply threads that save files across a network
by moritz (Cardinal) on Jun 03, 2011 at 20:58 UTC | |
|
Re: Using multiply threads that save files across a network
by zek152 (Pilgrim) on Jun 03, 2011 at 21:02 UTC | |
|
Re: Using multiple threads that save files across a network
by BrowserUk (Patriarch) on Jun 03, 2011 at 21:25 UTC | |
|
Re: Using multiple threads that save files across a network
by Anonymous Monk on Jun 03, 2011 at 23:07 UTC |