May 10, 2010

Solaris: retrieving correctly shminfo_shmmax through adb

Posted in Solaris at 1:36 pm by alessiodini

Today i’m working on a Solaris 9 system.
I must configure some kernel parameters for Oracle setup.

After configured these parameters and rebooted i want verify them.
sysdef shows correctly values , but adb doesn’t too.

# grep shm /etc/system
* exclude: sys/shmsys
[…]
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set shmsys:shminfo_shmmax=8589934590
[…]

Output from adb:

# adb -k
physmem 3e3bed
shminfo_shmmni/D
shminfo_shmmni:
shminfo_shmmni: 100
shminfo_shmseg/D
shminfo_shmseg:
shminfo_shmseg: 10
shminfo_shmmax/D
shminfo_shmmax:
shminfo_shmmax: 1

why shminfo_shmmax is 1 -_-”

After researchs on man page / web found that for some values <-> parameters it must be used /E option , as follow:

shminfo_shmmax/E
shminfo_shmmax:
shminfo_shmmax: 8589934590

Now it’s correct 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: