Re: [HACKERS] drop duplicate buffers in OS

2014-03-04 Thread Robert Haas
On Wed, Jan 29, 2014 at 2:53 AM, KONDO Mitsumasa wrote: > Attached is latest patch. > I change little bit at PinBuffer() in bufmgr.c. It will evict target clean > file cache in OS more exactly. > > - if (!(buf->flags & BM_FADVED) && !(buf->flags & BM_JUST_DIRTIED)) > + if (!(buf->flags & BM_DIRTY)

Re: [HACKERS] drop duplicate buffers in OS

2014-01-28 Thread KONDO Mitsumasa
Hi, Attached is latest patch. I change little bit at PinBuffer() in bufmgr.c. It will evict target clean file cache in OS more exactly. - if (!(buf->flags & BM_FADVED) && !(buf->flags & BM_JUST_DIRTIED)) + if (!(buf->flags & BM_DIRTY) && !(buf->flags & BM_FADVED) && !(buf->flags & BM_JUST_DIR

Re: [HACKERS] drop duplicate buffers in OS

2014-01-28 Thread Jeff Janes
On Wed, Jan 15, 2014 at 10:34 AM, Robert Haas wrote: > On Wed, Jan 15, 2014 at 1:53 AM, KONDO Mitsumasa > wrote: > > I create patch that can drop duplicate buffers in OS using usage_count > > alogorithm. I have developed this patch since last summer. This feature > seems to > > be discussed in h

Re: [HACKERS] drop duplicate buffers in OS

2014-01-16 Thread KONDO Mitsumasa
(2014/01/16 3:34), Robert Haas wrote: On Wed, Jan 15, 2014 at 1:53 AM, KONDO Mitsumasa wrote: I create patch that can drop duplicate buffers in OS using usage_count alogorithm. I have developed this patch since last summer. This feature seems to be discussed in hot topic, so I submit it more fa

Re: [HACKERS] drop duplicate buffers in OS

2014-01-16 Thread KONDO Mitsumasa
(2014/01/16 21:38), Aidan Van Dyk wrote: Can we just get the backend that dirties the page to the posix_fadvice DONTNEED? No, it can remove clean page in OS file caches. Because if page is dirtied, it cause physical-disk-writing. However, it is experimental patch so it might be changed by futur

Re: [HACKERS] drop duplicate buffers in OS

2014-01-16 Thread Aidan Van Dyk
Can we just get the backend that dirties the page to the posix_fadvice DONTNEED? Or have another helper that sweeps the shared buffers and does this post-first-dirty? a. On Wed, Jan 15, 2014 at 1:34 PM, Robert Haas wrote: > On Wed, Jan 15, 2014 at 1:53 AM, KONDO Mitsumasa > wrote: > > I crea

Re: [HACKERS] drop duplicate buffers in OS

2014-01-15 Thread Robert Haas
On Wed, Jan 15, 2014 at 1:53 AM, KONDO Mitsumasa wrote: > I create patch that can drop duplicate buffers in OS using usage_count > alogorithm. I have developed this patch since last summer. This feature seems > to > be discussed in hot topic, so I submit it more faster than my schedule. > > When

[HACKERS] drop duplicate buffers in OS

2014-01-14 Thread KONDO Mitsumasa
Hi, I create patch that can drop duplicate buffers in OS using usage_count alogorithm. I have developed this patch since last summer. This feature seems to be discussed in hot topic, so I submit it more faster than my schedule. When usage_count is high in shared_buffers, they are hard to drop fro