pcp
[Top] [All Lists]

Re: [pcp] pmcd on mac rsize ~1.8GB

To: Max Matveev <makc@xxxxxxxxx>
Subject: Re: [pcp] pmcd on mac rsize ~1.8GB
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 15 Nov 2010 15:06:00 +1100 (EST)
Cc: Nate Pearlstein <darknater@xxxxxxxxxxxxx>, pcp@xxxxxxxxxxx
In-reply-to: <19680.43545.980733.267914@xxxxxxxxxxxx>
----- "Max Matveev" <makc@xxxxxxxxx> wrote:

> On Mon, 15 Nov 2010 08:14:18 +1100, Max Matveev wrote:
> 
>  makc> On Sat, 13 Nov 2010 20:45:55 -0500, Nate Pearlstein wrote:
> 
>  NP> on my mbp and imac.  As time goes on, the rsize grow to ~1.8GB.
>  NP> This can't be right.  Anything I can do to track this down?  I'm
>  NP> not too familiar with mac profiling tools.
> 
>  makc> Suprisingly, the answer is to use leaks(1). I'm assuming that
> you do
>  makc> have XCode installed.
> 
> Quick check reveals few places where pmcd PMDA was a bit naive about
> memory management - see leaks branch on git://oss.sgi.com/makc/pcp.

Nice.  Use of ctime_r here is a bit questionable - what's that in aid of?
Doesn't seem to be needed in this content...?  Its not used anywhere else
in pcp, and is unlikely to build on at least one supported platform.  :)

cheers.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>