![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re^2: Memory is not released back to operating systemby bloonix (Monk) |
on Mar 03, 2012 at 00:22 UTC ( #957572=note: print w/replies, xml ) | Need Help?? |
Forking... that is exactly my problem. My daemon process needs a lot of memory (~2-8GB) for different data. Every time the daemon forks some new processes to distribute its work, each child process has the same size, but each child process needs only a lower part (~20MB) of the data. I thought it could be possible at first to destroy the object and release the memory back to the OS and then send the lower part over a pipe to the child process. The idea was really bad. > fork the code offI could fork the memory off. I think I have no other chance as to fork a process that holds the data and distribute the workload to other child processes. The main daemon just managing the forking machine without the huge amount of data. Thanks for the inspiration!
In Section
Seekers of Perl Wisdom
|
|