Date: Wed, 28 Feb 2001 04:56:54 +0900 From: "Daniel C. Sobral" <dcs@newsguy.com> To: Tony Finch <dot@dotat.at> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Setting memory allocators for library functions. Message-ID: <3A9C0686.E4C80775@newsguy.com> References: <200102260529.f1Q5T8413011@curve.dellroad.org> <200102260628.f1Q6SYX29811@earth.backplane.com> <3A9A0A9A.E4D31F97@newsguy.com> <200102261755.f1QHtvr34064@earth.backplane.com> <3A9AAB02.793A197A@newsguy.com> <200102261940.f1QJeJi38115@earth.backplane.com> <3A9B6548.E298F857@newsguy.com> <20010227194233.J609@hand.dotat.at>
next in thread | previous in thread | raw e-mail | index | archive | help
Tony Finch wrote: > > >It doesn't trash. The memory is filled with backtracking information. > >Memory in active use at any time is rather small. > > I've read articles about programs which use GC which have a small > working set, although it is constantly changing (I've heard of > programs allocating megabytes a second). The OS would have to swap out > the stale pages if the program's total memory use exceeds RAM, and > when the GC finally runs it will take forever and thrash swap like > there's no tomorrow. It depends a lot on how allocation is made and the characteristics of the reachable objects graph. If the likeness of a reachable object existing in each page isn't small, it will trash indeed. On the other hand, if most objects created have very short lifetimes and a generational technique is used to move objects in the working set, then few pages of the swap will need to be swapped in for tracing, and the rest can be outright discarded without ever swaping them in. On the gripping hand, FreeBSD on configurations without swap is not unheard of by any means either, and overcommitting is still a problem in these configurations. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.obscure.bsdconspiracy.net I think you are delusional, but that is OK. Its part of your natural charm! 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?3A9C0686.E4C80775>