Re: POSIX question

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: POSIX question
Дата
Msg-id A42AB4B6-851C-491E-A43D-3EC5436F8D00@phlo.org
обсуждение исходный текст
Ответ на POSIX question  (Radosław Smogura <rsmogura@softperience.eu>)
Ответы Re: POSIX question  (Radosław Smogura <rsmogura@softperience.eu>)
Re: POSIX question  (Florian Weimer <fweimer@bfk.de>)
Re: POSIX question  (Roger Leigh <rleigh@codelibre.net>)
Список pgsql-hackers
On Jun20, 2011, at 15:27 , Radosław Smogura wrote:
> 1. mmap some large amount of anonymous virtual memory (this will be maximum size of shared memory).
> ...
> Point 1. will no eat memory, as memory allocation is delayed and in 64bit platforms you may reserve quite huge chunk
ofthis, and in future it may be possible using mmap / munmap to concat chunks / defrag it etc. 

I think this breaks with strict overcommit settings (i.e. vm.overcommit_memory = 2 on linux). To fix that, you'd need a
wayto tell the kernel (or glibc) to simply reserve a chunk of virtual address space for further user. Not sure if
there'sa API for that... 

best regards,
Florian Pflug



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

Предыдущее
От: Florian Pflug
Дата:
Сообщение: Re: Range Types and extensions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Range Types and extensions