Moving 'hot' pages from buffer pool to heap

From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Moving 'hot' pages from buffer pool to heap
Date: 2013-08-05 19:36:20
Message-ID: CAOeZVie+HUMzNiVkP=aFNTiJRKs947AYkd4K88MzHiw5Ehje4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

I was experimenting with the idea of moving hot buffer pages from the
buffer pool to heap, thus allowing for normal removal of the hot
buffer page from the buffer pool and freeing the corresponding buffer
pool slot.

This shouldnt be too hard to implement, we just need to keep track of
the number of times a page was accessed(or the duration of pins held,
I am not sure).

The point is to not hold a buffer pool slot for more than a fixed
duration of time, to ensure constant flow in the buffer pool.

Has there been discussion about it done previously? I couldnt find an
existing implementation, nor a discussion for the same. If I missed
anything, please point me to it.

Please let me know your feedback and comments.

Thanks and Regards,

Atri

--
Regards,

Atri
l'apprenant

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2013-08-05 19:37:09 Re: don't own lock of type?
Previous Message Joshua D. Drake 2013-08-05 19:35:47 Re: Autovacuum different in 9.2.4?