Top
Enterprise Postgres 17 Installation and Setup Guide for Server

F.5 Global Meta Cache Memory Requirements

This section describes the formula for estimating Global Meta Cache memory requirements.

The memory calculated by "Size of the GMC area" is allocated to the shared memory. The memory calculated by the per-process meta cache management information is allocated to the local memory. Refer to the graphic in "Architecture of Global Meta Cache Feature" in the "Memory usage reduction by Global Meta Cache" in the General Description for more information.

Use the following formula to obtain a rough estimate of memory requirements:

Amount of memory used by the Global Meta Cache feature
  = Size of GMC area + Per-process meta cache management information

Size of GMC area = (All user tables x 0.4 KB
     + All user indexes x 0.3 KB
     + All user columns x 0.8 KB)x 1.5 (*1) 

Per-process meta cache management information
  = (All user tables + All user indexes + All user columns) x 0.1KB x max_connections x 1.5 (*1)

*1) Safety Factor (1.5)
This value takes into account the case where both GMC before and after the change temporarily exist at the same time in shared memory when the table definition is changed or the row of the system catalog is changed.