Re: measuring shared memory on linux (was [Fwd: Re: /proc/*/statm, exactly what does "shared" mean?)]

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

From: Stas Bekman
Subject: Re: measuring shared memory on linux (was [Fwd: Re: /proc/*/statm, exactly what does "shared" mean?)]
Date: 23:45 on 14 Feb 2005
Perrin Harkins wrote:
[...]
> It seems that to tune properly you would need to send in requests with a
> benchmarking tool and keep adjusting MaxClients upward while watching
> the free memory on the box.  That's really ugly.  Maybe there's a way to
> count memory used by each process slowly but accurately which we could
> use during tuning at least.

that approach is not very practical if change your code base constantly. 
Since you will have to retune things every time you change your code.

I'd rather see the kernel providing a new feature which tells us the exact 
amount of memory used by a group of forked processes (swapped in and out). 
If we have this number we are gold. just maintain a table of absolute 
process sizes and kill the biggest processes, when that total memory usage 
number is bigger than the limit. i.e. limiting all procs at once, rather 
on the process by process basis. So this will still provide a solid 
protection from swapping.


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: measuring shared memory on linux (was [Fwd: Re: /proc/*/statm, exactly what does "shared" mean?)]
Stas Bekman 23:45 on 14 Feb 2005

Generated at 10:23 on 16 Feb 2005 by mariachi v0.52