Go to main content

Oracle® SuperCluster M7 시리즈 관리 설명서

인쇄 보기 종료

업데이트 날짜: 2015년 12월
 
 

CPU/메모리 할당 변경(코어 세분성)

각 계산 노드에서 이 절차를 수행하면 코어 레벨에서 CPU 및 메모리 리소스 할당을 변경할 수 있습니다.


주 -  이 절차를 수행할 수 있는지 확인하려면 Supported Domain Configurations을 참조하십시오.

주 -  예제는 SuperCluster M6-32를 기반으로 하지만, SuperCluster M7에도 동일한 개념이 적용됩니다.

이 도구는 다음과 같이 항목을 변경합니다.

  • 루트 도메인을 자동으로 검색합니다.

  • 모든 도메인의 최소 및 최대 리소스를 계산하고 사용자가 유효한 수량만 선택할 수 있게 해줍니다.

  • 사용자의 코어 할당에 따라 선택할 수 있는 메모리 용량을 제공합니다.

  • 사용자가 선택한 항목에 따라 도메인 리소스를 수정합니다.

  • (필요한 경우) 비기본 도메인을 중지합니다.

  • (필요한 경우) 기본 도메인을 새로운 리소스로 재부트합니다.

  • (필요한 경우) 새 리소스로 비기본 도메인을 가져옵니다.

이 예에서는 6개 코어 및 512GB 메모리가 전용 도메인 ssccn3-dom1에서 다른 전용 도메인인 primary로 이동되었습니다.

이 표에서는 할당 계획을 보여줍니다(Plan CPU and Memory Allocations 참조).

도메인
도메인 유형
이전 코어 수
코어
이후
이전 메모리(GB)
이후 메모리(GB)
primary
전용
12
18
1024
1536
ssccn3-dom1
전용
36
30
3072
2560
ssccn3-dom2
루트
해당 사항 없음
해당 사항 없음
해당 사항 없음
해당 사항 없음
ssccn3-dom3
루트
해당 사항 없음
해당 사항 없음
해당 사항 없음
해당 사항 없음
할당되지 않음
45
45
4048
4048
총 리소스
93
93
8144
8144
  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                          |    12 |   1024 | Dedicated |     2 |     32 |
     | ssccn3-dom1                      |    36 |   3072 | 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] C
     
     
     Step 1 of 2: Core Count
     
     primary      : specify number of cores [min: 2, max: 46. default: 12] : 18
                    you chose [18] cores for primary domain
     
     ssccn3-dom1  : specify number of cores [min: 2, max: 30. default: 2] : 30
                    you chose [30] cores for ssccn3-dom1 domain
     
     
     Configuration In Progress After Core Count Selection:
     
     +----------------------------------+-------+--------+-----------+--- MINIMUM ----+
     | DOMAIN                           | CORES | MEM GB |   TYPE    | CORES | MEM GB |
     +---------------------------------+-------+--------+-----------+-------+--------+
     | primary                          |    18 |   1024 | Dedicated |     2 |     96 |
     | ssccn3-dom1                      |    30 |   3072 | Dedicated |     2 |    128 |
     | *ssccn3-dom2                     |     1 |     16 |   Root    |     1 |     16 |
     | *ssccn3-dom3                     |     2 |     32 |   Root    |     2 |     32 |
     +----------------------------------+-------+--------+-----------+-------+--------+
     | unallocated or parked            |    45 |   4048 |    --     |    -- |   --   |
     +---------------------------------+-------+--------+-----------+-------+--------+
     
     
     Step 2 of 2: Memory Capacity
            (must be 16 GB aligned)
     
     primary: specify memory capacity in GB [min: 96, max: 2016. default: 2016]: 1536
                    you chose [1536 GB] memory for primary domain
     
     ssccn3-dom1: specify memory capacity in GB [min: 128, max: 2560. default: 2560]: 2560
                    you chose [2560 GB] memory for ssccn3-dom1 domain
     
     
     Configuration In progress After Memory Capacity Selection:
     
     +---------------------------------+-------+--------+-----------+--- MINIMUM ----+
     | DOMAIN                           | CORES | MEM GB |   TYPE    | CORES | MEM GB |
     +---------------------------------+-------+--------+-----------+-------+--------+
     | primary                          |    18 |   1536 | Dedicated |     2 |     96 |
     | ssccn3-dom1                      |    30 |   2560 | Dedicated |     2 |    128 |
     | *ssccn3-dom2                     |     1 |     16 |   Root    |     1 |     16 |
     | *ssccn3-dom3                     |     2 |     32 |   Root    |     2 |     32 |
     +---------------------------------+-------+--------+-----------+-------+--------+
     | unallocated or parked            |    45 |   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:59:31.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%
     |-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|
     *=====*=====*=====*=====*=====*=====*=====*=====*=====*=====*
     
    Broadcast Message from root (pts/1) on etc5mdbadm0301 Fri Aug 28 16:03:13...
    THE SYSTEM etc5mdbadm0301 IS BEING SHUT DOWN NOW ! ! !
    Log off now or risk your files being damaged
     
                    Task complete with no errors.
     
    #
    
  5. 새로운 리소스 할당을 확인합니다.

    리소스 할당을 확인하고 발생 가능한 osc-setcoremem 오류를 여러 가지 방법으로 확인할 수 있습니다.

    예:

    # dmesg | grep osc-setcoremem
    Aug 28 16:08:56 etc5mdbadm0301 root[1913]: [ID 702911 user.alert] osc-setcoremem: core, memory re-configuration complete. system can be used for regular work.
     
     
    # ldm list
    NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  NORM  UPTIME
    primary          active     -n-cv-  UART    144   1572096M 0.1%  0.1%  5m
    ssccn3-dom1      active     -n----  5001    240   2620928M 1.3%  1.3%  2m
    ssccn3-dom2      active     -n----  5002    8     16G      0.1%  0.1%  3d 16m
    ssccn3-dom3      active     -n--v-  5003    16    32G      0.1%  0.1%  3d 16m
    
  6. 다른 계산 노드에서 리소스 할당을 변경해야 할 경우 이 절차를 반복합니다.

관련 정보