[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A question about memory usage

Andrew Sackville-West <andrew@farwestbilliards.com> writes:

> On Tue, Jun 12, 2007 at 11:32:00AM -0400, Scott Gifford wrote:


>> Figuring out exactly how much memory a set of processes are using is a
>> difficult problem.  Looking in /proc/$pid/maps is a good place to
>> start.
> probably the easiest thing is to use free in two states: with the
> process running and without. 
> if all other factors are the same, then the difference would be the
> amount of memory used by the process in question.
> or is there something wrong with that?

It's a good idea for many circumstances.  It's a bit imprecise on a
normal system with all of its running processes, since the memory
usage of other things will fluctuate all the time.  And it requires
killing the database, which isn't always acceptable in a production


Reply to: