Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u0jjc-006v72-5A for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Apr 2025 16:17:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u0jja-0024wE-EN for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Apr 2025 16:17:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u0jja-0024w5-5N for pgsql-hackers@lists.postgresql.org; Fri, 04 Apr 2025 16:17:34 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u0jjY-002whM-1y for pgsql-hackers@lists.postgresql.org; Fri, 04 Apr 2025 16:17:33 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5efe8d9eb12so3317538a12.1 for ; Fri, 04 Apr 2025 09:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743783451; x=1744388251; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FhjU6jJOSlcVe5Vz4t38308e2BLq1hUHFmiA14sQ3HE=; b=NlOqJQAgpkDXSktLfJg8TF1nPI89yT7GGGF6tqNBgHXFYW9ZyKveKTADJk734UBpM6 VbzIwq8IPogSGFCFfLfG0JMAIe1LkzV2RR2fzyV4ZyAOJm+0iadC8fJE6O6diNtL8GRw ovjgHUInHDjxAo4+7/aNk6sPyuLnchIU00C6x9+0GnfmGu2L+XNyBRopItNBhtcmVciO jwJODLH7efKRG9C6dkXg7LK3KxrzSOlygib9IWHHa26ToYRr7Y9Foa2Xvni1kL6iNcGF pkUK+4geR7fIBzOViENiezK73IliikZ6g9ur97eB4/j3mjgFYLRjK7mutzyfkC5ARHzD JtfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743783451; x=1744388251; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FhjU6jJOSlcVe5Vz4t38308e2BLq1hUHFmiA14sQ3HE=; b=jDIMJGoeR08e72z69hoYp8YyhWg/m0xYmXU+4MR282s2tA8Ag6JfTVyu/2J+H4fa6m xWjETu/RSRgQbH8EAK6YlKhcHyZBr1QIA6c0Dd9jc/ymNr4QO/6KDxby95lJhQtQH4e4 EGRCmo86gKNsFBu8icKva9lB/iqr1+GwZc9WOCd81qnDPA9bG3SrhhB7mocGaTvjMI7k /SO7VsChFjZOHAzGyaZ0NySS5mE3IGaP9lPqd1A9wXbgzGgpL+V83ny44Kf8xqv5XFnk fNrWTs6kp3TGIUeL8ux4ltIpvq482EGqxi8ZczOZt/apoJM4iFsSc8TWSToL/kBGeIHR qY6A== X-Forwarded-Encrypted: i=1; AJvYcCWvAx9Y9pnY5g4p9DMlTSjnPSD99+VDgKeJvm6cKn2kHKA0sbG3TTAbaaC2JiL5EEWYevP01IHcNquZO+0p@lists.postgresql.org X-Gm-Message-State: AOJu0YymXJUAw6NArjFBrjhuoHXDqor7KAyUX4sPegMwBYPkpIeCcJyh sQVsQzu+XUKxFLTI9phoUmqCmc+HlddgApljnIILj4d6IBPG9zg76CZzPC8MxIt5Jb+ZGLlJbvz 3ISzFsj6S+j0dxggSQSSAiWLalBk= X-Gm-Gg: ASbGncud8RPLvZgx2qRTP6cMGbeS7REjShuGSuVfURiYsPt6QTTnNdRnWSWc+2EJLsl iG/O0cbUI9UbIH9+mgvM6+QTvLoHj4Dip6qoXdTE9t/GwoLsPfukqDDNFKQ4185MJ0q8RxjFZxx SNC9pfMNUr7MFan/EUfGfAyJJgZ/rcniaNyU7IzDwBhGriovxx7n1BvXguLS3s X-Google-Smtp-Source: AGHT+IEdm313AB7QQwidXJeAdxSmE1N2+hKpJNVZnLAuRrvCsgwdUGMw3CojKwP4j0wPCqCe77xMQ4zMeqevxwZ1w28= X-Received: by 2002:a05:6402:268f:b0:5dc:7f96:6263 with SMTP id 4fb4d7f45d1cf-5f0b3bcb275mr3024317a12.15.1743783450822; Fri, 04 Apr 2025 09:17:30 -0700 (PDT) MIME-Version: 1.0 References: <71abd264-1911-46a0-a25b-079a7cfa577a@iki.fi> In-Reply-To: <71abd264-1911-46a0-a25b-079a7cfa577a@iki.fi> From: Melanie Plageman Date: Fri, 4 Apr 2025 12:17:19 -0400 X-Gm-Features: ATxdqUED3YKOK3v6C5pekr-8fiT3KvC7WWtqQ_XSU9y6AO7ITlBjsQeb1veceCw Message-ID: Subject: Re: autoprewarm_dump_now To: Heikki Linnakangas Cc: =?UTF-8?B?0JTQsNGA0YzRjyDQqNCw0L3QuNC90LA=?= , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Apr 4, 2025 at 10:04=E2=80=AFAM Heikki Linnakangas wrote: > > In apw_load_buffers(), we also load the file into (DSM) memory. There's > no similar 1 GB limit in dsm_create(), but I think it's a bit > unfortunate that the array needs to be allocated upfront upon loading. Unrelated to this problem, but I wondered why autoprewarm doesn''t launch background workers for each database simultaneously instead of waiting for each one to finish a db before moving onto the next one. Is it simply to limit the number of bgworkers taking up resources? - Melanie