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 1pdedE-0002RH-Uj for pgsql-general@arkaria.postgresql.org; Sat, 18 Mar 2023 22:02:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pdedC-0001Mi-Ro for pgsql-general@arkaria.postgresql.org; Sat, 18 Mar 2023 22:02:30 +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 1pdedC-0001MZ-Gn for pgsql-general@lists.postgresql.org; Sat, 18 Mar 2023 22:02:30 +0000 Received: from brisi.sourcepole.ch ([5.9.57.43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pdedA-00029P-7X for pgsql-general@lists.postgresql.org; Sat, 18 Mar 2023 22:02:30 +0000 Received: from [213.55.225.13] (helo=[192.168.43.81]) by vilan-mail with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1pded9-0005Kh-09 for pgsql-general@lists.postgresql.org; Sat, 18 Mar 2023 23:02:27 +0100 Message-ID: <579584ee-3980-499a-ffdb-40f45f0e80f3@sourcepole.ch> Date: Sat, 18 Mar 2023 23:02:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: Properly handle OOM death? Content-Language: en-GB To: pgsql-general@lists.postgresql.org References: <20230313174301.23n6crb5dpttozup@hjp.at> <03239776-b0c6-94a8-7bb3-a1af363d745f@joeconway.com> <9616AB47-E78B-49FD-81AE-41015E13AADC@alaska.edu> <3E19F901-6C7D-44C1-BBFE-11F78F9EE38C@alaska.edu> <7B4AC414-F5C9-46E8-969E-B629414719FA@alaska.edu> From: Tomas Pospisek In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 13.03.23 21:25, Joe Conway wrote: > Hmm, well big +1 for having swap turned on, but I recommend setting > "vm.overcommit_memory=2" even so. I've snipped out the context here, since my advice is very unspecific: do use swap only as a safety net. Once your system starts swapping performance goes down the toilet. *t