This procedure describes how to use the osc-setcoremem simulator to view different configurations of cores and memory on a SuperCluster SPARC node or a non-SuperCluster node. The simulation runs only on the hardware and does not permanently change the CPU or memory resources.
This example is based on SuperCluster M6. However, the same concepts apply to other models.
Follow the steps in Prepare the Base Configuration File for instructions.
Specify the SuperCluster platform to simulate, and the path to the base configuration file. You can also specify non-interactive options.
% ./osc-setcoremem –p M6 –c ./oscsetcorememcfg-m6.txt osc-setcoremem simulator v2.4 built on Feb 24 2017 14:48:42 Current Configuration: SuperCluster M6 +----------------------------------+-------+--------+-----------+--- MINIMUM ----+ | DOMAIN | CORES | MEM GB | TYPE | CORES | MEM GB | +----------------------------------+-------+--------+-----------+-------+--------+ | primary | 24 | 2048 | Dedicated | 2 | 32 | | ssccn2-dom1 | 24 | 2048 | Dedicated | 2 | 32 | | ssccn2-dom2 | 24 | 2048 | Dedicated | 2 | 32 | | ssccn2-dom3 | 2 | 32 | Root | 2 | 32 | +----------------------------------+-------+--------+-----------+-------+--------+ | Parked Resources (Approx) | 22 | 2016 | -- | -- | -- | +----------------------------------+-------+--------+-----------+-------+--------+ [ INFO ] following domains will be ignored in this session. Root Domains ------------ ssccn2-dom3 CPU Granularity Preference: 1. Socket 2. Core In case of Socket granularity, proportional memory capacity is automatically selected for you. Choose Socket or Core [S or C] c ... <output omitted> ...
Caution - Use the –p and –c options only to remove the existing configuration and start a new base configuration. |
You can also specify non-interactive options.
For example:
% SSC_SCM_SIMULATE=1 ./osc-setcoremem
As the simulator runs, enter changes to the cores and memory. To see an example of the entire file, see Example: Simulating Changes on a Non-SuperCluster Node.
The absence of the SSC_SCM_SIMULATE variable triggers normal (non-simulated) osc-setcoremem execution.
For example:
% ./osc-setcoremem
As the simulator runs, enter changes to the cores and memory.
% SSC_SCM_SIMULATE=1 ./osc-setcoremem -list osc-setcoremem simulator (non-interactive) v2.4 built on Feb 27 2017 18:23:43 Current Configuration: SuperCluster M7 +-----+----------------------------+---- CURRENT ---+-----------+--- MIN REQD ---+ | ID | DOMAIN | CORES | MEM GB | TYPE | CORES | MEM GB | +-----+----------------------------+-------+--------+-----------+-------+--------+ | 1 | primary | 8 | 128 | Dedicated | 2 | 32 | | 2 | ssccn1-dom1 | 16 | 256 | Dedicated | 2 | 32 | | 3 | ssccn1-dom2 | 32 | 480 | Dedicated | 2 | 32 | +-----+----------------------------+-------+--------+-----------+-------+--------+
To purge the current modified configuration file and start over with the original base configuration file, use the –r option to reset your changes. For instructions, see Display osc-setcoremem Help.