Go to main content

Oracle® SuperCluster M7 シリーズ管理ガイド

印刷ビューの終了

更新: 2015 年 12 月
 
 

CPU/メモリー割り当ての変更 (ソケット粒度)

ソケット粒度レベルで CPU およびメモリーリソース割り当てを変更するには、各計算ノードで次の手順を実行します。


注 -  この手順を実行できるかどうかを確認する方法については、Supported Domain Configurationsを参照してください。

注 -  例は SuperCluster M6-32 に基づいていますが、SuperCluster M7 にも同じ概念が適用されます。

ツールは次のような変更を行います。

  • ルートドメインを自動的に検出する。

  • すべてのドメインの最小および最大のリソース量を計算し、有効な量をユーザーのみが選択できるようにする。

  • 選択した内容に従ってドメインリソースを変更する。

  • CPU リソースと同じ比率でメモリーの容量を自動的に割り当てる。

  • (必要に応じて) プライマリ以外のドメインを停止する。

  • (必要に応じて) プライマリドメインを新しいリソースでリブートする。

  • (必要に応じて) プライマリ以外のドメインを新しいリソースで起動する。

この例では、1 個のソケットと 1T バイトのメモリーがプライマリドメインから削除され、ssccn3-dom1 に割り当てられています。

この表は割り当て計画 (Plan CPU and Memory Allocationsを参照) を示しています。

ドメイン
ドメインタイプ
以前のソケット
ソケット
以後
以前のメモリー (GB)
以後のメモリー (GB)
primary
専用
2
1
2048
1024
ssccn3-dom1
専用
2
3
2048
3072
ssccn3-dom2
ルート
n/a
n/a
n/a
n/a
ssccn3-dom3
ルート
n/a
n/a
n/a
n/a
割り当てられないリソース
45
45
4048
4048
リソース合計
49
39
4144
4144
  1. 計算ノードの制御ドメインにスーパーユーザーとしてログインします。
  2. アプリケーションが停止していて、本番環境アクティビティーが存在しないことを確認します。
  3. アクティブでないドメインをすべて、ldm bind コマンドを使ってアクティブにします。

    アクティブでないドメインが存在していると、ツールが続行されません。

  4. osc-setcoremem を実行してリソースを再構成します。

    プロンプトが表示されたら応答します。Enter を押してデフォルト値を選択します。

    # /opt/oracle.supercluster/bin/osc-setcoremem
     
                                  osc-setcoremem
                        v2.0  built on Aug 27 2015 23:09:35
     
     
     Current Configuration: SuperCluster Fully-Populated M6-32 Base
     
     +------------------------------+-------+--------+-----------+--- MINIMUM ----+
     | DOMAIN                           | CORES | MEM GB |   TYPE    | CORES | MEM GB |
     +------------------------------+-------+--------+-----------+-------+--------+
     | primary                          |    24 |   2048 | Dedicated |     2 |     32 |
     | ssccn3-dom1                      |    24 |   2048 | Dedicated |     2 |     32 |
     | ssccn3-dom2                      |     1 |     16 |   Root    |     1 |     16 |
     | ssccn3-dom3                      |     2 |     32 |   Root    |     2 |     32 |
     +------------------------------+-------+--------+-----------+-------+--------+
     | unallocated or parked            |    45 |   4048 |    --     |    -- |   --   |
     +------------------------------+-------+--------+-----------+-------+--------+
     
     [Note] Following domains will be skipped in this session.
     
     Root Domains
     ------------
     ssccn3-dom2
     ssccn3-dom3
     
     
     CPU allocation preference:
     
            1. Socket level
            2. Core level
     
     In case of Socket level granularity, proportional memory capacity is
      automatically selected for you.
     
     Choose Socket or Core level [S or C] s
     
     
     Step 1 of 1: Socket Count
     
     primary      : specify socket count [min: 1, max: 3. default: 1] : 1
                    you chose [1] socket for primary domain
     
     ssccn3-dom1  : specify socket count [min: 1, max: 3. default: 1] : 3
                    you chose [3] sockets for ssccn3-dom1 domain
     
     
     Configuration In Progress After Socket Count Selection:
     
     +----------------------------------+----------+----------+-----------+
     | DOMAIN                           |  SOCKETS |   MEM GB |   TYPE    |
     +----------------------------------+----------+----------+-----------+
     | primary                          |     1    |     1024 | Dedicated |
     | ssccn3-dom1                      |     3    |     3072 | Dedicated |
     | *ssccn3-dom2                     |   0.083  |       16 |   Root    |
     | *ssccn3-dom3                     |   0.167  |       32 |   Root    |
     +----------------------------------+----------+----------+-----------+
     | unallocated or parked            |   3.750  |     4048 |    --     |
     +----------------------------------+----------+----------+-----------+
     
     
     Following domains will be stopped and restarted:
     
            ssccn3-dom1
     
     This configuration requires rebooting the control domain.
     Do you want to proceed? Y/N : Y 
     
     +- IMPORTANT NOTE: -+
     |  After the reboot, osc-setcoremem attempts to complete CPU, memory re-configuration. |
     |  Please check syslog and the state of all domains before using the system.           |
     |  eg.,  dmesg | grep osc-setcoremem ; ldm list | grep -v active ; date |
     +- -+
     
     All activity is being recorded in log file:
            /opt/oracle.supercluster/osc-setcoremem/log/osc-setcoremem_activity_08-28-2015_15:31:27.log
     
     Please wait while osc-setcoremem is setting up the new CPU, memory configuration.
     It may take a while. Be patient and do not interrupt.
     
     0%    10    20    30    40    50    60    70    80    90   100%
     |-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|
     
     [Info] Domain ssccn3-dom1 is taking too long to stop. Waiting ..
     [Info] Domain ssccn3-dom1 is taking too long to stop. Still waiting for the domain to stop ..
     *=====*=====*=====*=====*=====*=====*=====*=====*=====*=====*
     
    Broadcast Message from root (pts/1) on etc5mdbadm0301 Fri Aug 28 15:36:45...
    THE SYSTEM etc5mdbadm0301 IS BEING SHUT DOWN NOW ! ! !
    Log off now or risk your files being damaged
     
                    Task complete with no errors.
     
    #
    
  5. 通常のアクティビティーに進む前に、システムログおよびすべての論理ドメインのステータスがアクティブ状態であることを確認します。

    例:

    # dmesg | grep osc-setcoremem
    Aug 28 15:43:46 etc5mdbadm0301 root[2074]: [ID 702911 user.alert] osc-setcoremem: core, memory re-configuration complete. system can be used for regular work.
    
  6. 新しいリソース割り当てを確認します。

    いくつかの方法でリソース割り当てを検証し、可能性のある osc-setcoremem エラーを確認できます。

  7. リソース割り当てを別の計算ノードに変更する必要がある場合は、この手順を繰り返します。

関連情報