Re: Reducing memory footprint?

Alan Burlison (Alan.Burlison@uk.sun.com)
Tue, 09 Mar 1999 23:07:19 +0000


Ilya Zakharevich wrote:

> This looks more promising.  Since most memory is used by Perl is
> read-only, the Tom-beloved fork() after loading all the modules (and
> triggering autoloading?) may help too.

Neat.  All the module code laded in the parent proc should be marked as
copy-on-write in the children, but as I assume it won't be modified, the
child procs won't pagefault and invoke the COW mechanism.  It'll burn a
boatload of swap, but hey - disks are cheap :-)

Thanks - I've passed this suggestion on to my colleague.

Alan Burlison