免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3778 | 回复: 1
打印 上一主题 下一主题

P5 and AIX5.3 之SMT CONTROL [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-07-06 15:11 |只看该作者 |倒序浏览
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]

论坛徽章:
0
2 [报告]
发表于 2005-07-06 18:17 |只看该作者
5.2 on P5不行 .  SMT也只在P5上有。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP