DS_MAX_QUERIES configuration parameter
Use the DS_MAX_QUERIES configuration parameter to specify the maximum number of parallel database queries (PDQ) that can run concurrently.
The
value of the DS_MAX_QUERIES configuration parameter is dependent on
the setting for the DS_TOTAL_MEMORY configuration parameter:
- If the DS_TOTAL_MEMORY configuration parameter is set, then the
value of the DS_MAX_QUERIES is
DS_TOTAL_MEMORY / 128
, rounded down to the nearest integer value. - If the DS_TOTAL_MEMORY configuration parameter is not set, then
the value of the DS_MAX_QUERIES configuration parameter is
2 * num
, wherenum
is the number of CPUs specified in the VPCLASS configuration parameter.
- onconfig.std value
- Not set.
- if not present
2* num * 128
, wherenum
is the number of CPUs specified in the VPCLASS configuration parameter.- values
- Minimum value = 1
- units
- Number of queries
- takes effect
- After you edit your onconfig file and restart the database server.
Usage
The Memory Grant Manager (MGM) reserves
memory for a query based on the following formula:
memory_reserved = DS_TOTAL_MEMORY *
(PDQ-priority / 100) *
(MAX_PDQPRIORITY / 100)
The value of PDQPRIORITY is specified in either the PDQPRIORITY environment variable or the SQL statement SET PDQPRIORITY.