Re: pgsql: Introduce pg_shmem_allocations_numa view
Christoph Berg <myon@debian.org>
From: Christoph Berg <myon@debian.org>
To: Tomas Vondra <tomas@vondra.me>
Cc: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, Andres Freund <andres@anarazel.de>, Tomas Vondra <tomas.vondra@postgresql.org>, pgsql-hackers@lists.postgresql.org
Date: 2025-06-24T15:30:02Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Handle EPERM in pg_numa_init
- 599336c64fc9 19 (unreleased) landed
- 482e98ac4302 18.2 landed
-
Add CHECK_FOR_INTERRUPTS into pg_numa_query_pages
- 54ac4944c36f 18.0 landed
- bf1119d74a79 19 (unreleased) landed
-
Silence valgrind about pg_numa_touch_mem_if_required
- 14e52227e578 18.0 landed
- 81f287dc923f 19 (unreleased) landed
-
Limit the size of numa_move_pages requests
- 45879f48f140 18.0 landed
- 7fe2f67c7c9f 19 (unreleased) landed
-
Introduce pg_shmem_allocations_numa view
- 8cc139bec34a 18.0 cited
Re: Tomas Vondra > If it's a reliable fix, then I guess we can do it like this. But won't > that be a performance penalty on everyone? Or does the system split the > array into 16-element chunks anyway, so this makes no difference? There's still the overhead of the syscall itself. But no idea how costly it is to have this 16-step loop in user or kernel space. We could claim that on 32-bit systems, shared_buffers would be smaller anyway, so there the overhead isn't that big. And the step size should be larger (if at all) on 64-bit. > Anyway, maybe we should start by reporting this to the kernel people. Do > you want me to do that, or shall one of you take care of that? I suppose > that'd be better, as you already wrote a fix / know the code better. Submitted: https://marc.info/?l=linux-mm&m=175077821909222&w=2 Christoph