| From: | "Luke Lonergan" <LLonergan(at)greenplum(dot)com> | 
|---|---|
| To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | "PGSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>, "Doug Rady" <drady(at)greenplum(dot)com>, "Sherry Moore" <sherry(dot)moore(at)sun(dot)com> | 
| Subject: | Re: Bug: Buffer cache is not scan resistant | 
| Date: | 2007-03-05 02:35:31 | 
| Message-ID: | C3E62232E3BCF24CBA20D72BFDCB6BF802AF2808@MI8NYCMAIL08.Mi8.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
One more thing: the L2 is invalidated when re-written from the kernel IO cache, but the pages addressed in L2 retain their values when 'writeen thru' which allows the new data to be re-used up the executor chain.
- Luke
Msg is shrt cuz m on ma treo
 -----Original Message-----
From: 	Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent:	Sunday, March 04, 2007 08:36 PM Eastern Standard Time
To:	Luke Lonergan
Cc:	PGSQL Hackers; Doug Rady; Sherry Moore
Subject:	Re: [HACKERS] Bug: Buffer cache is not scan resistant
"Luke Lonergan" <llonergan(at)greenplum(dot)com> writes:
> The issue is summarized like this: the buffer cache in PGSQL is not "scan
> resistant" as advertised.
Sure it is.  As near as I can tell, your real complaint is that the
bufmgr doesn't attempt to limit its usage footprint to fit in L2 cache;
which is hardly surprising considering it doesn't know the size of L2
cache.  That's not a consideration that we've ever taken into account.
I'm also less than convinced that it'd be helpful for a big seqscan:
won't reading a new disk page into memory via DMA cause that memory to
get flushed from the processor cache anyway?  I wonder whether your
numbers are explained by some other consideration than you think.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | ITAGAKI Takahiro | 2007-03-05 04:10:03 | Automatic adjustment of bgwriter_lru_maxpages (was: Dead Space Map version 2) | 
| Previous Message | Luke Lonergan | 2007-03-05 02:32:27 | Re: Bug: Buffer cache is not scan resistant |