[mp1 and mp2] Grokking memory

[prev] [thread] [next] [Date index for 2005/02/10]

From: ben syverson
Subject: [mp1 and mp2] Grokking memory
Date: 22:27 on 10 Feb 2005
I don't think I'm getting mod_perl's shared memory scheme yet. I have a 
package that gets loaded in my startup.pl, and it basically does this:

use vars qw(%words);
open FILE ...
while <FILE> {
	$words{$_} = 1;
}
close FILE;

...creating a hash of words from a CR-delimited list of words. The hash 
winds up taking up a few megabytes of RAM, but it's absolutely never 
written to, so I figured it would be shared between the mod_perl 
processes. However, each process grows by a few megs...

What's the best way to get around this?

- ben

(message missing)

[mp1 and mp2] Grokking memory
ben syverson 22:27 on 10 Feb 2005

Re: [mp1 and mp2] Grokking memory
Richard F. Rebel 22:40 on 10 Feb 2005

Re: [mp1 and mp2] Grokking memory
ben syverson 22:51 on 10 Feb 2005

Re: [mp1 and mp2] Grokking memory
Richard F. Rebel 23:28 on 10 Feb 2005

Re: [mp1 and mp2] Grokking memory
Perrin Harkins 23:32 on 10 Feb 2005

Re: [mp1 and mp2] Grokking memory
Richard F. Rebel 00:33 on 11 Feb 2005

Re: [mp1 and mp2] Grokking memory
ben syverson 23:43 on 10 Feb 2005

Re: [mp1 and mp2] Grokking memory
Richard F. Rebel 00:35 on 11 Feb 2005

Re: [mp1 and mp2] Grokking memory
Perrin Harkins 21:57 on 11 Feb 2005

Re: [mp1 and mp2] Grokking memory
Steven Lembark 19:39 on 13 Feb 2005

Generated at 11:21 on 20 Feb 2005 by mariachi v0.52