disabled CPU thread for Solaris SPARC
psradm -f processor_id
OPTIONS
     The following options are supported:
     -a    Perform the action on all processors, or  as  many  as
           possible.
     -f    Take the specified processors off-line.
     -F    Force  the  transition  to  the  additional  specified
           state.  Required  if one or more of the specified pro-
           cessors was in the faulted state.  Set  the  specified
           processors  to  faulted, if no other transition option
           was specified. Forced transitions can only be made  to
           faulted, spare, or off-line states. Administrators are
           encouraged to use the -Q option for pbind(1M) to  find
           out which threads will be affected by forced a proces-
           sor state transition.
     -i    Set the specified processors no-intr.
     -n    Bring the specified processors on-line.
     -s    Make the specified processors spare.
     -v    Output a message giving the results of each  attempted
           operation.
EXAMPLES
     Example 1 Setting Processors to off-line
     The following example sets processors 2 and 3 off-line:
       % psradm -f 2 3
     Example 2 Setting Processors to no-intr
     The following example sets processors 1 and 2 no-intr:
       % psradm -i 1 2
     Example 3 Setting Processors to spare
     The following example sets processors 1 and 2 spare, even if
     either of the processors was in the faulted state:
       % psradm -F -s 1 2
     Example 4 Setting All Processors on-line
       % psradm -a -n
SunOS 5.10          Last change: 25 Feb 2008                    3
System Administration Commands                         psradm(1M)
     Example 5 Forcing Processors to off-line
     The following example sets processors 1 and 2  offline,  and
     revokes  the  processor bindings from the processes bound to
     them:
       % psradm -F -f 1 2
EXIT STATUS
     The following exit values are returned:
     0     Successful completion.
     >0    An error occurred.

張貼留言