Re: Performance problem in aset.c

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Performance problem in aset.c
Дата
Msg-id 200007121312.JAA21029@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Performance problem in aset.c  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
> At 23:48 11/07/00 -0400, Tom Lane wrote:
> >Another idea is to split the returned chunk and put the wasted part back
> >as a smaller free chunk, but I don't think this solves the problem; it
> >just means that the wasted space ends up on a small-chunk freelist, not
> >that you can actually do anything with it.  But maybe someone can figure
> >out a variant that works better.
> 
> Can you maintain one free list for each power of 2 (which it might already
> be doing by the look of it), and always allocate the max size for the list.
> Then when you want a 10k chunk, you get a 16k chunk, but you know from the
> request size which list to go to, and anything on the list will satisfy the
> requirement.

Sounds like the BSD malloc memory manager.  I can post details, or the
pages from a kernel book I have about it.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tim Perdue
Дата:
Сообщение: Re: 7.0.2 issues / Geocrawler
Следующее
От: Tim Perdue
Дата:
Сообщение: Re: Serious Performance Loss in 7.0.2??