- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Oracle and swap space
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
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
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
тАО08-28-2009 03:54 PM
тАО08-28-2009 03:54 PM
Oracle and swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2009 06:11 PM
тАО08-28-2009 06:11 PM
Re: Oracle and swap space
you need to set SGA parameter accordingly, this will help to improving performance
how much is physical RAM for this server?
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2009 06:49 PM
тАО08-28-2009 06:49 PM
Re: Oracle and swap space
You may also want to quantify 'huge'.
How about some actual swapinfo numbers?
fwiw, Running swap at a fraction of ram is possible in lazy/deferred swap mode, but can get scary. I used to run (Tru64) Unix servers with Oracle in 64GB or more of memory with just 8 or 16 GB of swap... but I knew _exactly_ what the SGA and PAG settings would be and how many connections to expect from my SAP middle tier and at what memory footprint those kicked in.
As for a paper... have you checked out the regular Oracle documentation like:
http://download.oracle.com/docs/cd/B19306_01/server.102/b15658/tuning.htm
If that does not cover it, then please provide concrete questions with factual details.
Good luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2009 08:45 PM
тАО08-28-2009 08:45 PM
Re: Oracle and swap space
@ avizen, not sure what you mean by "set the SGA accordingly". Are you suggesting that excessive paging is a function of an undersized SGA?
@Hein
yeah, fractional paging space can be interesting. Not as interesting as it used to be though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2009 04:38 AM
тАО08-29-2009 04:38 AM
Re: Oracle and swap space
Why don't you start to really work this problem and provided pertinent numbers instead of handwaving.
We are not good mind reading here.
Words like 'several' and 'Oracle Server' and 'fraction' and 'huge' are essentially meaningless.
That does not leave much information so far to try to help you.
There are _tons_ (another meaningless word) of papers and books out out there describing memory management and usage an many of them in an Oracle context.
Google: +oracle +pdf +paging +swap will find 'several'
For both a 'good' and a 'bad' system please enumerate (for yourself!)
- physical ram
- number of databases instances
- for each database find (version), SGA mb, PGA mb, sessions
- sum of all SGA and all PGA and all sessions over concurrently active database instances.
If that does not lead you to the problem, then please share here (in a text file attachment) and we'll try to help better.
Regards,
Hein.
HvdH Performance Consulting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2009 05:23 AM
тАО08-29-2009 05:23 AM
Re: Oracle and swap space
I apologize for perhaps being a little vague but I wasn't really looking for a direct technical "how-to"
Then again, your suggestions are valid. I'll try run it down from a pure numbers angle and see where that leads me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2009 08:41 PM
тАО08-29-2009 08:41 PM
Re: Oracle and swap space
You must also see some settings like nfile, maxuproc, nproc parameters and their usages.
I have seen ppl keeping very high values for the heck of it and end up utilizing more memory and hence leading to swapping.
Also number of users logging in and the kind of query running on a database also effects over all memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2009 03:39 AM
тАО08-30-2009 03:39 AM
Re: Oracle and swap space
I agree that keeping kernel parms at too high settings will cause overuse of resources. In this particular case they are set as per oracle recomendations (keeps the peace).
Also, the system isn't actually paging just reserving paging space , ie. no high values of PI and PO in fact they show at 0. Physical Ram is 32 GB and 150 GIG of paging space gets reserved in no-time. I have not had to use this ratio of paging space to RAM since the mid 90's .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2009 09:06 AM
тАО08-30-2009 09:06 AM
Re: Oracle and swap space
Look for processes with large virtual size, then use Glance or pstat backed utilities to see where the large size stems from and act accordingly. (This can't all be kernel -- since the kernel will rarely reserve _actual_ disk swap, only memory swap [since it doesn't get paged except for a few bits of metadata] -- so it has to be user, and if it is user -- there have to be virtual objects you can locate.)
If the process VSZ doesn't add up, orphaned SysV shmem segments (like the SGAs of badly terminated prior Oracle instances?) leap to mind -- have 4 or 5 copies of the same SGA in RAM [because Oracle tried to remove the segment (shmctl with IPC_RMID) but there's one (or more) attached process that won't finish exiting, etc.] and it would add up quickly in reservation costs, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2009 01:59 PM
тАО08-30-2009 01:59 PM
Re: Oracle and swap space
If I were a betting man (which I am 1 Friday evening each month :-), then I would put my money on a DBA having gotten exited about SGA_MAX_SIZE, and turned it way up 'just in case'. Oracle will then tell teh OS to reserve that VM, but will not actually touch it untill the SGA components are dynamically resized (SGA_TARGET, SHARED_POOL_SIZE,...)
Again, check the SGA settings, and kindly indicate the Oracle version. It may not be important, but it is likely to be more important than the HPUX version.
In the running system, please be sure to check with ipcs -m.
And like Don write. Check the process VSZ numbers with teh tool of your preference (ps, glance, top, whatever works for you).
Besides the tuning manual mentioned earlier check out the concepts manual, and have a look at:
http://blog.tanelpoder.com/2007/08/28/operating-systems-are-lazy-allocating-memory/
http://forums.oracle.com/forums/thread.jspa?threadID=535400&tstart=0
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 05:56 AM
тАО08-31-2009 05:56 AM
Re: Oracle and swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 06:58 AM
тАО08-31-2009 06:58 AM
Re: Oracle and swap space
I'm thinking you are on to something with the remnant shared memory segments, we had a maintenance window yesterday morning and bounced the dabatase server. Looking a lot different this morning. Looks like a lot of user processes' just get left hanging on the database server. Sunday morning with no users on the applications it still showed 1600 plus active oracle connections.
@Hein,
I'll talk to the DBA about oracle parms.
I've been staring at this so long I'm going blind. Attaching the ipcs -a output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 07:05 AM
тАО08-31-2009 07:05 AM
Re: Oracle and swap space
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 07:21 AM
тАО08-31-2009 07:21 AM
Re: Oracle and swap space
How much RAM do you have on this particular server and how much SWAP?
It may bery well be your RAM is not sufficient for the Oracle load and SGA your running.
IF you have glance, you can check VM starvation. You can also do vmstat paying particular attention to "sr".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 08:59 AM
тАО08-31-2009 08:59 AM
Re: Oracle and swap space
Right now the there's 120 GIG of paging space defined with 35 GIG used at the time of this writing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 09:04 AM
тАО08-31-2009 09:04 AM
Re: Oracle and swap space
Also I wonder what those 2 or 3 other large chunkks of Shared Memory are though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 09:05 AM
тАО08-31-2009 09:05 AM
Re: Oracle and swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 09:09 AM
тАО08-31-2009 09:09 AM
Re: Oracle and swap space
123 GIG swap
OLTP instance is set with 6 GIG SGA
and a 2 GIG PGA
QL> show sga
Total System Global Area 6442450944 bytes
Fixed Size 2164096 bytes
Variable Size 4777212544 bytes
Database Buffers 1660944384 bytes
Redo Buffers 2129920 byte
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2009 06:27 AM
тАО09-01-2009 06:27 AM
Re: Oracle and swap space
discussion with one of the developers this morning.
If and when a user session disconnects improperly from the application server, i.e., an RF terminal looses power or a terminal session on PC gets "x'd out" rather than closed with the application exit menu option the session server does not clean up so the connection(s) will persist for the lifetime on the application server process.
We've yet to prove this but it makes sense in that we slowly but surely accumulate database connections over and above what we believe should be there. We should be able to graph this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2009 06:34 AM
тАО09-01-2009 06:34 AM
Re: Oracle and swap space
> If and when a user session disconnects improperly from the application server, i.e., an RF terminal looses power or a terminal session on PC gets "x'd out" rather than closed with the application exit menu option the session server does not clean up so the connection(s) will persist for the lifetime on the application server process.
Yes, that is a very BAD THING. Not only connections, but temporary files and shared memory segments could be left lying around!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2009 06:12 PM
тАО09-01-2009 06:12 PM
Re: Oracle and swap space
Now go figure total Mem usage of Oracle -- SGA, VM, RSS...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2009 07:41 PM
тАО09-01-2009 07:41 PM
Re: Oracle and swap space
That is, it does not look like the SGA(s) were the problem.
So the focus has to shift back to the per-process memory.
If we simplistically take 129GB and divide it by 900, that would be 136 MB/process. That's not impossible, but unlikely.
Unless something add is happening like the Oracle executable chattered to 8kb pages.
Anyway, time to start poking with TOP, GLANCE or
UNIX95= ps -ef -o pid,sz,vsz,args | sort -nr -k 2,3
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=99729
hth,
Hein.