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 1orfKJ-0002Pz-5w for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Nov 2022 13:04:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1orfKI-0006qh-3P for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Nov 2022 13:04:38 +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 1orfKH-0006qY-Lc for pgsql-hackers@lists.postgresql.org; Sun, 06 Nov 2022 13:04:37 +0000 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1orfK9-0006GE-Rb for pgsql-hackers@postgresql.org; Sun, 06 Nov 2022 13:04:36 +0000 Received: by mail-qv1-xf2c.google.com with SMTP id i12so6484532qvs.2 for ; Sun, 06 Nov 2022 05:04:29 -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=7R3kqqqIMSaRtatqtb8VHm92qoAq7N8GME3iM6mbhAk=; b=5ZyzX7rgNzYK2saKVpQXVQS0LC3mF5N4ta1MaBXQmP4SVFu533Fh16iR6tbyGIquYo Uc+5TPTImmo/jduQywJhW/w2Qp60Xu9ltsoAfQmuK8HTqsSUeEq8hXbTOEHrOO/ivoSa ppsJyK4u7dRvnRViN6/MxCFJSFuJqP5IhkKE/I+1lYWi9LHkz2QPTsBPca150iTU6Wpq 4BDgZ2K/J5jHHjOeBfoNyEnvxCQ4i4FthMBKhWd9NvsNXxMbMpkfUBfTBzNw7N8wXKJu +rNr/Be6gmtu6dygjXLt6b2Dh6TwApqC2M/xk6CFXl4xdf08q6DXExBJPjHSq9gd5uwh koug== 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=7R3kqqqIMSaRtatqtb8VHm92qoAq7N8GME3iM6mbhAk=; b=dLWwx+NCc4PdiH6ChEbpiXW3EhsHiZ1YFn7tw2GUwJId3IbWiIQICfYl3xFQ6sxndS 4+FXnX7ANucxZbb0oe4bjm2dLQewUhQkNO9EvAM1nW7nKBX0aUHnRZNWpIWxTBLKoVtV jw/5BkXcbRi3vlV7FBX0F7EtNv33Y9Y2dqNTguxFaQVH+clCNSrMEF+4i3zXWQxjI6w5 3SlTX2rtk/9cR8SRUQqq0PQGITvELJG5BVYATFVgsZcK2ScVZvZd2hkDCzPB2YMvazZQ 5rBSL5baydyzdeULQ/v8QF3UNUh2uG6XBBM8G0TywJuKc+mW4z5m+kFDa7MgN7sCdzZ6 i8tw== X-Gm-Message-State: ACrzQf0opcjuewa9sL3Bjp8gheimSGWRZ0ig4Lj0hHOMDu2n1a2mh7O7 8qhencHtm1Ncw0lazLs9gQPpgQ== X-Google-Smtp-Source: AMsMyM4/QzH74trBvwOgsq/rpzzASDfiCP7OK3UD4EK1uHxuCnSIwEoeXtzFoNW2jwIuKnpNPDRQ0g== X-Received: by 2002:ad4:5be8:0:b0:4bb:f4c0:aba7 with SMTP id k8-20020ad45be8000000b004bbf4c0aba7mr34997906qvc.76.1667739868801; Sun, 06 Nov 2022 05:04:28 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id m16-20020a05620a291000b006cebda00630sm4364080qkp.60.2022.11.06.05.04.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2022 05:04:28 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 0DDC8800773; Sun, 6 Nov 2022 07:04:26 -0600 (CST) Date: Sun, 6 Nov 2022 07:04:26 -0600 From: Justin Pryzby To: John Naylor Cc: Thomas Munro , "Shinoda, Noriyoshi (PN Japan FSIP)" , Jacob Champion , Masahiko Sawada , Fujii Masao , pgsql-hackers@postgresql.org, Julien Rouhaud , Tom Lane , Kyotaro Horiguchi Subject: Re: Improve logging when using Huge Pages Message-ID: <20221106130426.GG16921@telsasoft.com> References: <20211022023815.GI741@telsasoft.com> <20211028220534.GB31568@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Sun, Nov 06, 2022 at 02:04:29PM +0700, John Naylor wrote: > On Thu, Nov 3, 2022 at 8:11 AM Thomas Munro wrote: > > > > I wonder if the problem here is that people are reluctant to add noise > > to every starting system. There are people who have not configured > > their system and don't want to see that noise, and then some people > > have configured their system and would like to know about it if it > > doesn't work so they can be aware of that, but don't want to use "off" > > because they don't want a hard failure. Would it be better if there > > were a new level "try_log" (or something), which only logs a message > > if it tries and fails? > > I think the best thing to do is change huge_pages='on' to log a WARNING and > fallback to regular pages if the mapping fails. That way, both dev and prod > can keep the same settings, since 'on' will have both visibility and > robustness. I don't see a good reason to refuse to start -- seems like an > anti-pattern. I'm glad to see there's still discussion on this topic :) Another idea is to add a RUNTIME_COMPUTED GUC to *display* the state of huge pages, so I can stop parsing /proc/maps to find it. -- Justin