- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- where do I find memory for oracle
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-20-2003 03:17 PM
07-20-2003 03:17 PM
where do I find memory for oracle
How do I tell how much memory the machine has free?
I understand that top is not a good indication of this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 03:29 PM
07-20-2003 03:29 PM
Re: where do I find memory for oracle
Use glance ('m' option) if you have it installed. Otherwise look at the 'free' column in vmstat output. You need to multiple this value by 4 to give the amt of free memory in KB.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 03:39 PM
07-20-2003 03:39 PM
Re: where do I find memory for oracle
I'm not the administrator of that box so can't run the commands myself.
-Ronelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 03:43 PM
07-20-2003 03:43 PM
Re: where do I find memory for oracle
Just becuase the DBA says he needs memory does not make it so.
swapinfo -tam
This shows total memory which is defined as physical memory plus swap.
In general, with heavy oracle applications my total swap is between 1.5 and 2.0 times physical memory.
I've recently become disposed to creating multiple swap areas, the first equal to half physical memory, the second at lower priority the rest of needed swap. This provides for very good Oracle performance during light loads and decent performance when the box is being pushed.
Here is a US only link to a good performance doc written by one of HP's oracle tuning experts.
http://www1.itrc.hp.com/service/cki/search.do?category=c0&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=UPERFKBAN00000726&search.y=8&search.x=28&mode=id&admit=-682735245+1058744592442+28353475&searchCrit=allwords
Lastly I'm attaching a data collection script to let you get to the bottom of any performance issues.
Ask those dba's why they think they need 200 mb and why they can't just modify the init.ora file and grab what they need then.
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
07-20-2003 05:44 PM
07-20-2003 05:44 PM
Re: where do I find memory for oracle
Steven, as I said, it's not my box so I don't really care what the DBA's do on it.
-Ronelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 05:53 PM
07-20-2003 05:53 PM
Re: where do I find memory for oracle
The HP-UX kernel parameter directly affecting the ORACLE SGA is SHMMAX which is limited in 32bit HP-UX systems to ~ 1gb. 64bit HP-UX versions can go significantly higher.
Run this command to find your O/S:
getconf KERNEL_BITS
Run this command to see the current value of SHMMAX:
kmtune -q shmmax
-to change shmmax-
kmtune -s shmmax=###
kmupdate -or- kmtune -u
See the DBA for the SGA procedure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 06:07 PM
07-20-2003 06:07 PM
Re: where do I find memory for oracle
SGA is shared memory and by default, ALL 32bit programs must share the same 32bit map, and this includes shared memory, shared libraries and memory mapped files. All of this gets scattered inside a single memory map which leads to fragmentation. So if a DBA needs an SGA that is 700 megs in size, while there may be 900 megs available, due to fragmentation there may be several 300 meg segments but no 700 meg segment. This is an architectural limitation of 32bit proceses.
There are two solutions: change to a 64bit version of Oracle and all shared memory issues disappear. SGA can be thousands of megs in size if needed. Then the only issue is physical memory--swapping large memory areas will severely impact performance.
The second solution is to use memory windows (available on 11.0 and higher, 11.0 needs current patches). This allows each instance of Oracle to have a private shared memory map to avoid fragmentation.
Have your DBAs read the memory management and process management white papers in /usr/share/doc (for version 11i, the papers disappeared--look for them at docs.hp.com).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 06:11 PM
07-20-2003 06:11 PM
Re: where do I find memory for oracle
#!/bin/ksh
m=0
for j in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -
rnk1 | grep -v Kbytes | grep ora | awk '{print $1}'`
do
m=`expr $m + $j`
done
echo "\n Oracle user claimed RAM is $m Kbytes.\n"