Date: Fri, 21 May 1999 12:21:51 -0700 From: Mike Smith <mike@smith.net.au> To: amobbs@allstor-sw.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: Wired memory "leaking" Message-ID: <199905211921.MAA01846@dingo.cdrom.com> In-Reply-To: Your message of "Fri, 21 May 1999 19:34:10 BST." <80256778.006601D6.00@mail.plasmon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > >I've got a problem that my KLD is "leaking" wired memory. > > > >It's not actually growing in size, vmstat -m shows a fairly constant > allocation, >and certainly "high" isn't increasing. It's just that as I use it > more, and more >memory gets wired down, and the system becomes unusable. > [blah] > > Just for the archives, it was, predictably, a memory leak after all. My _vnops.c > wasn't freeing the cn_pnbuf. > > Why Oh Why(tm) is everything else freed for you, but the path buffer is left to > the poor, confused, FS to free? Because you may have reallocated it yourself (eg. following a symbolic link type object). At least, that's the only justification I've come up with. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com 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?199905211921.MAA01846>