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!

shmmax setting problem

Status
Not open for further replies.

plstromb

Programmer
May 7, 2001
4
US
Trying to set shared memory settings (specifically shmmax) for Solaris 8. The problem is that after reboot, the old settings are still displayed when doing a sysdef (and, the software that needs the higher value won't start). We've tried putting forceload in /etc/system with the memory setting, but not no avail. It's like something else is loading the old values...

Anyone see anything like this before? Any ideas?

Thanks in advance!
 
You control these from here:

You need to place this in /etc/system:

set shmsys:shminfo_shmmax = 8388608
set shmsys:shminfo_shmmni = 0x1000
set shmsys:shminfo_shmseg = 0x100


Matthew

(Had this problem with the XMMS multimedia player would you believe)

The Universe: God's novelty screensaver?
 
Matthew,

Thanks for the quick reply. Those are the settings in /etc/system that don't seem to take affect when the box is rebooted. I know that shared memory isn't loaded when the OS starts necessarily, but rather when something requests it. However, we can't seem to get our new value for shmmax to load (it keeps showing the old one when we reboot the box and do a sysdef)

Any other thoughts?

Thanks!
 
Hmm, thats odd. I can't think why that would be an issue.

Have you used the shmmax command in a root terminal to set it to what you want and then run the program, just to check that is the problem?

Matthew

The Universe: God's novelty screensaver?
 
One moment, I am getting confused over OS.

In solaris there is no dynamic method of configuring it.

Also apparently there is no problem for setting it at its maximum....

Have you attempted to allocate more than 2GIG on a 32bit system? Highly unlikely.

According to the official documentation that is the only place its set.

You have a sticky problem here.

Matthew

The Universe: God's novelty screensaver?
 
Good question - I don't remember exactly, but I'm sure it's at least 2 - 4 GB, and we're not setting shmmax any higher than 512 MB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top