pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: Tomas Vondra <tomas@vondra.me>
Cc: Christoph Berg <myon@debian.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: Tomas Vondra <tomas.vondra@postgresql.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view
Date: Wed, 25 Jun 2025 06:45:55 +0000
Message-ID: <aFubIxuntEaPeO2t@ip-10-97-1-34.eu-west-3.compute.internal> (raw)
In-Reply-To: <b54df21b-6595-4031-baf8-7c87851794c8@vondra.me>
References: <6342f601-77de-4ee0-8c2a-3deb50ceac5b@vondra.me>
	<aFpg1de9ZfS1QgUt@ip-10-97-1-34.eu-west-3.compute.internal>
	<a3a4fe3d-1a80-4e03-aa8e-150ee15f6c35@vondra.me>
	<aFqHoNXQ/uWKXJ4U@ip-10-97-1-34.eu-west-3.compute.internal>
	<8649a4e3-c60d-4f37-aa6f-e7e7c14c581e@vondra.me>
	<aFqnM/iiL+MB62dG@ip-10-97-1-34.eu-west-3.compute.internal>
	<aFq5HQj016rVS2lm@msg.df7cb.de>
	<8961c087-e49b-4b16-9437-31331625215c@vondra.me>
	<aFrEesaN9YlV0RrJ@msg.df7cb.de>
	<b54df21b-6595-4031-baf8-7c87851794c8@vondra.me>

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





view thread (54+ messages)  latest in thread

Message-ID: <aFubIxuntEaPeO2t@ip-10-97-1-34.eu-west-3.compute.internal>
Permalink:  ../aFubIxuntEaPeO2t@ip-10-97-1-34.eu-west-3.compute.internal/
Also on:    postgresql.org/message-id/aFubIxuntEaPeO2t@ip-10-97-1-34.eu-west-3.compute.internal

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: bertranddrouvot.pg@gmail.com, tomas@vondra.me, myon@debian.org, andres@anarazel.de, tomas.vondra@postgresql.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view
  In-Reply-To: <aFubIxuntEaPeO2t@ip-10-97-1-34.eu-west-3.compute.internal>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox