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
Columns
Column Type 列 型 Description 説明 |
---|
The name of the shared memory allocation. 《機械翻訳》共有メモリアロケーションの名前。 |
ID of <acronym>NUMA</acronym> node 《機械翻訳》NUMAノードのID。 |
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.
《マッチ度[92.090395]》デフォルトではpg_shmem_allocations
はスーパーユーザか、pg_read_all_stats
ロールの権限を持つロールだけが読み取りできます。