Received: from comet.pacifier.com ([199.2.117.155]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0BJghB08826 for ; Fri, 11 Jan 2002 14:42:43 -0500 (EST) (envelope-from dhogaza@pacifier.com) Received: from pacifier.com (dsl-dhogaza.pacifier.net [207.202.226.68]) by comet.pacifier.com (8.11.2/8.11.1) with ESMTP id g0BJfsX16453; Fri, 11 Jan 2002 11:41:55 -0800 (PST) Message-ID: <3C3F402E.30208@pacifier.com> Date: Fri, 11 Jan 2002 11:42:38 -0800 From: Don Baccus User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221 X-Accept-Language: en-us MIME-Version: 1.0 To: Bruce Momjian CC: "Ross J. Reedstrom" , pgsql-hackers@postgresql.org Subject: Re: again on index usage References: <200201111830.g0BIUrR26824@candle.pha.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200201/495 X-Sequence-Number: 17520 Bruce Momjian wrote: > Also, when we pull from the kernel cache we have to read into our shared > buffers; much faster than disk i/o but slower than if they were already > in the cache. Yes ... this is one reason why folks like Oracle want to be able to bypass the kernel cache. > For me the idea of doing non-cached sequential scans came > from a Solaris internals book I was reading. I think it will be > possible to mark large sequential scan buffer i/o with lower priority > caching that may help performance. However, if others are also doing > sequential scans of the same table _only_, our normal caching may be > best. As you can see, this gets quite complicated and I am doubtful > there will be a general solution to this problem --- more of a feedback > loop may be the best bet --- determine which sequential scans are wiping > the cache with little other purpose and start not caching them. It would be interesting to learn more about the actual hueristic Oracle uses (straight percents of the buffer cache? Something based on concurrency? I have no idea). The Oracle folks have got tons and tons of data on real-world big, busy db installations to draw from when they investigate such things. -- Don Baccus Portland, OR http://donb.photo.net, http://birdnotes.net, http://openacs.org