Re: reindex/vacuum locking/performance?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matt Clark" <matt(at)ymogen(dot)net>
Cc: "Andrew Sullivan" <andrew(at)libertyrms(dot)info>, pgsql-performance(at)postgresql(dot)org
Subject: Re: reindex/vacuum locking/performance?
Date: 2003-10-05 17:11:10
Message-ID: 1368.1065373870@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Matt Clark" <matt(at)ymogen(dot)net> writes:
> OK I'm definitely missing something here.

The point is that a big seqscan (either VACUUM or a plain table scan)
hits a lot of pages, and thereby tends to fill your cache with pages
that aren't actually likely to get hit again soon, perhaps pushing out
pages that will be needed again soon. This happens at both the
shared-buffer and kernel-disk-cache levels of caching.

It would be good to find some way to prevent big seqscans from
populating cache, but I don't know of any portable way to tell the OS
that we don't want it to cache a page we are reading.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matt Clark 2003-10-05 17:59:14 Re: reindex/vacuum locking/performance?
Previous Message Matt Clark 2003-10-05 16:46:21 Re: reindex/vacuum locking/performance?