By default, osc-setcoremem runs in interactive mode, prompting you for input as it runs. Starting with SuperCluster software version 2.3, you can provide all of the required input using a combination options on a single command line.
You can use this procedure to change resource allocations at the core or socket granularity level.
Non-Interactive syntax:
osc-setcoremem -type socket|core -res [min|max|x_sockets|x_cores/x_memgb]:[...]:[min|max|x_sockets|x_cores/x_memgb] [-y|-n] [-h|-help]
| |||||||||||||||||||||||||||||||||
These examples show the variety of arguments you can specify for the -res option:
# osc-setcoremem -type socket -res min:max:min
# osc-setcoremem -type socket -res 2:max:min -y
# osc-setcoremem -type socket -res 1:2:1:2 -n
# osc-setcoremem -type socket -res 2:current:min -y
# osc-setcoremem -type socket -res 1:min:2:max -y
# osc-setcoremem -type core -res min/min:min/max:min/min
# osc-setcoremem -type core -res 12/512:6/64:18/128 -y
# osc-setcoremem -type core -res min/current:max/32:current/current
# osc-setcoremem -type core -res 4/96:min/32:16/max -n
# osc-setcoremem -type core -res min/min:min/32:max/512:8/48 -y
The tool does not continue if any inactive domains are present.
For example:
# /opt/oracle.supercluster/bin/osc-setcoremem -l
osc-setcoremem (batch mode)
v2.3 built on Sep 26 2016 15:15:32
Current Configuration: SuperCluster Half-Populated M7 Extended
+-----+-----------------------------+---- CURRENT ---+-----------+--- MIN REQD ---+
| ID | DOMAIN | CORES | MEM GB | TYPE | CORES | MEM GB |
+-----+-----------------------------+-------+--------+-----------+-------+--------+
| 1 | primary | 32 | 240 | Dedicated | 2 | 32 |
| 2 | ssccn1-dom1 | 32 | 240 | Dedicated | 2 | 32 |
| 3 | ssccn1-dom2 | 32 | 240 | Dedicated | 2 | 32 |
+-----+-----------------------------+-------+--------+-----------+-------+--------+
For example:
# /opt/oracle.supercluster/bin/osc-setcoremem -type core -res 16/128:min/min:max/max
osc-setcoremem (batch mode)
v2.3 built on Sep 26 2016 15:15:32
Current Configuration: SuperCluster Half-Populated M7 Extended
+----------------------------------+-------+--------+-----------+--- MINIMUM ----+
| DOMAIN | CORES | MEM GB | TYPE | CORES | MEM GB |
+----------------------------------+-------+--------+-----------+-------+--------+
| primary | 32 | 240 | Dedicated | 2 | 32 |
| ssccn1-dom1 | 32 | 240 | Dedicated | 2 | 32 |
| ssccn1-dom2 | 32 | 240 | Dedicated | 2 | 32 |
| ssccn1-dom3 | 2 | 32 | Root | 2 | 32 |
| *ssccn1-io-etc4m7-ioappadm0101 | 2 | 32 | IO | 1 | 16 |
| *ssccn1-io-etc4m7zioadm0101 | 4 | 62.50 | IO | 1 | 16 |
+----------------------------------+-------+--------+-----------+-------+--------+
| Not in Use (Parked) | 24 | 114 | -- | -- | -- |
+----------------------------------+-------+--------+-----------+-------+--------+
[ INFO ] following domains will be ignored in this session.
Root Domains IO Domains
------------ ----------
ssccn1-dom3 ssccn1-io-etc4m7-ioappadm0101
ssccn1-io-etc4m7zioadm0101
Configuration In Progress After Memory Capacity Selection:
+----------------------------------+-------+--------+-----------+--- MINIMUM ----+
| DOMAIN | CORES | MEM GB | TYPE | CORES | MEM GB |
+----------------------------------+-------+--------+-----------+-------+--------+
| primary | 16 | 128 | Dedicated | 2 | 64 |
| ssccn1-dom1 | 2 | 32 | Dedicated | 2 | 32 |
| ssccn1-dom2 | 78 | 560 | Dedicated | 2 | 320 |
| *ssccn1-dom3 | 2 | 32 | Root | 2 | 32 |
| *ssccn1-io-etc4m7-ioappadm0101 | 2 | 32 | IO | 1 | 16 |
| *ssccn1-io-etc4m7zioadm0101 | 4 | 62.50 | IO | 1 | 16 |
+----------------------------------+-------+--------+-----------+-------+--------+
| Not in Use (Parked) | 24 | 114 | -- | -- | -- |
+----------------------------------+-------+--------+-----------+-------+--------+
Following domains will be restarted:
ssccn1-dom2
ssccn1-dom1
This configuration change requires rebooting the Control Domain.
Do you want to proceed? Y/N : y
You can verify the resource allocation and check for possible osc-setcoremem errors in several ways: