Re: Memory reclamation under Linux(es) ?
- From: Dances With Crows <danSPANceswitTRAPhcrows@xxxxxxxxx>
- Date: Mon, 30 Oct 2006 08:46:03 -0600
On 30 Oct 2006 05:02:37 -0800, Tarkin staggered into the Black Sun and
said:
Firefox 2.0 has problems with memory leaks.
I think they may have jumped the gun on the release. Big surprise, eh?
This is why you never use the latest thing, you wait until all the
reports from early adopters filter in so you can decide if the bugs
reported are worth putting up with.
Are there any (up-to-date) [docs] on how 2.4 kernels manage memory?
You'd probably have better luck finding docs on the 2.6 series, since
everyone's using that now. I highly doubt the problem is with the
kernel, though, since you're not complaining about any other app having
memory leaks.
After a leaking application exits, is the memory reclaimed in any way,
other than releasing any 'locks'(?) the app had on it? Or are memory
leaks related to improper use/calling of mfree() and derivatives?
What's mfree()? Did you mean free()? When a process malloc()s
something, typically memory is allocated in page-sized (4K) blocks. The
kernel maintains several lists of unused pages, pages used by processes,
pages that have been moved to swap, etcetera. There is at least one
level of indirection between physical memory and and the page tables,
possibly 2 or 3.
A short C program that malloc()s and free()s a 10M chunk of memory shows
about 11M VSZ in ps auxw after the malloc, and about 1M VSZ after the
free. I don't know whether this is useful or reliable data, though.
Are there any user-space, third-party, or kernel extensions which keep
tabs on memory, akin to a garbage collector?
? Garbage collection is not done in C/C++. There are libraries like
ElectricFence that help you find memory leaks in C/C++ programs. If
you're interested in finding/fixing the leaks in Firefox 2, I'm sure the
developers would like people to help them out. Contact them, see what
they say.
--
Life is a persistent hallucination, Death a mere illusion.
Taxes, however, are Objective Reality.
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.
- References:
- Memory reclamation under Linux(es) ?
- From: Tarkin
- Memory reclamation under Linux(es) ?
- Prev by Date: Re: es1869 sound not working in FC6
- Next by Date: Re: Which Distribution for VMWare
- Previous by thread: Memory reclamation under Linux(es) ?
- Next by thread: Re: Memory reclamation under Linux(es) ?
- Index(es):
Relevant Pages
|