Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2001 09:49:52 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Debugging memory leak
Message-ID:  <Pine.BSF.4.21.0111080948450.76499-100000@InterJet.elischer.org>
In-Reply-To: <Pine.SOL.4.21.0111081058270.3920-100000@onyx>

next in thread | previous in thread | raw e-mail | index | archive | help
add your own malloc types (several).
and then use them. 
vmstat -m should show you which of your types are leaking.



On Thu, 8 Nov 2001, Zhihui Zhang wrote:

> 
> I am debugging a KLD.  After each run, there is always some memory in use
> as indicated by vmstat -m. In other words, some memory are still in use by
> the KLD. Is there any way to detect the memory leak?
> 
> After I do kldunload, all memory used by it is gone.  But I doubt that the
> memory is actually returned to the global pool. Probably, it is only the
> statistical information is gone.
> 
> Any help or suggestion is appreciated.
> 
> -Zhihui
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0111080948450.76499-100000>