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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shared memory question

Status
Not open for further replies.

stu78

Programmer
May 29, 2002
121
GB
Hi all,

My question is as follows;

I need to do is tune the shared memory segments on the solaris system - such as the;

shmsys:shminfo_shmmax
semsys:seminfo_semmnu

located in /etc/system

However since this is a heavily used system I do not wish to reboot the server unless necessary. Is there any other options to tune these shared memory segments without rebooting the box.

Thanks for any ideas / help.
 
I think you'd need to use the adb command. Obviously that's a pretty significant thing to tweak in production, so your results may be unpredictable. This script might help you to figure it out. I didn't write it, I got it off of some solaris tuning site that was probably referenced on sean.de.

-Andy

Code:
ak.sh

#!/bin/sh
# script to get predefined kernel tunables
cat << EFF | adb -k /dev/ksyms /dev/mem |   awk '/^[a-z_-]+:/ { 	if (!i) { i++; next } 	if ($2) { printf &quot; %-20s %s\n&quot;,$1,$2; }
	next }        /^[a-z_-]+[ \t0-9a-f]+$/ { next } 	{ print }'
physmem/D
minfree/D
desfree/D
lotsfree/D
fastscan/D
slowscan/D
maxpgio/D
tune_t_gpgslo/D
tune_t_fsflushr/D
autoup/D
ncsize/D
ufs_ninode/D
maxusers/D
max_nprocs/D
maxuprc/D
ndquot/D
nbuf/D
bufhwm/D
rlim_fd_cur/D
rlim_fd_max/D
nrnode/D
coredefault/D
EFF

echo &quot;# To change, use: adb -kw /dev/ksyms /dev/mem&quot;
echo &quot;# eg: ncsize/W 0t8000&quot;
 
As far as I know (and as I responded in the General Unix form) changing them in /etc/system and rebooting is the only real option. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top