- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shmmax calculation
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
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
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
07-23-2003 05:03 PM
07-23-2003 05:03 PM
How big is my shmmax if the value is 0x4000000?
How do I convert it to Mbytes?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 05:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 05:13 PM
07-23-2003 05:13 PM
Re: shmmax calculation
BTW, 0x4000000 is the maximum shared memory segment size (in bytes) for a 32-bit kernel.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 05:15 PM
07-23-2003 05:15 PM
Re: shmmax calculation
Another way is with adb:
# echo 0x4000000=D | adb
This will give the answer in bytes. You will see it is 67108864, or ~64MB.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 05:16 PM
07-23-2003 05:16 PM
Re: shmmax calculation
I also use the Windows calculator!!
Select View -> Scientific.
Select Hex, type in the hex number, then select decimal.
So for your shmmax this gives 67108864 bytes (64MB).
As JRF said this is the maximum shared memory segment size, so if you're installing Oracle you'll need to increase it!
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 05:37 PM
07-23-2003 05:37 PM
Re: shmmax calculation
Your system will ignore any shmmax setting greater than 25% of available memory.
Memory is defined as physical memory PLUS swap.
swapinfo -tam
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 11:23 AM
08-05-2003 11:23 AM
Re: shmmax calculation
According to the HP documentation availble to me,
http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.ShMmax.html
"shmmax...The value used cannot exceed maximum available swap space..."
and there is no mention that I can find about the system ignoring anything, however "...Any shmget() system call that requests a segment larger than this limit returns an error (see HP-UX Reference entry shmget(2))."
Is there some updated documentation we can refer to?
Thanks.
Carl Muellner
cpm@capgroup.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 01:03 PM
08-05-2003 01:03 PM
Re: shmmax calculation
A word about SHHMAX -- if you're running 32-bit Oracle or apps, set this to 4GB (or 0x100000000). For 64-bit Oracle - ask your DBA -- will there ever be a SGA size greater than 4GB? If there is then set it to whatever likely the biggest SGA or SHM reqs there could be. Ideally, Oracle SGA or apps SHM reqs. must FIT in one SHM segment for a server to perform optimally....
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 01:03 PM
08-05-2003 01:03 PM
Re: shmmax calculation
A word about SHHMAX -- if you're running 32-bit Oracle or apps, set this to 4GB (or 0x100000000). For 64-bit Oracle - ask your DBA -- will there ever be a SGA size greater than 4GB? If there is then set it to whatever likely the biggest SGA or SHM reqs there could be. Ideally, Oracle SGA or apps SHM reqs. must FIT in one SHM segment for a server to perform optimally....
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 08:48 PM
11-19-2003 08:48 PM
Re: shmmax calculation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 08:58 PM
11-19-2003 08:58 PM
Re: shmmax calculation
Another command for that
printf "%d\n" 0x4000000
Now to the oracle part. If your server is running only that, and you need not woorl abt anything else, I would try to max memory setting for shmmax. I will also try setting shmmax to that of oracle sga.
Not e you have limitationm of 1.7 gb for 32 bit oracle.