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 1jM0TI-0008Ux-9I for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2020 02:29:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM0TH-0001xO-7E for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2020 02:29:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0TG-0001xG-VQ for pgsql-general@lists.postgresql.org; Wed, 08 Apr 2020 02:29:42 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0TA-0002Io-8R for pgsql-general@postgresql.org; Wed, 08 Apr 2020 02:29:41 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 0BACA719; Tue, 7 Apr 2020 22:29:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 07 Apr 2020 22:29:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=QKrV18mKAs4ms++VZvi598IyszT n/EkQ0KnWJWZPV7o=; b=jRkhy1NjXqscuX46E01tGl9qQ+z9Tdd4VzPupme5Elf ms0AnWxVlohxNOMAO7Q9eznLcO9QtjZW2S3jO1MUEZrr30x27bB1eCfp5Qtx3Uo9 /m0UV/PCZY9jWpt2LB2oJWcIHODNpzJ2mjSgn/jPe2lcxDWuHZw9d7DcXgn4xrvs VFu4dKdGpgfeuet6c++MKH4NXBgFs/rLpf/rzIhd6Bop6CotJinKE4U0agldkCTL dq145f15WMA6kN3hHnEPvR5C6pVup9bC9DWwcF6PCw5TNwBRiJz746ztYz2e0bQa +efnG91welpbXliA9pGBY/62r22K5htgAgu/1AqPsCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=QKrV18 mKAs4ms++VZvi598IyszTn/EkQ0KnWJWZPV7o=; b=mmh1rdRB0ZPQBgufGsl+hg 9XXi4vn8/J0tLz1mAOS/iW48gzKtf/mjhRmzrow27xS+3D1XEaWDCQIwccYm4OAB x4P63n3MNRbNU59aJ6g3wQPhNfeUibzG3BA0Tsmj2/93DgeRKzFnRhaZznmKFHWi T76usgvdKho4WV7mScAN7WsntHfQODTDnYa7ctTxYpMTWYpyNspInjbOR/LO+dYZ lADqVp8u3bldUgbRZn8qygIPnBk+aT0kV2L1/aCV9yR22nKBRYUXwYoA/seOL2x/ MiwzxZ4n+9K9M9stZwHXGIg+L6UuAPO5MCRhxG3S+lWNP4YJi025cNLE1XuIkRvg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecukfhppeduuddurddutd dvrddukedtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id DBCEB306D615; Tue, 7 Apr 2020 22:29:32 -0400 (EDT) Date: Wed, 8 Apr 2020 11:29:30 +0900 From: Michael Paquier To: BGoebel Cc: pgsql-general@postgresql.org Subject: Re: Using of --data-checksums Message-ID: <20200408022930.GD1606@paquier.xyz> References: <1586272213908-0.post@n3.nabble.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sgneBHv3152wZ8jf" Content-Disposition: inline In-Reply-To: <1586272213908-0.post@n3.nabble.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --sgneBHv3152wZ8jf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 07, 2020 at 08:10:13AM -0700, BGoebel wrote: > initdb --data-checksums "... help to detect corruption by the I/O system" > There is an (negligible?) impact on performance, ok.=20 > =20 > Is there another reason NOT to use this feature ? > Has anyone had good or bad experience with the use of --data-checksums? FWIW, I have a good experience with it. Note that some performance impact of up to ~1% may be noticeable if you have a large number of buffer evictions from PostgreSQL shared buffer pool, but IMO the insurance of knowing that Postgres is not the cause of an on-disk corruption is largely worth it (in applications where I got that enabled we did not notice any performance impact even in very heavy production-like workloads, and this even if we had a rather low shared buffer setting with a much larger set of hot pages, causing the OS cache to be filled with most of the hot data). -- Michael --sgneBHv3152wZ8jf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6NNwoACgkQnvQgOdby QH3NEQ//dAiyfGkqDF3KsDej73aNuZZaqhcgoMnNDRUF+sJxFh3duGbhJBG2jIRr ngo3I/DTcMD5BS8uUrA7sJjM/Sql5Y1tVAdEVIQyWFsn0p/KoW1g2QtC7wcJbPwU KwiF29gTRyUrMvRn2BCZo8oM5eQ6tRnwOAFuveer/mTLOsDEaYbzwHGMaw+cFHJW uFHo7u2ERQhcsvFt6+BuqR/kdKi7kYyG9KhtBBDB3R3+UqpzHERI77nZzMtgVv0k WHMcL6KwSy28ki44Kq0ElZhfo1gLTnGCtHQXZgk09f4OOovncVchgBoX1dIfJtgz YUVNLVv21op4pQ1vBXPCYe1KfWXSn0W6Mt87gy1D59N2XgZYytF7IUATIkBx0MiX 3EnTbzYXv2c4KFE6Nm0JWfqnMlllqHxiLEYunBcfyyFfTDg/yYZh6EP4eHPCPEzl 4O/uxmTvFrwXa4YS7OhtIIi45jgzR6rGQwdJyK//syBKDON9OhgODvA+fAX92BJI idTMKNN7JwNXrZnIfN/GOZeJlcQPGXy3klBICmBGjFNueI0LNtZGds5nc81R4x1q HCdoTR2VgWiPoU+qtDCTTQFZCu1CsmE68kOmc/d03xQvCRQTKy+vMvDJnD2JYB22 V3FHg23HCSIwNT2R6d6apdKn5JystIYs2/rsr3uPCfmrH+fcq7o= =uqeL -----END PGP SIGNATURE----- --sgneBHv3152wZ8jf--