some questions about buffer management - Mailing list pgsql-hackers

From Cuong bui
Subject some questions about buffer management
Date
Msg-id 200306302032.58597.xoror@infuse.org
Whole thread Raw
List pgsql-hackers
hi all,

i'm progressing with my implementation of ARC to try to replace LRU.
I have the following questions:

- When do we know we have a page fault ?i've found AddBufferToFreelist() to be one. but are there other places as 
well ?

- What variable holds the number of our cache capacity ?
i'm guessing on NBuffers for now.

-How do we know we had a cache hit ?
i'm guessing ReadBuffer for know. Are there other calls as well ?

-How do i wait for a buffer tot get undirty ?

ok hope to hear from someone soon ;) 




pgsql-hackers by date:

Previous
From: Hans-Jürgen Schönig
Date:
Subject: Re: dblink_ora - a first shot on Oracle ...
Next
From: Ronald Khoo
Date:
Subject: 2PC: discussion in comp.arch