Re: Fragmentation was RE: [GD-General] Compile times
Brought to you by:
vexxed72
From: Thatcher U. <tu...@tu...> - 2002-12-21 23:26:53
|
On Dec 19, 2002 at 12:54 -0800, Mick West wrote: > > In Tony Hawk's Pro Skater 4 on the PS2, I just did a few tests, and on > the main heap, there are 474 different sizes of memory allocation in > 18,000 blocks (Taking the most frequent 6 sizes accounts for 12,000 of > these). Script heap (our next biggest heap) has 202 different sizes in > 7800 blocks (5000 of them in the most frequent 6 block sizes). We have > about seven distinct heaps using around 30,000 blocks, and 6 "pools" for > various fixed size allocations, using around 100,000 blocks Cool, thanks for the numbers. It sounds like it fits the general pattern. The thing that strikes me immediately is: seven heaps?! Are these traditional malloc/free-type heaps, or is it more like malloc, with occasional wipe-it-all-clean? It seems like using a unified heap could reduce external fragmentation (i.e. if each heap is not full all the time, then one heap's extra can't be used by another heap). But I'm assuming you're doing something more than just malloc/free with each of those heaps. -- Thatcher Ulrich http://tulrich.com |