Re: [DOCS] The reference to 'atacontrol' on FreeBSD is outdated.

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: John Ekins <jrekins(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, pgsql-docs(at)postgresql(dot)org
Subject: Re: [DOCS] The reference to 'atacontrol' on FreeBSD is outdated.
Date: 2023-11-22 02:36:31
Message-ID: ZV1pL9R2keCJUXfb@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Wed, Nov 22, 2023 at 03:25:07PM +1300, Thomas Munro wrote:
> On Wed, Nov 22, 2023 at 2:12 PM Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > On Sat, Aug 12, 2017 at 10:47:00PM +0100, John Ekins wrote:
> > > Sure. Camcontrol does indeed cover IDE, SCSI and SAS drives.
> > >
> > > Replace this line:
> > > On FreeBSD, IDE drives can be queried using atacontrol...
> > >
> > > With this:
> > > On FreeBSD, IDE drives can be queried using camcontrol identify...
> > >
> > > In other words, the query is the same as for SCSI drives. For verification this
> > > is what the output looks like:
> > >
> > > root(at)bsd11desk:/home/jre # camcontrol identify 0:0:0 | egrep "Feature|write
> > > cache"
> > > Feature Support Enabled Value Vendor
> > > write cache yes yes
> > >
> > > I appreciate the Postgresql docs are not meant to be FreeBSD tutorials.
> >
> > I know this email is six years old, but I have applied this fix to all
> > supported Postgres versions. A huge apology for this delay.
>
> It's funny that we discuss IDE drives at all. They stopped being
> manufactured a decade ago and are not supported by modern chipsets or
> boards etc[1]. I've been meaning to do something about that, but I
> didn't have enough round tuits to research what to write about current
> storage technologies... but also in the case of FreeBSD, it doesn't
> let you turn the write cache on and off with nvmecontrol yet, but
> someone has a relevant patch out (D32700) so I was also waiting for
> that to go somewhere before writing in...

I don't think it is safe to disable the nvme cache since it is a cache
and a staging area. If you turn it off, it will burn out the chips over
time.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Only you can decide what is important to you.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2023-11-22 03:27:22 Re: [DOCS] intagg.sgml: example wrongly named and does not compile
Previous Message Thomas Munro 2023-11-22 02:25:07 Re: [DOCS] The reference to 'atacontrol' on FreeBSD is outdated.