Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r5d6X-00EHxp-Qd for pgsql-docs@arkaria.postgresql.org; Wed, 22 Nov 2023 02:36:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r5d6W-0046sq-ED for pgsql-docs@arkaria.postgresql.org; Wed, 22 Nov 2023 02:36:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r5d6W-0046si-6H for pgsql-docs@lists.postgresql.org; Wed, 22 Nov 2023 02:36:40 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r5d6P-006jtU-8G for pgsql-docs@postgresql.org; Wed, 22 Nov 2023 02:36:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=L7PjtfLJGaIqCR4zh+lsDQVTvxLG9VvcYHAIAjc4EnM=; b=iOleFjqZZw+jLrBSe+SPtA8l7N t+Gc3LbNMwg9AUfafeavQqta0mSuKUglbmqpCZh4saicCeY9YkHP0oNr0z0ImSrvGN/NjbLLbG/9u xvw63/4sVXn95kYSrnMIOpO7/n30LSVIl6Iv5B0yImK3GvuWf7DcheGqKkfsTsINg/em+Y/6vMwEQ 4K2VNLD94GuYKBNrwKneoMcZ3AvkzW+sworngxk4CER6UZIv7ohpxEbemw8Hc7eLp8abi2txzleVG 6wNqdYn9A29LAD3Ch8xufka0PFMCWSFmNxTD2Nvte7K3zLO6pIvP6jeznoWf9xnLn4aWZMvn3nsau b7uvGTtA==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1r5d6N-008503-0x; Tue, 21 Nov 2023 21:36:31 -0500 Date: Tue, 21 Nov 2023 21:36:31 -0500 From: Bruce Momjian To: Thomas Munro Cc: John Ekins , Peter Eisentraut , pgsql-docs@postgresql.org Subject: Re: [DOCS] The reference to 'atacontrol' on FreeBSD is outdated. Message-ID: References: <20170808224017.8424.69170@wrigleys.postgresql.org> <29e222a6-fd45-e049-ac5c-6bcba6ecdfd0@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Nov 22, 2023 at 03:25:07PM +1300, Thomas Munro wrote: > On Wed, Nov 22, 2023 at 2:12 PM Bruce Momjian 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@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 https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.