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 1uUJtV-001Lsz-5D for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2025 06:46:05 +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 1uUJtQ-000UtD-P1 for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2025 06:46:01 +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 1uUJtQ-000Urk-DN for pgsql-hackers@lists.postgresql.org; Wed, 25 Jun 2025 06:46:01 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uUJtP-003rnQ-0s for pgsql-hackers@lists.postgresql.org; Wed, 25 Jun 2025 06:46:00 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-451d7b50815so49345215e9.2 for ; Tue, 24 Jun 2025 23:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750833958; x=1751438758; darn=lists.postgresql.org; h=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=EtPaafJCIPPYUHl+hrnLOaHhw6u4z+r/2xrPRryUCEU=; b=Thqzvc8AdeFbMvErmgO5pcicJU18OFanG78ciddeG2wal+O8FQm+DnXbNv7ozLiNWg anVG5Xd4E9usYIX4+h63YhVKrKlerW90EU4hXG8E+594+skcA6tNovjesd2aPXffAGOt 1H73d037GU+BgrcY8kiOPfZxZI0qgCLqyW5Cxq+uUBpxVU9PN3MR1UOAPj1IqfHxxVzx N76Y5prZxmWMJLVAfUVZqKDmJbig5qmPNCBUfAQDOkjiuntqpamBmtCiDv2x2DB5GfN3 JrbJ5HT2cEi9MDoEqFZLzDkBtwrRa/rzwsVs+hztg3gvQVbJVaFeoqQu6VqrD8RuuwCL Hgig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750833958; x=1751438758; h=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=EtPaafJCIPPYUHl+hrnLOaHhw6u4z+r/2xrPRryUCEU=; b=m43YBQMEnwIMfN1nAodOg5dWn1R36GAH79Oiyw+H1ltQiFvGMgyzNoVaNrmoxhpm8q ynPnhJg0Kp+8v7/6M3BpZ/5/rO8qm3nYp8y9eKwXKhylJKApkE5vK0P69nIsCpO+sU5w tlxAwBXkn7lgrXl5w7DCxH7rpI82ALLW0B5OG7FbZyVOdDkOffHs+tMbbdFtC5jFpVXP 2meJCnA6lrTKLUHqilOAqYCSmdB3BGgirFg/9Mpw36NRcDWIA9gPP+fbj9hmJQVxk/D6 sWGBaPy1fBhpFhvSOQVKBo6EoCeJ+kXPQV/e0pXuwOFecey/9KAIdGFgAw0AoxEjFFu+ 2/GA== X-Forwarded-Encrypted: i=1; AJvYcCVWzID56eNIdHM11u8XF/pQuTPezcj674GmudX8LR/NDGQVIrAzqt4DydwSayTlVIpt0WBnwwvykFsVH4PD@lists.postgresql.org X-Gm-Message-State: AOJu0YxDjJHvx1UHi8cU63Aa3MVRBsXBkdf9QKmA5B/LnpLVQHpdBdFQ fzGqu5/lEEbWBM5bPlFGJNQwLMK4rdB+W2SNlsaQwO03hcDN0wFyI2bb X-Gm-Gg: ASbGncthb7mOAUHSK6stmaygtmLBIZLjxeu67nrQJOp9xqPmPp7pXi/Y6nnD840rELK GKkaDwK7aRXFjiGVN+DVeRY9ObCqdd/M5OJSNMXmyeR2ZTQWr2DAtNrq4HabPj1d8+9+9caFVd3 r7W0jIU3KjJzldRXI7/7EQqKOuFPRvY6hbFKwJu3oexrCKEUnyJDyijKZ7+7eEEHw+kvotWifAx dkQK7Fer9Jc56kP+KOMS0ER6By+usAXEGmsxeOmF47N3uPzRPNTqUbV9PvrkPc/uOqccEYwZILY ipwe+Rfk8r1U1gHz+OLvRFA0Iyx2S0f1nRPi5ahevIrTRmx+vdKzKmuS1FbhaPPas9cs9Y7vjh9 3GOYgybq/nqGLaEAjH3k/vYMQxBHjmT0RaO9oLYvsZNBJ+J9Jyd4B3Y0VdkEvAf9g2vSoWsjGfB /ZKMB+UTMkAXMHm3YwPQ== X-Google-Smtp-Source: AGHT+IGbwL/RfUBOtij3Wn1lZCqzrIfLIAsns7tQhhzOfIa3e6INUb8C3vf+BMg9JpmXjOqE8VD8VQ== X-Received: by 2002:a05:600c:8519:b0:453:78f:faa8 with SMTP id 5b1f17b1804b1-45381aafe71mr12268095e9.6.1750833957341; Tue, 24 Jun 2025 23:45:57 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-181-182.eu-west-3.compute.amazonaws.com. [15.237.181.182]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4538233aa82sm10425635e9.7.2025.06.24.23.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jun 2025 23:45:56 -0700 (PDT) Date: Wed, 25 Jun 2025 06:45:55 +0000 From: Bertrand Drouvot To: Tomas Vondra Cc: Christoph Berg , Andres Freund , Tomas Vondra , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view Message-ID: References: <6342f601-77de-4ee0-8c2a-3deb50ceac5b@vondra.me> <8649a4e3-c60d-4f37-aa6f-e7e7c14c581e@vondra.me> <8961c087-e49b-4b16-9437-31331625215c@vondra.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Tue, Jun 24, 2025 at 10:32:25PM +0200, Tomas Vondra wrote: > > Attached is a minor tweak of the valgrind suppresion rules, Thanks! > to add the > two places touching the memory. I was hoping I could add a single rule > for pg_numa_touch_mem_if_required, but that does not work - it's a > macro, not a function. So I had to add one rule for both functions, > querying the NUMA. That's a bit disappointing, because it means it'll > hide all other failues (of Memcheck:Addr8 type) in those functions. > Shouldn't we add 2 rules for Memcheck:Addr4 too? > Perhaps it'd be be better to turn pg_numa_touch_mem_if_required into a > proper (inlined) function, at least with USE_VALGRIND defined. Yeah I think that's probably better to reduce the scope to what we really want to. > Something > like the v2 patch - yeah, maybe: - add a rule for Memcheck:Addr4? - have the same parameters name for the macro and the function? Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com