Re: [mp1 and mp2] Grokking memory

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

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


> ...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?

Depends on how you measure "bigger". Things like top will normally
show you the virtual set size ("VIRT"); this includes the shared
portion ("SHR") and will add up to more than the total core used if 
programs share memory. If you look up the shared portion for the
proc's, Does it grow if you use the hash? If so then the O/S is
sharing the hash until its written.



        -- 
        Steven Lembark                                       85-09 90th Street
Workhorse Computing                                Woodhaven, NY 11421
lembark@xxxxxxx.xxx                                     1 888 359 3508

(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