kenyo's diary
2006-04-08
_ [Solaris] How to change shared memory setting on Solaris
The procedure is as follows:
- Edit the /etc/system file.
set shmsys:shminfo_shmmax = 2097152
set shmsys:shminfo_shmmin = 1
set shmsys:shminfo_shmmni = 256
set shmsys:shminfo_shmseg = 256 - Reboot the system.
# shutdown -y -i6 -g0
- Confirm that the settings are correct using the sysdef command.
# sysdef
(snip)
*
* IPC Shared Memory
*
2097152 max shared memory segment size (SHMMAX)
1 min shared memory segment size (SHMMIN)
256 shared memory identifiers (SHMMNI)
256 max attached shm segments per process (SHMSEG)
(snip)
[ツッコミを入れる]