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 1lBnO4-0006yC-7b for pgsql-general@arkaria.postgresql.org; Mon, 15 Feb 2021 23:34:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lBnO3-00044V-6V for pgsql-general@arkaria.postgresql.org; Mon, 15 Feb 2021 23:34:39 +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 1lBnO2-00044N-73 for pgsql-general@lists.postgresql.org; Mon, 15 Feb 2021 23:34:38 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBnNx-0002C9-4s for pgsql-general@lists.postgresql.org; Mon, 15 Feb 2021 23:34:37 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BF3295C00AA; Mon, 15 Feb 2021 18:34:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 15 Feb 2021 18:34:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=R MRLjHR88mJKh25vzv3YHn0+7PaqcmWvy0QaHh7YrRg=; b=X8TJVShrO65qxvrDo bgLfAqthotn+LeX12D1IJPY2Sl/eV4xSBg9hKE5RDP3hMg6Gcf/H4Z3SIABaYs6L kyOf/KgJWUY1v0Fm5RH0ORkZ3f58GYTTWOIQPXRnNe/XSONHqOal3TkCaOUfOn4c IKUSkBlKiXF9AzsQAGEFMRI8BUH7+bH0i07d44fXkeLjM/edKOWjQ6hQkZ82lG40 Vu1kCTncqyzWD9SVbshzd8jJWOSIeTQPZNdK5wThowrhEJU/MWH1n5CCepFXvONt 2nNj9EgCeh6VUPJASN4lomJOJrLLeDWUSx3QrGVJB981Kjf+qgGQ4LFaUzgnEYtb kgV8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=RMRLjHR88mJKh25vzv3YHn0+7PaqcmWvy0QaHh7Yr Rg=; b=DxBmAe3yuUoFImcmc7707dTJZK3EuHR8GSrioBaI8YsrOGL+qhmr7H3s/ CVbjqZPj5rqFxfMNJt/Z6baKiHih9mNejIqqARVT1HoOLnQHFBz37yCGgw3/b6xH Va9LcMPH4MbWO+KrksAqpBM9K4PtX9QpxirALBRE3I8w7zuagMS6K8AyPpJp5p+z 1cmdTVX76YKZpA95m5fIr/W9B1VNx0+WQpW2jZpoZgh0C6dhMkecoJ4TbtfPx9ZF PdsT2y3Qxwlm2vfIe1dNdxZQr2o+CIM0/N9L/+zwy8YnZfFtparv7+dT9mMgCL1i yLC2kfpLGbT0FUGenQD+fT7VeaBeg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrieelgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeduudefjeetve ffhefgudehtdfhvdetkeeiueehfeevveduteekleeuheegudehhfenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgnecukfhppeeljedruddufedrvddujedrvdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (97-113-217-27.tukw.qwest.net [97.113.217.27]) by mail.messagingengine.com (Postfix) with ESMTPA id 3F13A108005C; Mon, 15 Feb 2021 18:34:31 -0500 (EST) Subject: Re: checkpointer and other server processes crashing To: Joe Abbate , pgsql-general@lists.postgresql.org References: <90ca83ee-7add-2980-6962-f998336dbf5d@freedomcircle.com> From: Adrian Klaver Message-ID: <0c2b4473-3b73-857d-342e-acffa900c6db@aklaver.com> Date: Mon, 15 Feb 2021 15:34:30 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <90ca83ee-7add-2980-6962-f998336dbf5d@freedomcircle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/15/21 1:50 PM, Joe Abbate wrote: > On 15/2/21 16:29, Adrian Klaver wrote: >> On 2/15/21 1:15 PM, Joe Abbate wrote: >>> We've been experiencing PG server process crashes about every other >>> week on a mostly read only website (except for a single insert/update >>> on page access).  Typical log entries look like >>> >>> LOG:  checkpointer process (PID 11200) was terminated by signal 9: >>> Killed >>> LOG:  terminating any other active server processes >> >> Have you looked at the system logs to see if the OOM killer is involved? > > No, I hadn't, but now I see that of the past three crashes, four > postgres processes were OOM victims.  I guess I have to read the OOM > articles I've been skipping (read one a long time ago).  If you have any > specific suggestions, let me know. There are suggestions here: https://www.postgresql.org/docs/12/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT It probably would not hurt to figure why this seemed to happen with the Python -> Go switch. Even if you can get the OOM not to kick in, the fact that it was kicking in would indicate you now have memory hungry processes that did not exist before. The questions being is this strictly due to the language/framework change, natural growth of data set being worked with, or something else? > > Thanks Adrian, > > Joe -- Adrian Klaver adrian.klaver@aklaver.com