Re: memory allocation and powers of two

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: memory allocation and powers of two
Дата
Msg-id 25925.1062088221@sss.pgh.pa.us
обсуждение исходный текст
Ответ на memory allocation and powers of two  (David Schultz <dschultz@uclink.Berkeley.EDU>)
Список pgsql-hackers
David Schultz <dschultz@uclink.Berkeley.EDU> writes:
> While looking into a block size mismatch problem between
> Postgresql and FreeBSD's FFS, I noticed that postgresql is making
> some rather odd-sized requests to malloc(3): 0x2034, 0x2020,
> 0x4018, 0x8018, etc.

AFAICT the operative word there is "some" --- the heavily used paths
should make power-of-two requests to malloc, because aset block sizes
will normally be powers of two.  Can you put your finger on paths that
generate a significant number of non-power-of-two requests?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Index creation takes for ever
Следующее
От: ohp@pyrenet.fr
Дата:
Сообщение: Re: Index creation takes for ever