Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: MCE: Slow IPC between child and gather process in parent

by jeffenstein (Friar)
on May 03, 2018 at 15:10 UTC ( #1214005=note: print w/replies, xml ) Need Help??


in reply to Re^4: MCE: Slow IPC between child and gather process in parent
in thread MCE: Slow IPC between child and gather process in parent

Ok, I'll bite.

You said:

I predict that if instead you read the file sequentially (and advised the operating system that this is what you intend to be doing), the OS will read the data from the file in large gulps and stash it in memory, and it would “lazily” write the output in like manner.

But the OP already said:

I have a reasonably large dataset of html files ( +/- 950K files, average size 23K, total size 21G) which I need to parse ...

So it's not possible to read sequentially.

That said, how much the process can benefit or not from parallelism depends on way too many factors (disk layout, OS, kernel parameters, other workloads on the same infrastructure, the phase of Venus, etc.) It's just not possible to make an absolute statement. As marioroy and Anonymous Monk mentioned above, the OP needs to benchmark it in his particular environment to see how much parallelism is optimal.

  • Comment on Re^5: MCE: Slow IPC between child and gather process in parent

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2020-11-24 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?