| От | Tom Lane |
|---|---|
| Тема | Re: [PATCHES] update i386 spinlock for hyperthreading |
| Дата | |
| Msg-id | 23806.1072804575@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [PATCHES] update i386 spinlock for hyperthreading (Manfred Spraul <manfred@colorfullife.com>) |
| Ответы |
Re: [PATCHES] update i386 spinlock for hyperthreading
|
| Список | pgsql-hackers |
Manfred Spraul <manfred@colorfullife.com> writes:
> Are there strategies that do not rely on a global lock? The Linux kernel
> uses a lazy LRU with referenced bits: on access, the referenced bit is
> set. The freespace logic takes pages from the end of a linked list, and
> checks that bit: if it's set, then the page is moved back to the top of
> the list. Otherwise it's a candidate for replacement.
I think this is the same idea as what I was just suggesting: add an
extra check when looking for a free page, and thereby avoid having to
lock/update the global datastructure during ReadBuffer.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера