请问solaris8下怎样offline 一个cpu,然后又怎么online回去?
需要重启机器吗?
woh 回复于:2003-09-30 13:46:06 |
psradm -f cpu-id |
williamw2000 回复于:2003-10-01 00:38:12 |
"psadm -f cpu-id"
What would happen if something is running on that CPU? |
guchengman 回复于:2003-10-02 08:59:59 |
[quote:386115cc00="woh"]psradm -f cpu-id[/quote:386115cc00]
具体也没有去试, 参考一下吧. prsradm -f procid 将处理器procid设为离线. -n 让指定处理器在线. -a 作用于所有处理器. -v 对每次操作尝试的结果显示一条信息. 只有超级用户和系统管理员才能执行这条命令, 如果有LWP被绑定在某处理器上,那么该处理器不能设为离线. |
mmmmn 回复于:2003-10-02 18:45:27 |
好象老外都使用psrset命令吧 |
gang5415 回复于:2003-10-02 23:13:00 |
我感觉这些命令,大家根本用不上的,它好像是主机内含有多块系统板时,才会用到的。 |
rocazj 回复于:2003-10-05 21:10:36 |
1、psradm - change processor operational status
The psradm utility changes the operational status of pro- cessors. The legal states for the processor are on-line, off-line, and no-intr. An on-line processor processes LWPs (lightweight processes) and may be interrupted by I/O devices in the system. An off-line processor does not process any LWPs. Usually, an off-line processor is not interruptible by I/O devices in the system. On some processors or under certain conditions, it may not be possible to disable interrupts for an off-line processor. Thus, the actual effect of being off-line may vary from machine to machine. A no-intr processor processes LWPs but is not interruptible by I/O devices. -i Set the specified processors no-intr. -n Bring the specified processors on-line. -v Output a message giving the results of each attempted operation. |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/