- 论坛徽章:
- 0
|
P5 and AIX5.3 之SMT CONTROL \r\n\r\n前言 :SMT的解释\r\n\r\nSimultaneous multi-threading (SMT) technology allows two separate instruction\r\nstreams (threads) to run concurrently on the same physical processor, improving\r\noverall throughput. To the operating system, each hardware thread is treated as\r\nan independent logical processor. For any partition, it can be booted either in\r\nsingle thread (ST) mode or simultaneous multi-threading (SMT) mode.\r\n\r\nSimultaneous multi-threading (SMT) 的策略是由操作系统控制的,因此一个指定的分区可以动态的enable or disable SMT,SMT 模式可以在操作系统运行的时候动态的改变或者重起生效。在AIX5.3中,我们可以使用smtctl命令来控制SMT,当然,我们也可以使用smitty来进行调整。\r\n\r\n一、使用smtctl命令控制SMT: \r\n\r\nsmtctl命令有2个参数 \r\n\r\n-m off 将设置SMT模式为disabled\r\n-m on 将设置SMT模式为enabled\r\n-w boot 使SMT的模式改变将在重新启动的时候生效\r\n-w now 是SMT的模式改变立即生效,但是重新启动后将失效\r\n\r\nsmtctl命令不会rebuild the bootimage . 如果要改变默认的SMT的模式,必须使用bosboot命令来rebuild boot image . 在AIX5.3中的bootimage 已经被扩展包含一个控制默认SMT模式的indicator . \r\n\r\n注意:如果 -w boot 或者 -w now 参数都没有指定,模式的改变将会立即生效并且重新启动后会继续改变后的结果。 为了使SMT模式的改变在后续的重新启动过程中继续生效,我们必须使用bosboot命令来remade bootimage 。\r\n\r\n范例: \r\n\r\n1、smtctl命令如果直接输入,将会显示当前SMT的状态,例如:\r\n\r\n# smtctl \r\n\r\nThis system is SMT capable.\r\nSMT is currently enabled.\r\nSMT boot mode is set to enabled.\r\nProcessor 0 has 2 SMT threads\r\nSMT thread 0 is bound with processor 0\r\nSMT thread 1 is bound with processor 0\r\nProcessor 2 has 2 SMT thread\r\nSMT thread 2 is bound with processor 2\r\nSMT thread 3 is bound with processor 2\r\n\r\n2、为了在当前操作系统中动态的关闭SMT\r\n\r\n# smtctl -m off -w now\r\nsmtctl: SMT is now disabled.\r\n\r\n关闭后可以使用smtctl命令进行确认。\r\n\r\n这个时候,如果该LPAR重新启动了,SMT的状态将返回到默认的状态,为了“彻底”diable SMT , 必须使用-w boot 参数 ,同时必须使用bosboot -a 来rebuild bootimage .\r\n\r\n# smtctl -m off -w boot\r\nsmtctl: SMT will be disabled on the next reboot.\r\nNote that the boot image must be remade with the bosboot\r\ncommand before the next reboot. \r\n\r\n这里我们可以看到,其实系统也提示我们来做bosboot了。\r\n\r\n二、 使用smitty 的方式进行调整 \r\n\r\nsmitty -> Performance & Resource Scheduling -> Simultaneous Multi-Threading Processor Mode -> change SMT mode -> …………[B] |
|