There's more than one way to do things | |
PerlMonks |
Is it possible to use IPC COW with Perl?by glasswalk3r (Friar) |
on May 22, 2011 at 16:15 UTC ( [id://906180]=perlquestion: print w/replies, xml ) | Need Help?? |
glasswalk3r has asked for the wisdom of the Perl Monks concerning the following question: Greetings monks, Is it possible to create programs that use IPC to communicate and use the COW (copy on write) functionality on Linux OS? I'm asking that because I've doing some tests and I could not get an situation that my forked child did not copy all variables from parent process. I checked this situation by running htop program and seeing that the child process have the same amount of memory than the parent process. For what I have read about COW, the child process will copy its parent process variables in its own address space only if it tries to change those variables. My conclusion is, COW should help to reduce memory consumption but I never could checked that. Given this little introduction, how can I:
Thank you,
Alceu Rodrigues de Freitas Junior --------------------------------- "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
Back to
Seekers of Perl Wisdom
|
|