Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

psradm

Status
Not open for further replies.

rgoud

IS-IT--Management
May 9, 2002
21
US
Hi list,
I need to bring two CPU's offline on the production, do I have to bring it offline
in single user mode?, is it ok to bring the CPU offline in multi user mode using psradm?.

How do I make sure there are no processes are using a certain CPU? I definetely want
to check this before bringing it offline in multi-user and also is there a way
to bring certain CPU's offline automatically when server reboots in inittab?.
Thanks in advance
 
You should be able to use psradm to offline CPUs safely at any time. The kernel will handle migration of processes off those CPUs.

You can create a startup script in /etc/init.d/rc2.d containing the commands to offline those CPUs at boot-time. Remember to make it executable.

Annihilannic.
 
afaik there's no need to shut down to single user, if a process is running on a specific cpu the scheduler will reschedule this process; afaik the psradm is just requesting a shutdown by the kernel, so the first step is to finish the process running on the specific CPU or schedule it to another CPU

# psrinfo
0 on-line since 07/28/2005 12:37:36
1 on-line since 07/28/2005 12:37:37
# psradm -f 1
# psrinfo
0 on-line since 07/28/2005 12:37:36
1 off-line since 01/27/2006 15:12:15
# psradm -n 1
# psrinfo
0 on-line since 07/28/2005 12:37:36
1 on-line since 01/27/2006 15:12:31
# who -r
. run-level 3 Jul 28 12:38 3 0 S
#

if you want to be sure there's no important process running on this CPU write a script /etc/rc1.d/K01stopcpu with the psradm commands inside (remember the chmod 755) and reboot the host to single user mode...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
There are also nvram settings(atleast on a e450) which can be used to keep the cpu slot from being probed which will accomplish what you want.

Why would you not want a cpu used? (this is for my knowledge not to belittle your question. This could be something I may need to know for the future.)

Thanks

CA
 
It makes for any easy upgrade when users start complaining about system performance. :)

Annihilannic.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top