Re: AW: [HACKERS] mmap and MAP_ANON

Поиск
Список
Период
Сортировка
От Göran Thyni
Тема Re: AW: [HACKERS] mmap and MAP_ANON
Дата
Msg-id 355B0CD6.58F3CF3B@bildbasen.se
обсуждение исходный текст
Ответ на AW: [HACKERS] mmap and MAP_ANON  (Andreas Zeugswetter <andreas.zeugswetter@telecom.at>)
Список pgsql-hackers
Andreas Zeugswetter wrote:
>
> >> - Could we use mmap:ing of files at a higher level then
> >>   src/backend/strorage/ipc/ipc.c to get even better performance
> >>   and cleaness?
> >
> >Yes, we could use mmap() to map the actual files.  I will post time
> >timings on this soon.
>
> I do not think this will be a practicable solution, since it would mean the whole db
> has to mmap'ed. This means there has to be enough virtual memory to hold
> the complete database, or at least one table at a time. Or do I understand this wrong ??

Why would we map the whole database or even a whole table?
You can map the section of a file you are interested in.

# man mmap

Besides a sensible memory manager does not actually map the pages
until they are access, unfort. not all OSes are sensible.


--
---------------------------------------------
Göran Thyni, sysadm, JMS Bildbasen, Kiruna

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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] char(8) vs char8
Следующее
От: darcy@druid.net (D'Arcy J.M. Cain)
Дата:
Сообщение: Re: [HACKERS] char(8) vs char8