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 1pQCbk-0007jE-8E for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Feb 2023 19:29:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pQCbj-0008Ra-0u for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Feb 2023 19:29:23 +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 1pQCbi-0008RR-LC for pgsql-hackers@lists.postgresql.org; Thu, 09 Feb 2023 19:29:22 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pQCbb-000815-MD for pgsql-hackers@postgresql.org; Thu, 09 Feb 2023 19:29:22 +0000 Received: by mail-pj1-x102e.google.com with SMTP id gj9-20020a17090b108900b0023114156d36so6919863pjb.4 for ; Thu, 09 Feb 2023 11:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=CwQUFmzV7i1JPf8KxfI7tdLD/Q57pObxhYRmJeH6iAw=; b=Gb4rHe+8Pqj5tRE3IrUuDkSZSXGdYGBTqs4y7yDj4CtUPnJs9ho0su5Z54Pab4R2+j 1ScLv9NQmcqDCU0icimsVeQ+A/6VvCPnBPSBv07T9Z92aKzHtrSGEYupxBmu10qznA9n iuaeGqmhlLbxgeAKFwfKCBG/ltQrb30Jpw0YH9mbn2y8CGaWOLN5cvFenAFGlzSkaAkb ILnroj6bBjNUa6LsYrgyrhJJHOa00hW6pa4SWOw353zemL2HNuMET1RJmeT9RJmEY23P 1gAC+Jo4eeik7I8JmrDxQtD/gcEM/egWWE3YApJLwG7tnJ3bKTuzY6XdN+oVVpKRr99F pDNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding: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=CwQUFmzV7i1JPf8KxfI7tdLD/Q57pObxhYRmJeH6iAw=; b=MrmxywHRPedNjyT7PYwEyiAQsBvYfjzkB8onllKv3iKhuL7vx4Em8ptW1JNYZqussy Kf5TjLod34qmdaZWPh/idiB/JL0wP4R5Yn9Kf0EMn0ZZvf3P6wPeFM8aNZmTkwzolinj B8ajZozV5PF7U+azOilkH9XrbgwnarI38nrJ+Nuu8AIAUYyqsbr2VURSRB+9Y9+vIu/6 IvsAVTr6SZnFj+6/SK6wcpIJ9sWH/nxM3qMcjEJWDTyxXW+l45hrCrpaAteXbpH3vGaD 6etb3nRtT0MHJ3kik3+AJeA8NBJcMyautaIdGKPtFwa6Bt7ufSr73ipXFP+5+r45ME27 EKuA== X-Gm-Message-State: AO0yUKURgAyBet/QUtO6MFxpLmQ3J9ROM2HTHz6vi1mYZJjFi3pPFE8z 3sgWFJthxcDn8NcaLCVrK0w= X-Google-Smtp-Source: AK7set8sDLrVQstFPt/wGwsnxC0XDE7Re7oi2c2xatgaQhrXqh+5jkmSlb9y3eBLCbsLwh9inbjf2Q== X-Received: by 2002:a17:903:247:b0:198:a5d9:14b4 with SMTP id j7-20020a170903024700b00198a5d914b4mr12854210plh.34.1675970953184; Thu, 09 Feb 2023 11:29:13 -0800 (PST) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id w22-20020a170902d71600b001992ae25843sm1001498ply.24.2023.02.09.11.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Feb 2023 11:29:12 -0800 (PST) Date: Thu, 9 Feb 2023 11:29:09 -0800 From: Nathan Bossart To: Alvaro Herrera Cc: Justin Pryzby , Andres Freund , Michael Paquier , Kyotaro Horiguchi , thomas.munro@gmail.com, tgl@sss.pgh.pa.us, john.naylor@enterprisedb.com, noriyoshi.shinoda@hpe.com, jchampion@timescale.com, sawada.mshk@gmail.com, masao.fujii@oss.nttdata.com, pgsql-hackers@postgresql.org, rjuju123@gmail.com Subject: Re: Improve logging when using Huge Pages Message-ID: <20230209192909.GA606606@nathanxps13> References: <20230208231803.GP1653@telsasoft.com> <20230209094013.67varf63bihops33@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230209094013.67varf63bihops33@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Feb 09, 2023 at 10:40:13AM +0100, Alvaro Herrera wrote: > On 2023-Feb-08, Justin Pryzby wrote: >> I don't think it makes sense to run postgres -C huge_pages_active, >> however, so I see no issue that that would always returns "false". > > Hmm, I would initialize it to return "unknown" rather than "off" — and > make sure it turns "off" at the appropriate time. Otherwise you're just > moving the confusion elsewhere. I think this approach would address my concerns about using a GUC. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com