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 1nUFFn-0002O3-2z for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Mar 2022 22:02:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nUFFl-0006DD-TN for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Mar 2022 22:02:53 +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 1nUFFl-0006D4-Kq for pgsql-hackers@lists.postgresql.org; Tue, 15 Mar 2022 22:02:53 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nUFFj-0001l0-23 for pgsql-hackers@postgresql.org; Tue, 15 Mar 2022 22:02:53 +0000 Received: by mail-lf1-x130.google.com with SMTP id w27so776975lfa.5 for ; Tue, 15 Mar 2022 15:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cfzdxaAt0/6IATjCfe59+loTqy8K4fapmmvdeYjyHmM=; b=RO3mo76a6kHgXxVPX8y9eliG88DHBfVCgvKB8SfUvpXY5jMyo+gc1N5TJH0RZQs/XT TRcilllXBxPVTE3RGMvAD6dp5L+gbVvHW19kHKuI0JmQ4mwm4RomVlE/HHYB/yxm5Bj5 SHwruSmMhD8nEB6NQRYZNYUOX5szEj9v40NUsA8jaOdGRlSYPuFP1lFZgGdyaPTCfsGP S53XRpinlWL5tXwzU5bCVewQctaapfonAW75YG/Jad/aW+jheDq842Vnn7KNi88ltQ/T ao+oUe9/xnbtZ3lBlLBsObocq22a5ra/Fj/as7rePDAQgoOIJ4RGDQ4E1ZEA65+DXN+9 BTDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cfzdxaAt0/6IATjCfe59+loTqy8K4fapmmvdeYjyHmM=; b=zTZCjmfm/K3yhT28K9J4SDEupSbpkT8urECVCIJ6dvoHt0wWqPYuwIggxeLi7Dsonw KG2iPfkO1sw2x7TjYbMLIE02VH0PmG4AJu7nAB43isEeKaw5RUy6iLSzeXy6OIn9J4VN V0r+uds1hhfd+aEzkWcLcRnBn3VDtbj5502ntoSy6HZQHErA7VoyMbUXTGME2Iankthj 3+wMUKkiNFX+HaFMiri2in3dDJRrSvejcEvzxE9t5JClT4P5YFtNoYIB6h1kfzaMA4vT b//P477T7vLeBoCh1q65rMRcLQKTd2Q7UdAW8CIaxvT6xwDYxBE2DO0Op9UAN0rTq26T mSBg== X-Gm-Message-State: AOAM533Z325iF0IQhdrUQpw5RZWzTpSlkoYgPGO8ZN/ryoIjtbbhAQ4+ 5q0oAGuTXFYmpJdFKagibkfuiSZyPcNykBjIvPwTOQ== X-Google-Smtp-Source: ABdhPJyFZ1/0B8iUVz8LM5Atl9W/dWsmfspXOyKJlbSWYdJ6OdcPXfGjwTtpkIX5cu/iZO28LizZHQDqn0+RJfNzPLU= X-Received: by 2002:a05:6512:2622:b0:448:27b9:5299 with SMTP id bt34-20020a056512262200b0044827b95299mr16731028lfb.86.1647381769722; Tue, 15 Mar 2022 15:02:49 -0700 (PDT) MIME-Version: 1.0 References: <578A8F79-FD13-4408-865F-4D31EE5D8123@amazon.com> <4cc5b434-b174-9aae-197b-737db6cac4e3@oss.nttdata.com> <6AE0285D-0917-4C05-B6AA-4AEDD2FCBA52@amazon.com> <20220314173417.GA1020555@nathanxps13> In-Reply-To: From: Magnus Hagander Date: Tue, 15 Mar 2022 23:02:37 +0100 Message-ID: Subject: Re: Estimating HugePages Requirements? To: Michael Paquier Cc: Nathan Bossart , "Bossart, Nathan" , Fujii Masao , Justin Pryzby , Andres Freund , Mark Dilger , Don Seiler , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 15, 2022 at 3:41 AM Michael Paquier wrote: > > On Mon, Mar 14, 2022 at 10:34:17AM -0700, Nathan Bossart wrote: > > On Mon, Mar 14, 2022 at 04:26:43PM +0100, Magnus Hagander wrote: > >> And in fact, the command documented on > >> https://www.postgresql.org/docs/devel/kernel-resources.html doesn't > >> actually produce the output that the docs show, it also shows the log > >> line, in the default config? If we can't fix the extra logging we > >> should at least have our docs represent reality -- maybe by adding a > >> "2>/dev/null" entry? But it'd be better to have it not output that log > >> in the first place... > > > > I attached a patch to adjust the documentation for now. This apparently > > crossed my mind earlier [0], but I didn't follow through with it for some > > reason. > > Another thing that we can add is -c log_min_messages=fatal, but my > method is more complicated than a simple redirection, of course :) Either does work, but yours has more characters :) > >> (Of course what I'd really want is to be able to run it on a cluster > >> that's running, but that was discussed downthread so I'm not bringing > >> that one up for changes now) > > > > I think it is worth revisiting the extra logging and the ability to view > > runtime-computed GUCs on a running server. Should this be an open item for > > v15, or do you think it's alright to leave it for the v16 development > > cycle? > > Well, this is a completely new problem as it opens the door of > potential concurrent access issues with the data directory lock file > while reading values from the control file. And that's not mandatory > to be able to get those estimations without having to allocate a large > chunk of memory, which was the primary goal discussed upthread as far > as I recall. So I would leave that as an item to potentially tackle > in future versions. I think we're talking about two different things here. I think the "avoid extra logging" would be worth seeing if we can address for 15. The "able to run on a live cluster" seems a lot bigger and more scary and not 15 material. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/