brian@oddjob.uchicago.edu (Brian Yanny) (07/25/90)
Does anyone have an undump which will work in conjunction with perl's 'dump' under SunOS 4.x? I have a large set of perl subroutines (2MB worth of runtime memory) which fork copies of themselves several times. I am interested in getting the operating system to 'share' the perl subroutines (treat them as 'code' rather than 'data') and not make a separate data space for each forked copy. Is this possible with 'dump'? brian brian@oddjob.uchicago.edu
lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (07/26/90)
In article <1990Jul25.163414.14380@midway.uchicago.edu> brian@oddjob.UChicago.EDU () writes:
:
: Does anyone have an undump which will work in conjunction
: with perl's 'dump' under SunOS 4.x?
:
: I have a large set of perl subroutines (2MB worth of runtime memory)
: which fork copies of themselves
: several times. I am interested in getting the operating system to
: 'share' the perl subroutines (treat them as 'code' rather than 'data')
: and not make a separate data space for each forked copy. Is this
: possible with 'dump'?
With SunOS 4.x, if you read in the data pages before forking, they should
be shared, since (I believe) they're set up as copy-on-write. However,
undumping should help your startup time.
Larry