Changing Power settings

On PowerVM capable systems, you must change the simultaneous multithreading (SMT) settings.

Installation phase
  • You are not here. Setting up a client workstation
  • You are not here. Setting up a cluster
  • You are not here. Collecting required information
  • You are not here. Preparing to run installs in a restricted network
  • You are not here. Preparing to run installs from a private container registry
  • You are here icon. Preparing the cluster for IBM® Software Hub
  • You are not here. Preparing to install an instance of IBM Software Hub
  • You are not here. Installing an instance of IBM Software Hub
  • You are not here. Setting up the control plane
  • You are not here. Installing solutions and services
Who needs to complete this task?

Cluster administrator A cluster administrator must complete this task.

When do you need to complete this task?

One-time setup You must change the SMT settings if you plan to install IBM Software Hub on PowerVM capable systems.

Procedure

Complete the following steps to change the SMT settings.

The SMT settings depend on whether you plan to install the Db2 Warehouse service. If you plan to install Db2 Warehouse, consider whether you plan to install the service on dedicated nodes.

  1. Label all worker nodes by using one of the following options:
    • If the worker node will not run Db2 Warehouse workloads, use SMT=4, as shown in the following example:
      oc label node <node> SMT=4 --overwrite
    • If the worker node will run Db2 Warehouse workloads, use SMT=8, as shown in the following example:
      oc label node <node> SMT=8 --overwrite 
  2. Create a YAML file, smt.yaml, with the following content:
    apiVersion: machineconfiguration.openshift.io/v1
    kind: MachineConfig
    metadata:
      labels:
        machineconfiguration.openshift.io/role: worker
      name: 99-worker-smt
    spec:
      config:
        ignition:
          version: 3.1.0
        storage:
          files:
          - contents:
              source: data:text/plain;charset=utf-8;base64,IyEvYmluL2Jhc2gKZXhwb3J0IFBBVEg9L3Jvb3QvLmxvY2FsL2Jpbjovcm9vdC9iaW46L3NiaW46L2JpbjovdXNyL2xvY2FsL3NiaW46L3Vzci9sb2NhbC9iaW46L3Vzci9zYmluOi91c3IvYmluCmV4cG9ydCBLVUJFQ09ORklHPS92YXIvbGliL2t1YmVsZXQva3ViZWNvbmZpZwpDT1JFUFM9JCgvYmluL2xzY3B1IHwgL2Jpbi9hd2sgLUY6ICcgJDEgfiAvXkNvcmVcKHNcKSBwZXIgc29ja2V0JC8ge3ByaW50ICQyfSd8L2J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GFuIE1heGltdW0gU01UIHN1cHBvcnRlZCIKICAgIGZpCmZp
              verification: {}
            filesystem: root
            mode: 0755
            overwrite: true
            path: /usr/local/bin/powersmt
        systemd:
          units:
            - name: smt.service
              enabled: true
              contents: |
                [Unit]
                Description=Set SMT
                After=network-online.target
                Before= crio.service
                [Service]
                Type=oneshot
                RemainAfterExit=yes
                ExecStart=/usr/local/bin/powersmt
                [Install]
                WantedBy=multi-user.target
    
  3. Ensure that the control plane nodes on the cluster are Ready:
    oc get nodes
  4. Apply the settings from the smt.yaml file:
    oc create -f smt.yaml

    When you run this command, the cluster performs a rolling restart of all of the worker nodes to set the specified SMT level.

    If a worker node is not labeled, the node uses the default SMT level.

    If you need to change the SMT level on a specific node, label the worker node with the correct SMT level and manually restart the node.