- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What does the kernel parameter shmmax do ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:40 AM
тАО12-15-2003 02:40 AM
What does the shmmax parameter do in HPUX 11.0 ?
If w have a system with 2Gb memory should we set this parameter to 0x80000000 ?
Kl@@s
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:43 AM
тАО12-15-2003 02:43 AM
Re: What does the kernel parameter shmmax do ?
:-)
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:44 AM
тАО12-15-2003 02:44 AM
Re: What does the kernel parameter shmmax do ?
From SAM's help on Kernel Configurable Parameters:
"shmmax defines the system-wide maximum allowable shared memory
segment size in bytes. Any shmget() system call that requests a
segment larger than this limit returns an error (see shmget(2)).
Setting this value to 0x7fffffff has the effect of disabling this limit,
allowing the operating system to impose its own hard limit for shared
memory. "
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:46 AM
тАО12-15-2003 02:46 AM
Re: What does the kernel parameter shmmax do ?
checkout /etc/conf/master.d/* files for default values.
you cannot increase the value to more than the maximum avaiable swap space.
I think you also need to rebuild the kernel if you change this value.
:-)
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:46 AM
тАО12-15-2003 02:46 AM
Re: What does the kernel parameter shmmax do ?
It defines the largest shared memory request an application can make in a single request.
You should set the parm to the largest anticipated request application(s) will ever make.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:48 AM
тАО12-15-2003 02:48 AM
Re: What does the kernel parameter shmmax do ?
http://www.docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/939/KCParms/KCparam.ShMmax.html&searchterms=shmmax&queryid=20031215-084535
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:50 AM
тАО12-15-2003 02:50 AM
Re: What does the kernel parameter shmmax do ?
You need to look here.
http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.ShMmax.html
0x80000000 is too high a value, unless you want all your physical memory to be allocated to shared memory.
Here we have shmmax 0X40000000, which is quite generous, but then we run Oracle...
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 03:01 AM
тАО12-15-2003 03:01 AM
Re: What does the kernel parameter shmmax do ?
/grep -i shmmax /stand/system
/shmmax 0X100000000
The function of shmmax is the maximum ammount of shared memory that the system will allocate. This becomes primarily important for database implementation, and preformance tuning. Large apps that require memory areas dedicated to them (ORACLE, INFORMIX, SYBASE, INGRESS,etc). This doesn't even get to where the applications that require memory contiguity are concerned. Many applications that require contiguous memory blocks will used shared memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 03:33 AM
тАО12-15-2003 03:33 AM
Re: What does the kernel parameter shmmax do ?
And you have to take in mind that our system has 7 oracle 8.1.7 instances running simultanious and also we have other applications like c-isam and forms ?
Or is this thought wrong and is there a manual or document to calculate this value ?
Kl@@s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 03:46 AM
тАО12-15-2003 03:46 AM
Re: What does the kernel parameter shmmax do ?
Yes, that's a good start. You will need a little extra for the non-oracle app needs.
I'd think a good starting point would be 110% of the SGA - depending on it's size. If it big i.e. +2GB or more then you may get by with 105%. But if it's small i.e. 500GB, you may want 120% or more.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 10:40 PM
тАО12-15-2003 10:40 PM
Re: What does the kernel parameter shmmax do ?
Kl@@s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 10:43 PM
тАО12-15-2003 10:43 PM
SolutionIf you see the same CPID in more than one row, then that process as created each segment.
"man ipcs" for more.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 10:47 PM
тАО12-15-2003 10:47 PM
Re: What does the kernel parameter shmmax do ?
you can get this using the InterProcess Communications Suite
checkout man pages on ipcs for different options
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 11:34 PM
тАО12-15-2003 11:34 PM
Re: What does the kernel parameter shmmax do ?
Should the shmmax parameter be set to 120% of the biggest requested segment size or should it be set to 120% of the sum of all segment sizes.
And with the segment size i mean the segment size reported with ipcs -ma.
And how do the other shm* parameters relate to these findings ?
Or am i asking to much ??
Kl@@s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 11:51 PM
тАО12-15-2003 11:51 PM
Re: What does the kernel parameter shmmax do ?
I would start by increasing it to 120% of the sum of teh related segment sizes.
I have a book hpux 11i sys admin by prentice hall which explains all about these kernel parameters and buillding the kernel well worth purchasing. ISBN 0-13-060081-4
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 11:55 PM
тАО12-15-2003 11:55 PM
Re: What does the kernel parameter shmmax do ?
sorry not sum but 120% of prsent system value . default is i belive 64 so increase to 76.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 11:58 PM
тАО12-15-2003 11:58 PM
Re: What does the kernel parameter shmmax do ?
Other parameters:
shmmni - Maximum number of shared memory segments allowed on the system at any given time.
shmseg - Maximum number of shared memory segments that can be attached simultaneously to any given process
Follow this link to a full description of them all...
http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.SharedMemParmsList.html
-- Graham