Oninit Logo
The Down System Specialists
+1-913-674-0360
+44-2081-337529
Partnerships Contact
Onstat -a -b/-B -C -c -d/-D -F -f -G -h -i -j -k/-K -L -l -m -o -P -p -R -r -s -t/-T -u -X -x -z

onstat -g mgm Memory grant manager

The onstat -g mgm command displays the current activity being controlled by the memory grant manager.

Memory Grant Manager (MGM)                                                   
--------------------------                                                   
                                                                             
MAX_PDQPRIORITY:  100                                                        
DS_MAX_QUERIES:    2                                                         
DS_MAX_SCANS:      1048576                                                   
DS_TOTAL_MEMORY:   256 KB                                                    
                                                                             
Queries:   Active     Ready   Maximum                                        
                0         0         2                                        
                                                                             
Memory:     Total      Free   Quantum                                        
(KB)          256       256       128                                        
                                                                             
Scans:      Total      Free   Quantum                                        
           1048576   1048576         1                                       
                                                                             
Load Control:    (Memory)      (Scans)  (Priority)  (Max Queries)   (Reinit) 
                   Gate 1       Gate 2      Gate 3         Gate 4     Gate 5 
(Queue Length)          0            0           0              0          0    
                                                                                
Active Queries:  None                                                           
                                                                                
Ready Queries:  None                                                            
                                                                                
Free Resource        Average #        Minimum #                                 
--------------    ---------------     ---------                                 
Memory               0.0 +- 0.0            32                                   
Scans                0.0 +- 0.0          1048576                                
                                                                                
Queries              Average #        Maximum #    Total #                      
--------------    ---------------     ---------    -------                      
Active               0.0 +- 0.0             0          0                        
Ready                0.0 +- 0.0             0          0                        

Resource/Lock Cycle Prevention count:  0            

Parameters

Label Description
MAX_PDQPRIORITY The maximum percentage of system resources that can be used for parallel operations.
DS_MAX_QUERIES The maximum number of queries that can be run simultaneously for parallel operations.
DS_MAX_SCANS The maximum number of scan threads that can participate in parallel operations.
DS_TOTAL_MEMORY The total amount of memory set aside for parallel operations.

Queries

Heading Description Format
Active The current number of active queries. Dec
Ready The number of queries waiting to run. Dec
Maximum The maximum number of queries that can run simultaneously. Dec

Memory

Heading Description Format
Total The total amount of memory assigned for parallel operations. Kbytes
Free The amount of memory remaining for parallel operations. Kbytes
Quantum The smallest unit in which memory will be granted for a request. The quantum is computed as DS_TOTAL_MEMORY / DS_MAX_QUERIES Dec

Scans

Heading Description Format See Also
Total The total number of scan threads allocated for parallel operations. Dec  
Free The number of free scan threads remaining for parallel operations. Dec  
Quantum The smallest unit in which scan threads will be granted for a request. The quantum is computed as DS_MAX_SCANS / DS_MAX_QUERIES Dec  

Load Control

Heading Description Format
Memory The number of queries gated due to memory limitations Dec
Scans The number of queries gated due to scan thread limitations Dec
Priority The number of queries gated due to PDQPRIORITY limitations Dec
Max queries The number of queries gated due to maximum query limitations Dec
Reinit The number of queries gated due to MGM parameters waiting to be reinitialized Dec

Active Queries

Heading Description Format See Also
Session The session ID Dec onstat -g ses
Query The query identifier assigned to this query Dec  
Priority The PDQPRIORITY for this query Dec  
Thread The thread ID performing the query Hex  
Memory The number of memory blocks granted/reserved. Dec  
Scans The number of scan threads granted/reserved. Dec  
Gate If waiting on a gate, the gate number for which the query is waiting. For active queries, always a dash. Dec  

Ready Queries

Heading Description Format See Also
Session The session ID Dec onstat -g ses
Query The query identifier assigned to this query Dec  
Priority The PDQPRIORITY for this query Dec  
Thread The thread ID performing the query Hex  
Memory The number of memory blocks granted/reserved. Dec  
Scans The number of scan threads granted/reserved. Dec  
Gate If waiting on a gate, the gate number for which the query is waiting. Dec  

Free Resource

Heading Description Format See Also
Free Resource The name of the resource being controlled by the memory grant manager Str  
Average # The average number of free units of this resource Flt  
Minimum # The minimum number of free units of this resource Flt  

Queries

Heading Description Format
Queries The type of query being tracked Str
Average # The average number of queries occupying this queue Flt
Maximum # The maximum number of queries to ever occupy this queue Dec
Total # The current total number of queries occupying this queue Dec

Monitoring and Tuning

    The MAX_PDQPRIORITY, DS_MAX_QUERIES, DS_MAX_SCANS and DS_TOTAL MEMORY parameters in the server configuration file tune the Memory Grant Manager.

Notes

    memory quantum = DS_TOTAL_MEMORY / DS_MAX_QUERIES

To discuss how Oninit ® can assist please call on +1-913-674-0360 or alternatively just send an email specifying your requirements.