|Pathologically Eclectic Rubbish Lister|
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 off
I 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 reply to Re^2: Memory is not released back to operating system