Re: Debugging memory allocation

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

From: David Nicol
Subject: Re: Debugging memory allocation
Date: 20:59 on 10 May 2005
On 5/10/05, Igor Chudov <ichudov@xxxxx.xxx> wrote:
> LogHandler seems
> like such a place.

Undoubtably.  But how do you get the memory usage? read /proc/$$/mem or
something? there is not, AFAICTFRAQG (as far as I can tell from recollectio=
n
and quick googling) a line noise variable for current memory usage, and cpa=
n
only has a procfs module defined for Solaris.  So the question remains, aft=
er
choosing loghandler as the way to write to the log, how to get the memory
usage information?  Is there a better way than ps in backticks?
Proc::ProcessTable
might be the thing -- it appears to reimplement ps with the output as
a perl data
structure rather than linefeed-separated records.  There is also Unix::Proc=
ess,
but that is merely a wrapper  for ps in backticks.

(message missing)

Debugging memory allocation
Igor Chudov 17:24 on 09 May 2005

Re: Debugging memory allocation
Sam Tregar 18:46 on 09 May 2005

Re: Debugging memory allocation
Perrin Harkins 18:52 on 09 May 2005

Re: Debugging memory allocation
Igor Chudov 19:32 on 10 May 2005

Re: Debugging memory allocation
David Nicol 19:51 on 10 May 2005

Re: Debugging memory allocation
Igor Chudov 19:54 on 10 May 2005

Re: Debugging memory allocation
David Nicol 20:59 on 10 May 2005

Re: Debugging memory allocation
Igor Chudov 21:03 on 10 May 2005

Re: Debugging memory allocation
Stas Bekman 20:26 on 10 May 2005

Re: Debugging memory allocation
Perrin Harkins 21:01 on 10 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52