AW: [HACKERS] RAW I/O device

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "'pgsql-hackers(at)postgreSQL(dot)org'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: AW: [HACKERS] RAW I/O device
Date: 1999-12-07 11:06:08
Message-ID: 219F68D65015D011A8E000006F8590C603FDC1B1@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > new way for a faster and better database engine. I know (and agree)
> > that it not is priority for next year(s?). But it is
> interesting, and
> > is prabably good remember it during development, and not
> write (in future)
> > features which close this good way.
>
> I would be very surprised to see any significant change in raw vs.
> filesystem i/o on modern file systems,

Beleive me, the difference is substantial.
When you test this you will typically need DB's, that
are larger than your OS file cache.
Second you need to add the memory, that is used by the OS to
cache the DB files to the DB buffer cache when testing raw devs.
Typically you will also use async IO.

One other advantage is, that extending/creating a big raw device
is way faster (takes subseconds for 2 Gb) than creating a big file
(takes minutes). This is especially a pain during restores.
Restores to raw devices (including device/file creation)
are typically only little slower than the backup.

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message info@wd-g.com 1999-12-07 11:11:06
Previous Message Zeugswetter Andreas SB 1999-12-07 10:42:35 AW: [HACKERS] RAW I/O device