- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Swap space usage
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
02-27-2003 10:20 PM
02-27-2003 10:20 PM
Our system got 4 GB of RAM and swap sapce of 8GB, now we are facing a problem like the swap space usage is reached almost 95% and when I checkd with Glance Plus, it was showing total swap usage is 95% Avail : 8.0 Gb Resvd 7.6 GB and used 873 Mb. Why it is reserving 7.6 GB when tha actual usage is only 873 Mb, is there any way to reduce the Reserved swap sapce.
Thanks in adv
Rajesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 10:35 PM
02-27-2003 10:35 PM
Re: Swap space usage
check the value of 'dbc_max_pct' kernel parameter, default value will be 50, set it to 15 or 20.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 10:52 PM
02-27-2003 10:52 PM
Re: Swap space usage
The current value is "2". Is there any other kernel parameter related to this. What is the significance of dbc_max_pct with reserved swap space?
Glance is showing buffer headers as 100%. Any idea about this?
-Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 10:52 PM
02-27-2003 10:52 PM
Re: Swap space usage
It's UNIX feature. When process starts, HPUX reserves swap space for it. Process doesn't really use reserved space while free memory exist. The reservation of swap space is done so that the operating system knows how much swap space "potentially" may be needed for all the processes currently running on the system.For example, if all processes in memory were to be swapped out, the operation system would know it had enough swap space to perform that function. To decrease disk space for swap you may turn on pseudo swap, but it requires enough memory to place processes and swap in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 10:56 PM
02-27-2003 10:56 PM
Re: Swap space usage
It is like this.
Whenever a process is created and before its execution it reserves swap space.
This swap is not used/allocated before the period when the paging happens to the disk.
This is done to prevent the swapper running out of swap space.
For example,
if you are to execute a 4Gb process then this process before execution reserves a 4gb swap area incase it is swapped.
This is a wastage of resource.
you can prevent this by turning on the pseudo-swap from 0 to 1 on the kernel.
by enabling pseudo swap some amount of memory is also used as swap.
When the pseudo swap increases then the amount of lockable memory decreases.
If you have more memory consuming applications then you might think of increasing the memory on the server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 10:56 PM
02-27-2003 10:56 PM
Re: Swap space usage
It's UNIX feature. When process starts, HPUX reserves swap space for it. Process doesn't really use reserved space while free memory exist. The reservation of swap space is done so that the operating system knows how much swap space "potentially" may be needed for all the processes currently running on the system.For example, if all processes in memory were to be swapped out, the operation system would know it had enough swap space to perform that function. So if total size of all running processes on your system is 6Gb, swap reservation also will be 6Gb. To decrease disk space for swap you may turn on pseudo swap, but it requires enough memory to place processes and swap in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 11:00 PM
02-27-2003 11:00 PM
SolutionGood explanation
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066374044
Also check /usr/share/doc/mem_mgt.txt.
Thanks