La commande 'smtctl' permet de gérer l'activation ou la désactivation du mode Multi-Thread d'une partition AIX.
La commande, lancée sans argument, permet d'afficher le statut du mode, actif ou passif.
smtctl Command
Purpose
The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Syntax
smtctl [ -m off | on [ -w boot | now ]]
smtctl [ -t #SMT [ -w boot | now ]]
smtctl [ -t ]
Description
This command is provided for privileged users and applications to control utilization of processors with simultaneous multithreading support. The simultaneous multithreading mode allows processors to have thread level parallelism at the instruction level. This mode can be enabled or disabled for all processors either immediately or on subsequent boots of the system. This command controls the simultaneous multithreading options.
Flags
If no options are specified then the following simultaneous multithreading settings will be reported:
SMT Capability | Indicator that the physical or virtual processors are capable of simultaneous multithreading. |
SMT Mode | Current runtime simultaneous multithreading mode of disabled or enabled. |
SMT Boot Mode | Current boot time simultaneous multithreading mode of disabled or enabled. |
SMT Threads | Number of simultaneous multithreading threads per physical or virtual processor. |
SMT Bound | Indicator that the simultaneous multithreading threads are bound on the same physical or virtual processor. |
SMT Thread Capability | Maximum number of simultaneous multi-threading threads per physical or virtual processor supported by the system. |
Exit Status
0 | Successfully completed the requested operation. |
>0 | An error occurred. |
Security
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
Examples
- To enable simultaneous multithreading for the current boot cycle, enter:
smtctl -m on -w now
The system displays a message similar to the following:smtctl: SMT is now enabled.
- To enable a 2-way simultaneous multithreading on a system that supports up to 4 way, enter:
smtctl -t 2 -w now
The system displays a message similar to the following:smtctl: SMT is now enabled.
- To view the current simultaneous multithreading mode settings and processor information, enter:
smtctl
The system displays a message similar to the following:This system is SMT capable. This system supports up to 4 SMT threads per processor SMT is currently enabled. SMT boot mode is set to disabled. proc0 has 2 SMT threads Bind processor 0 is bound with proc0 Bind processor 1 is bound with proc0 proc2 has 2 SMT threads Bind processor 2 is bound with proc2 Bind processor 3 is bound with proc2
- To disable simultaneous multithreading for the current boot cycle and for all subsequent boots, enter:
smtctl -m off
The system displays a message similar to the following:smtctl: SMT is now disabled. It will persist across reboots if you run the bosboot command before the next reboot.
Another method to disable simultaneous multi-threading for the current boot cycle and for subsequent boots, enter:smtctl -t 1
Note:The boot image must be remade with the bosboot command before the next reboot.
Location
/usr/sbin/smtctl
Files
/usr/sbin/smtctl | Contains the smtctl command. |