RESOURCE_POOL_STATUS
Provides current state of built-in and user-defined resource pools on each node. Information includes:
- Current memory usage
- Resources requested and acquired by various requests
- Number of queries executing
For general information about resource pools, see Resource Pool Architecture.
Column Name | Data Type | Description |
---|---|---|
NODE_NAME
|
VARCHAR
|
The name of the node for which information is provided. |
POOL_OID
|
INTEGER
|
A unique numeric ID that identifies the pool and is assigned by the Vertica catalog. |
POOL_NAME
|
VARCHAR
|
The name of the resource pool. |
IS_INTERNAL
|
BOOLEAN
|
Denotes whether a pool is one of the Built-In Pools. |
MEMORY_SIZE_KB
|
INTEGER
|
Value of |
MEMORY_SIZE_ACTUAL_KB
|
INTEGER
|
Current amount of memory, in kilobytes, allocated to the pool by the resource manager. The actual size can be less than specified in the DDL, if both the following conditions exist:
|
MEMORY_INUSE_KB
|
INTEGER
|
Amount of memory, in kilobytes, acquired by requests running against this pool. |
GENERAL_MEMORY_BORROWED_KB
|
INTEGER
|
Amount of memory, in kilobytes, borrowed from the |
QUEUEING_THRESHOLD_KB
|
INTEGER
|
Calculated as |
MAX_MEMORY_SIZE_KB
|
INTEGER
|
Value, in kilobytes, of the
|
MAX_QUERY_MEMORY_SIZE_KB
|
INTEGER
|
Value, in kilobytes, of the MAXQUERYMEMORYSIZE parameter as defined for the pool. The resource pool limits this amount of memory to all queries that execute in it. |
RUNNING_QUERY_COUNT
|
INTEGER
|
Number of queries currently executing in this pool. |
PLANNED_CONCURRENCY
|
INTEGER
|
Value of |
MAX_CONCURRENCY
|
INTEGER
|
Value of |
IS_STANDALONE
|
BOOLEAN
|
If the pool is configured to have |
QUEUE_TIMEOUT
|
INTERVAL
|
The interval that the request waits for resources to become available before being rejected. If you set this value to NONE, Vertica displays it as NULL. |
QUEUE_TIMEOUT_IN_SECONDS
|
INTEGER
|
Value of |
EXECUTION_PARALLELISM
|
INTEGER
|
Limits the number of threads used to process any single query issued in this resource pool. |
PRIORITY
|
INTEGER
|
Value of When set to |
RUNTIME_PRIORITY
|
VARCHAR
|
Value of |
RUNTIME_PRIORITY_THRESHOLD
|
INTEGER
|
Value of |
SINGLE_INITIATOR
|
|
Value of |
QUERY_BUDGET_KB
|
INTEGER
|
The current amount of memory that queries are tuned to use. The calculation that Vertica uses to determine this value is described inQuery Budgeting. The calculated value can change when one or more running queries needs more than the budgeted amount to run. For a detailed example of query budget calculations, see Do You Need to Put Your Query on a Budget? in the Vertica User Community. |
CPU_AFFINITY_SET
|
VARCHAR
|
The set of CPUs on which queries associated with this pool are executed. Can be:
|
CPU_AFFINITY_MASK
|
VARCHAR
|
The bit mask of CPUs available for use in this pool, read from right to left. See Examples below. |
CPU_AFFINITY_MODE
|
VARCHAR
|
The mode for the CPU affinity, one of the following:
|
Examples
The following query returns bit masks that show CPU assignments for three user-defined resource pools. Resource pool bigqueries
runs queries on CPU 0, ceo_pool
on CPU 1, and testrp
on CPUs 0 and 1:
=> SELECT pool_name, node_name, cpu_affinity_set, cpu_affinity_mode, TO_BITSTRING(CPU_AFFINITY_MASK::VARBINARY) "CPU Affinity Mask" FROM resource_pool_status WHERE IS_INTERNAL = 'false' order by pool_name, node_name; pool_name | node_name | cpu_affinity_set | cpu_affinity_mode | CPU Affinity Mask ------------+------------------+------------------+-------------------+------------------- bigqueries | v_vmart_node0001 | 0 | SHARED | 00110001 bigqueries | v_vmart_node0002 | 0 | SHARED | 00110001 bigqueries | v_vmart_node0003 | 0 | SHARED | 00110001 ceo_pool | v_vmart_node0001 | 1 | SHARED | 00110010 ceo_pool | v_vmart_node0002 | 1 | SHARED | 00110010 ceo_pool | v_vmart_node0003 | 1 | SHARED | 00110010 testrp | v_vmart_node0001 | 0-1 | SHARED | 00110011 testrp | v_vmart_node0002 | 0-1 | SHARED | 00110011 testrp | v_vmart_node0003 | 0-1 | SHARED | 00110011 (9 rows)