Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Multithreading leading to Out of Memory error

by coyocanid (Sexton)
on Jun 10, 2013 at 03:17 UTC ( [id://1037979]=note: print w/replies, xml ) Need Help??


in reply to Multithreading leading to Out of Memory error

Rather than use threads, I've been using a drop in replacement : forks. I am so far happy with it.

http://search.cpan.org/~rybskej/forks-0.34/lib/forks.pm

From the POD : The standard Perl 5.8.0 threads implementation is very memory consuming, which makes it basically impossible to use in a production environment, particularly with mod_perl and Apache. Because of the use of the standard Unix fork() capabilities, most operating systems will be able to use the Copy-On-Write (COW) memory sharing capabilities (whereas with the standard Perl 5.8.0 threads implementation, this is thwarted by the Perl interpreter cloning process that is used to create threads). The memory savings have been confirmed.

  • Comment on Re: Multithreading leading to Out of Memory error

Replies are listed 'Best First'.
Re^2: Multithreading leading to Out of Memory error
by joemaniaci (Sexton) on Jun 16, 2013 at 15:14 UTC

    Well considering it's the pushing of a float onto an array that's causing problems, I am not even sure if this is longer a thread issue. I am at a loss really. Going to see if it's possible to implement that functionality with a hash.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-26 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found