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 1pUuXV-0000an-QE for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Feb 2023 19:12:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pUuXU-0003RG-Lj for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Feb 2023 19:12:28 +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 1pUuXU-0003Of-98 for pgsql-bugs@lists.postgresql.org; Wed, 22 Feb 2023 19:12:28 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pUuXR-0006Rb-EW for pgsql-bugs@lists.postgresql.org; Wed, 22 Feb 2023 19:12:27 +0000 Received: by mail-il1-x131.google.com with SMTP id i24so3882165ila.7 for ; Wed, 22 Feb 2023 11:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=S8e40s9+JoYPe/NUromgZJDws7TZD3lmQO69ladLnM8=; b=xz7mDOYa3ZF0xlcWDZj6Px6tVF2oBSvvM59DN+N6Sz4u/PRGMYTPgdGH3C+wgWWVz0 ykrnjz/0dOTt5eZY/SjRnQ52grcCPgVgKiIfQj0OLMMQwhk/N/XOMut7pJX/uHZhrKJE TkrcSXlK0jp38b5amEoNTVgbFP7hkB5aFH9ZOHVeoDDwi6MRVe3TrREjX7jl3pvL5yHo hPVj8uXJ3rxZugzb1tclr/l3xf4dU5Cng8V2RXpvTxAmesQHPQURzYgaOXJwuj5IP35a qunfkWHRAqiqL9TcVxUbgY/3wyNb556TS2v6Zu3OPAIVlDe+VhpVAFoSwv43IGz+le7H Wh9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S8e40s9+JoYPe/NUromgZJDws7TZD3lmQO69ladLnM8=; b=ElXGMbw0E5lPpKPoQtK85fPgGJpjzcsXOj2MjhVtpD8KrVe63GVNLu2xNrfCWjLKHs u048zCga++GN8J1IbDrYVmnbinzvt4FlU+uSs1REkCo+EZZ8Ha1+C4b0JneEljjA9YQE BNvQhUpCs1I6ZqJoksH+cPCNqW4a6xeY22pRYxipj+6dR5zwIHZGxxI3g6FQIUb6Orhp FY7SqocRnzYbJH+RAqxtpBTJw39IZ8UYEC96MHs8DRAcjpgJRCyIxhEvAH1IRJw7dieN NW+UWiX2OtwLhgR8PWMXi2biQs1IpKUzexr/dHjsiigjV1WnupfzKDsjQxpx1CdJkWd9 yqsQ== X-Gm-Message-State: AO0yUKUcaE77WE8y48xKdGWMlPRLXUHK2VXLLn3ZESS2BgP2ETZW7z+7 cNGrsHk2lxRM0EPqNtNy8zVVNw== X-Google-Smtp-Source: AK7set/8mF6y6Og4WyKxYfBVFTPKX2pl0tTtzUgAejnPhBEEKMxi827YGGEg4maJUtpmgSCtTwGnEg== X-Received: by 2002:a05:6e02:16c5:b0:313:ce4b:a435 with SMTP id 5-20020a056e0216c500b00313ce4ba435mr9784782ilx.25.1677093143659; Wed, 22 Feb 2023 11:12:23 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id o18-20020a02cc32000000b003e4a3c070adsm441182jap.133.2023.02.22.11.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 11:12:23 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 2F103800386; Wed, 22 Feb 2023 13:12:22 -0600 (CST) Date: Wed, 22 Feb 2023 13:12:22 -0600 From: Justin Pryzby To: Andres Freund Cc: Heikki Linnakangas , Duncan Sands , pgsql-bugs@lists.postgresql.org Subject: Re: Unlimited memory consumption with long-lived connection Message-ID: <20230222191221.GE1653@telsasoft.com> References: <7484b4bd-a808-ed9e-892c-933f7f24120f@iki.fi> <20230222145341.GT1653@telsasoft.com> <20230222182811.n6n7bvzc3kd3n6f3@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230222182811.n6n7bvzc3kd3n6f3@awork3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 22, 2023 at 10:28:11AM -0800, Andres Freund wrote: > On 2023-02-22 08:53:41 -0600, Justin Pryzby wrote: > > There are patches proposed here, which fixed the issue for me. > > But I've always been suspicious that there may be a 2nd, undiagnosed > > issue lurking behind this one... > > Any more details? No. My suspicion is because the process is killed by OOM roughly every 24h, and the leak didn't seem to be big enough to cause that. Maybe the leak is nonlinear or not completely deterministic or something sometimes exacerbates the original issue, or maybe there's only one issue that's 90% but not 100% understood, or maybe there's a 2nd issue that's latent once the fix is applied for the known issue. There's also this report: https://www.postgresql.org/message-id/1605804350439-0.post%40n3.nabble.com ..which offers no details or reponse, and could easily be a leak in someting other than JIT, or postgres, or not a leak at all. -- Justin