in reply to keep a module in shared memory
If you are using modules with a large XS component then those parts will be shared anyway. On Windows a DLL gets created, and on UNIX a .so (shared object) file is used. These will share code and read-only segments between processes, but not data segments which are written to, such as the heap.