- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: System is using swap instead of RAM
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-22-2003 12:20 AM
07-22-2003 12:20 AM
Now my question is not related to the size of swap space or swap configuration, But its abt the memory usage. Oracle is the only application running on her. when i rebooted the system today, & get memory utilization information, it showed me 191MB of swap space under usage (quite ok coz total swap =4GB).
After starting oracle & its related services (like listeners), i once again obtain the memory utilization information. This time swap utalization was 1.3GB & physical memory utilization was constant (under 1GB) as it was before starting oracle database services. It seems to me that Oracle SGA was loaded in swap instead of RAM.
Now question:
1) why she is using swap when there is around 6.5GB-7GB of physical memory(RAM) is still unused. & why there is so heavy utilization of swap.
2)Is there any way to clear swap space instead of rebooting the system.
Regards
Khurram
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 12:44 AM
07-22-2003 12:44 AM
Re: System is using swap instead of RAM
when a process reside in memory, a same size of block in swap will be reserved. so if 1.3G memory is in utilization , same size will be reserved in swap.
this amount of space is not really "used" but "reserved".
you can use "swapinfo -at" to check state in swap, it will list how much is used, and how much is reserved.
In this state, release memory can make swap released also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 02:16 AM
07-22-2003 02:16 AM
Re: System is using swap instead of RAM
Whenever a process executes in memory it reserves the same amount in swap,incase it must be paged out.
That is the reason the swap reservation column is increasing while still you have free memory.
If you have more unused free memory on the system you can try enabled swapmem_on to 1 which will enable pseudo swap.
This will use memory as swap.
This is very useful in reducing the amount of swap on systems with huge amount of memory.
check the memory management white paper at /usr/share/doc/mem_mgt.txt.
Just do a search for "pseudo swap" which will explain you in detail
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 10:15 AM
07-23-2003 10:15 AM
Re: System is using swap instead of RAM
Most processes actually access only a fraction of the addresses that they map. The system may also page out some pages from a process if free physical memory is becoming scarce. It chooses pages that have not been accessed recently, trying to keep in the pages that are likely to be used again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 10:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 10:37 AM
07-23-2003 10:37 AM
Re: System is using swap instead of RAM
As Mike has noted, swap is going to be *reserved* when a process allocates memory but has yet to write to it. You can see this reflected in 'swapinfo'. Once this memory is utilized, the *used* component shown in 'swapinfo' will increase accordingly. More importantly if the process free()s the memory it has allocated, *no* change in the used fraction will occur until the process which performed the original allocation actually terminates.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 08:22 AM
07-24-2003 08:22 AM
Re: System is using swap instead of RAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 08:47 AM
07-24-2003 08:47 AM
Re: System is using swap instead of RAM
Thank you for the correction! I was picturing the 'swapinfo' columns in my head, but obviously not clearly. [ I should have just gone to bed :-)) ] I should have said something like, "Once this memory is utilized, you can see the 'freemem' kernel pool fall if you measure it with 'adb'...".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 09:31 PM
07-24-2003 09:31 PM
Re: System is using swap instead of RAM
Check swapinfo -atm output for reserved, if reserved area is more check whether pseudo swap is enabled (you can find from swapinfo output; check for memory in swapinfo output,) if not enable by tuning the kernel parameter swapmemon to 1. This will reduce the reserved allocation.
If you are using Oracle 9i and Java make sure that you installed all the recommended patches for Java SDK.
-Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 09:34 PM
07-24-2003 09:34 PM
Re: System is using swap instead of RAM
Check swapinfo -atm output for reserved, if reserved area is more check whether pseudo swap is enabled (you can find from swapinfo output; check for memory in swapinfo output,) if not enable by tuning the kernel parameter swapmemon to 1. This will reduce the reserved allocation.
If you are using Oracle 9i and Java make sure that you installed all the recommended patches for Java SDK.
-Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 09:37 PM
07-24-2003 09:37 PM
Re: System is using swap instead of RAM
Check swapinfo -atm output for reserved, if reserved area is more check whether pseudo swap is enabled (you can find from swapinfo output; check for memory in swapinfo output,) if not enable by tuning the kernel parameter swapmemon to 1. This will reduce the reserved allocation.
If you are using Oracle 9i and Java make sure that you installed all the recommended patches for Java SDK.
-Rajesh