Re: DB logging (was: Problem with the numbers I reported yesterday) - Mailing list pgsql-hackers

From ocie@paracel.com
Subject Re: DB logging (was: Problem with the numbers I reported yesterday)
Date
Msg-id 9802170421.AA00429@dolomite.paracel.com
Whole thread Raw
In response to Re: DB logging (was: Problem with the numbers I reported yesterday)  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
>
> > What exactly do you mean by "raw devices" that it is not offered by
> > Linux?  If I take a partition of one of my hard drives and I don't
> > make a filesystem on it, I can perform reads and writes on the "raw
> > device" /dev/hd?? or /dev/sd??  I didn't think these writes were
> > buffered (if that's what you're referring to), but I could be wrong.
>
> Your /dev/hd* goes through the the buffer cache, the raw versions
> /dev/rhd* does not.

Actually on Linux, there is no raw/cooked drive interface as in
Solaris.  In Solaris, the /dev/dsk/ devices are buffered by the OS,
while their counterparts in /dev/rdsk are not.  Linux only has the one
interface to the partition, which is raw.  Code which uses these raw
devices (the filesystem code) must supply its own buffering.

Anyway, I don't want to prolong this tangential topic.  Linux should
provide raw devices, but does not (as Solaris does) provide buffered
or cooked access to disks.

Ocie Mitchell

pgsql-hackers by date:

Previous
From: Michael Hirohama
Date:
Subject: Re: [HACKERS] Re: Subselects open issue Nr. NEW
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Shared tables