Re: reindex/vacuum locking/performance? - Mailing list pgsql-performance

From Tom Lane
Subject Re: reindex/vacuum locking/performance?
Date
Msg-id 1368.1065373870@sss.pgh.pa.us
Whole thread Raw
In response to Re: reindex/vacuum locking/performance?  ("Matt Clark" <matt@ymogen.net>)
Responses Re: reindex/vacuum locking/performance?  ("Matt Clark" <matt@ymogen.net>)
List pgsql-performance
"Matt Clark" <matt@ymogen.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

pgsql-performance by date:

Previous
From: "Matt Clark"
Date:
Subject: Re: reindex/vacuum locking/performance?
Next
From: "Matt Clark"
Date:
Subject: Re: reindex/vacuum locking/performance?