Unix Technical Forum

Re: seq scan cache vs. index cache smackdown

This is a discussion on Re: seq scan cache vs. index cache smackdown within the Pgsql Performance forums, part of the PostgreSQL category; --> Josh Berkus wrote: > Now you can see why other DBMSs don't use the OS disk cache. There's > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 11:08 AM
Merlin Moncure
 
Posts: n/a
Default Re: seq scan cache vs. index cache smackdown

Josh Berkus wrote:
> Now you can see why other DBMSs don't use the OS disk cache. There's
> other
> issues as well; for example, as long as we use the OS disk cache, we

can't
> eliminate checkpoint spikes, at least on Linux. No matter what we do

with
> the bgwriter, fsyncing the OS disk cache causes heavy system activity.


MS SQL server uses the O/S disk cache...the database is very tightly
integrated with the O/S. Write performance is one of the few things SQL
server can do better than most other databases despite running on a
mid-grade kernel and a low-grade filesystem...what does that say?
ReadFileScatter() and ReadFileGather() were added to the win32 API
specifically for SQL server...this is somewhat analogous to transaction
based writing such as in Reisfer4. I'm not arguing ms sql server is
better in any way, IIRC they are still using table locks (!).

> > It seems inevitable that Postgres will eventually eliminate that

> redundant
> > layer of buffering. Since mmap is not workable, that means using

> O_DIRECT
> > to read table and index data.


IMO, The O_DIRECT argument makes assumptions about storage and o/s
technology that are moving targets. Not sure about mmap().

Merlin

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:44 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com