Re: Large writable variables

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Large writable variables
Дата
Msg-id CA+Tgmobk-6=b2KLRRMUWGNWi9KzKrx=WNszr7DDE+QCuwNyrEQ@mail.gmail.com
обсуждение исходный текст
Ответ на Large writable variables  (Andres Freund <andres@anarazel.de>)
Ответы Re: Large writable variables
Список pgsql-hackers
On Mon, Oct 15, 2018 at 4:08 PM Andres Freund <andres@anarazel.de> wrote:
> So we have 500kb of not-initialized memory mapped into every
> process. That's, uh, not nothing.

Thinking about this a bit more, why is this bad?  I mean, if the
memory is never touched, the OS does not really need to allocate or
zero any pages, or even make any page table entries.  If somebody
actually accesses the data, then we'll take a page fault and have to
really allocate, but otherwise I would think we could have 50MB of
unused bss floating around and it wouldn't really matter, let alone
500kB.

What am I missing?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Large writable variables
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: Re: Index Skip Scan