Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1na2Pn-0005bd-HD for pgsql-admin@arkaria.postgresql.org; Thu, 31 Mar 2022 21:33:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1na2Pm-0007rw-0v for pgsql-admin@arkaria.postgresql.org; Thu, 31 Mar 2022 21:33:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1na2Pl-0007rn-Mj for pgsql-admin@lists.postgresql.org; Thu, 31 Mar 2022 21:33:09 +0000 Received: from impout008aa.msg.chrl.nc.charter.net ([47.43.20.32] helo=impout008.msg.chrl.nc.charter.net) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1na2Pe-0001DO-Q8 for pgsql-admin@lists.postgresql.org; Thu, 31 Mar 2022 21:33:09 +0000 Received: from cerberus.crazybean.net ([71.11.29.254]) by cmsmtp with ESMTP id a2PbnlpBDDhksa2Pcn6iu0; Thu, 31 Mar 2022 21:33:00 +0000 Authentication-Results: crazybean.net; none X-Authority-Analysis: v=2.4 cv=eMcAMVl1 c=1 sm=1 tr=0 ts=62461e0c a=GkUsAQdcAzAk0MT19QAIRQ==:117 a=GkUsAQdcAzAk0MT19QAIRQ==:17 a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=o8Y5sQTvuykA:10 a=YfQFs2c5AAAA:8 a=jU4qhlNgAAAA:8 a=1aPWFJLwb29XuASg2AwA:9 a=CjuIK1q_8ugA:10 a=RJ9ZwYoF-SwA:10 a=XXry1A_VxHPudjIMQgMN:22 Received: from smtpclient.apple ( [2001:470:e117:3:c453:8437:7c6d:3b91]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id 2038c97c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 31 Mar 2022 17:32:59 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: WAL & ZFS From: Rui DeSousa In-Reply-To: Date: Thu, 31 Mar 2022 17:32:58 -0400 Cc: pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <43EEBE2E-4C7F-4F35-99BF-4DA8B5D3828A@crazybean.net> References: To: Scott Ribe X-Mailer: Apple Mail (2.3693.40.0.1.81) X-CMAE-Envelope: MS4xfKSSzCrVSY0S+d19GRT9QZA7RRsqTowTJLeJ4MwVsFQEFt3HcIH7R9x4ThjOY83DD3A7/uFa26rsNuDL/MYn7OzeajC73hWRYW6BFgVQd3xc2HTRe3e2 HYsWST4g1yYZ/lYagQoVcADFOxXObfKbyA5Aosv910M7GXmb5BV4CSwsWAGnkIa6uAi9qi3uqLRRSUrifa41soX54r+tupfQpdHQHfd/8bsqdaG56SnIF5Lf IIk3s5aJCpAZlPBL/+WJTg== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I would recommend a separate pg_wal filesystem with the record size to = match the WAL page size; in my case 16k. I have keep the default record = size at 128k for the data volume and that configuration has worked well = for supporting large DSS while using 16k data blocks. > On Mar 30, 2022, at 5:32 PM, Scott Ribe = wrote: >=20 > I've read all the info I could find re running PG on ZFS: turn off = full page writes, turn on lz4, tweak recordsize so as to take advantage = of compression, etc. One thing I haven't seen is whether a separate = volume for WAL would benefit from a larger recordsize. Or any other = tweaks??? >=20 > -- > Scott Ribe > scott_ribe@elevated-dev.com > https://www.linkedin.com/in/scottribe/ >=20 >=20 >=20 >=20 >=20