バージョンごとのドキュメント一覧

53.28. pg_shmem_allocations_numa #

The <structname>pg_shmem_allocations_numa</structname> shows how shared memory allocations in the server's main shared memory segment are distributed across NUMA nodes. This includes both memory allocated by <productname>PostgreSQL</productname> itself and memory allocated by extensions using the mechanisms detailed in <xref linkend="xfunc-shared-addin" />. This view will output multiple rows for each of the shared memory segments provided that they are spread across multiple NUMA nodes. This view should not be queried by monitoring systems as it is very slow and may end up allocating shared memory in case it was not used earlier. Current limitation for this view is that won't show anonymous shared memory allocations. pg_shmem_allocations_numaは、サーバの主な共有メモリセグメントの共有メモリ獲得が、NUMAノード間でどのように分散されているかを示します。 これには、PostgreSQL自体が獲得したメモリと、セクション36.10.11で詳細に説明されているメカニズムを使用している拡張が獲得したメモリの両方が含まれます。 このビューは、共有メモリセグメントが複数のNUMAノードに分散している場合、それぞれの共有メモリセグメントについて複数の行を出力します。 このビューは非常に遅く、以前に使用されていなかった場合の共有メモリを獲得してしまう可能性があるため、監視システムで問い合わせることは推奨されません。 このビューの現在の制限は、匿名の共有メモリ獲得が表示されないことです。

Note that this view does not include memory allocated using the dynamic shared memory infrastructure. このビューは動的共有メモリ基盤を使って獲得したメモリは含まれないことに注意してください。

警告

When determining the <acronym>NUMA</acronym> node, the view touches all memory pages for the shared memory segment. This will force allocation of the shared memory, if it wasn't allocated already, and the memory may get allocated in a single <acronym>NUMA</acronym> node (depending on system configuration). NUMAノードを決定する場合、ビューは共有メモリセグメントのすべてのメモリページに触れます。 これにより、共有メモリがまだ獲得されていない場合は強制的に獲得され、メモリは単一のNUMAノードで獲得される場合があります(システム構成に依存します)。

表53.28 pg_shmem_allocations_numa

<title><structname>pg_shmem_allocations_numa</structname> Columns</title>

Column Type 列 型

Description 説明

name text

The name of the shared memory allocation. 共有メモリ獲得の名前。

numa_node int4

ID of <acronym>NUMA</acronym> node NUMAノードのID。

size int8

Size of the allocation on this particular NUMA memory node in bytes この特定のNUMAメモリノード上のバイト単位の獲得サイズ


By default, the <structname>pg_shmem_allocations_numa</structname> view can be read only by superusers or roles with privileges of the <literal>pg_read_all_stats</literal> role. デフォルトではpg_shmem_allocations_numaビューはスーパーユーザか、pg_read_all_statsロールの権限を持つロールだけが読み取りできます。