Re: dynamically allocating chunks from shared memory

Поиск
Список
Период
Сортировка
От Markus Wanner
Тема Re: dynamically allocating chunks from shared memory
Дата
Msg-id 4C605241.1050108@bluegap.ch
обсуждение исходный текст
Ответ на Re: dynamically allocating chunks from shared memory  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On 08/09/2010 09:00 PM, Bruce Momjian wrote:
> You could allocate shared memory in chunks and then pass that out to
> requestors, the same way sbrk() does it.

sbrk() is described [1] as a "low-level memory allocator", which "is 
typically only used by the high-level malloc memory allocator 
implemented in the C library".

Think of my patch as the high(er)-level variant ;-)   It's certainly 
doable using processes and shared memory. Yes. My patch shows one way of 
how to go a step into that direction.

Regards

Markus Wanner

[1]: http://www.cs.utah.edu/flux/moss/node39.html


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: host name support in pg_hba.conf
Следующее
От: Robert Haas
Дата:
Сообщение: Re: dynamically allocating chunks from shared memory