Re: Loading modules in Parent??

2000-12-20 Thread Doug MacEachern

On Thu, 28 Sep 2000, Bill Moseley wrote:

 Hi,
 
 I'm seeing the opposite results from pre-loading modules in the parent
 process than I would expect.  It looks like pre-loading modules ends up
 using more non-shared ("private") memory.
...
 Here's the pre-loaded module list. When running as non-pre-loaded I'm
 commenting out Search, SWISH::Fork, and CGI-compile lines below.  That's
 the only difference. 

that's a BIG difference.

% perlbloat 'require CGI'
require CGI added  784k

% perlbloat 'require CGI; CGI-compile(":all")'
require CGI; CGI-compile(":all") added  2.0M

try without preloading CGI.pm/CGI-compile in either.

p.s. this is the perlbloat script:

use GTop ();

my $gtop = GTop-new;
my $before = $gtop-proc_mem($$)-size;

for (@ARGV) {
if (eval "require $_") {
eval {
$_-import;
};
}
else {
eval $_;
die $@ if $@;
}
}

my $after = $gtop-proc_mem($$)-size;

printf "@ARGV added %s\n", GTop::size_string($after - $before);





Re: Loading modules in Parent??

2000-10-04 Thread Bill Moseley

At 12:04 AM 10/02/00 -0600, Scott Wilson wrote:
I've seen a similar result on an IRIX installation I'm working on. 
Anyone have any ideas?

So did you decide NOT to pre-load modules?



  Scott

Bill Moseley wrote:
 
 Won't someone comment on this post?  That's a chunk of memory!
 
 At 11:46 AM 09/28/00 -0700, Bill Moseley wrote:
 snip
 This is what pmap -x is showing:
 
 Address   Kbytes Resident Shared Private Permissions   Mapped File
   --  --  --  --
 total Kb   19968   185282816   15712  -- preloaded modules
 total Kb   11528   1015226567496  -- not preloaded
 
 It's almost all heap:
  00164000   16376   15256 312   14944 read/write/exec[ heap ]
  0016400075926608 1046504 read/write/exec[ heap ]
 
 Is this an issue just with Solaris or is this expected (and seen) on other
 platforms?
 
 Bill Moseley
 mailto:[EMAIL PROTECTED]



Bill Moseley
mailto:[EMAIL PROTECTED]



Re: Loading modules in Parent??

2000-09-30 Thread Bill Moseley

Won't someone comment on this post?  That's a chunk of memory!

At 11:46 AM 09/28/00 -0700, Bill Moseley wrote:
snip
This is what pmap -x is showing:

Address   Kbytes Resident Shared Private Permissions   Mapped File
  --  --  --  --
total Kb   19968   185282816   15712  -- preloaded modules
total Kb   11528   1015226567496  -- not preloaded

It's almost all heap:
 00164000   16376   15256 312   14944 read/write/exec[ heap ]
 0016400075926608 1046504 read/write/exec[ heap ]

Is this an issue just with Solaris or is this expected (and seen) on other
platforms?



Bill Moseley
mailto:[EMAIL PROTECTED]