DEV Community

Qing
Qing

Posted on

MOT Monitoring

All syntax for monitoring of PG-based FDW tables is supported. This includes Table or Index sizes (as described below). In addition, special functions exist for monitoring MOT memory consumption, including MOT Global Memory, MOT Local Memory and a single client session.

Table and Index Sizes
The size of tables and indexes can be monitored by querying pg_relation_size.

For example

Data Size

Image description

Index

Image description

MOT GLOBAL Memory Details
Check the size of MOT global memory, which includes primarily the data and indexes.

Image description

Result –

Image description

Where –

· -1 is the total memory.

· 0..7 are NUMA memory nodes.

MOT LOCAL Memory Details
Check the size of MOT local memory, which includes session memory.

Image description

Result –

Image description

Where –

· -1 is the total memory.
· 0..7 are NUMA memory nodes.
Session Memory
Memory for session management is taken from the MOT local memory.

Memory usage by all active sessions (connections) is possible using the following query –

Image description

Result –

Image description

Legend –

· total_size – is allocated for the session
· free_size – not in use
· used_size – In actual use
The following query enables a DBA to determine the state of local memory used by the current session –

Image description

Result –

Image description

Top comments (0)