- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- RAM and Swap
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
11-12-2003 10:15 PM
11-12-2003 10:15 PM
The is system HP-UX 11.11. I currently have 2GB Ram and 2GB swap. I need to add more RAM up to 4GB but I cannot resize Swap as well.
What are the potential problem in that? Is it possible (even if it is not recommended) to keep swap 1/2Ram worth?
Thanks in advance for your replies.
Pedro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 10:18 PM
11-12-2003 10:18 PM
Re: RAM and Swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 10:45 PM
11-12-2003 10:45 PM
SolutionIf swap is not utilized not utilization is less after the memory upgrade then there is no need to increase the swap space.
check the usage of memory and swap after the RAM upgrade.
There is nothing like the swap should be some percentage of the memory.
There is a concept as pseudo swap in hpux which can make use of the memory space as swap with less swap defined on systems.But this would be for system with huge amount of memory.
Check for the usage of memory and swap after upgrade and then you are add additional swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 10:47 PM
11-12-2003 10:47 PM
Re: RAM and Swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 10:51 PM
11-12-2003 10:51 PM
Re: RAM and Swap
if you have the kernel parameter swapmem_on set to 1 (default) you will be able to use 4GB RAM even if you have only 2GB Swap.
check with:
kmtune -q swapmem_on
check if you have space to add swap:
vgdisplay vg00 (or other vgs)
to add an additional swap volume of 2GB on mirrored disks with vg00 as the root VG use:
lvcreate -L 2048 -m 1 -r n -C y -n lv_swap vg00
then add a line to /etc/fstab like
/dev/vg00/lv_swap swap swap 0 0
then enter
swapon -a
verify with
swapinfo -mt
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 12:41 AM
11-13-2003 12:41 AM
Re: RAM and Swap
As described above, to make use of all of your new memeory, you'll need to set that to 1. HP/Ux aloocates swap when it starts a process, so if swap is less than ram, you'll get the out of memory errors once you hit the limit of swap, regardless of ram size. Setting swapmem_on to 1 disables that feature.
Most of our systems are loaded up with RAM (we cant tolorate the performance hit if we start swaping to disk). Thus, our systems have less swap space than RAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 07:43 AM
11-14-2003 07:43 AM
Re: RAM and Swap
Pseudo Swap (otherwise knows as swapmem) was introuduced in HP-UX 9.04. Pseudo Swap gives the OS the ability to run new programs by reserving their swap allocation upon invocation, this resevartion is performed using real memory instead of using swap. What this means, is, that you no longer have to have swap equal or larger than total physical memory. By default the tunable parameter that contols this behavior, swapmem_on, is set to 1.
In HP-UX 11.0 and new feature was added called Lazy Swap. Instead of me trying to explain lazy swap in my own words, let me quote the release notes:
BEGIN QUOTE
Lazy Swap Reservation
Run time environments in which multiple processes map large private data
regions into their address spaces will put an exorbitant demand on a
system's swap resources. It can be demonstrated that in such environ-
ments the swap pool becomes inefficiently utilized.
The Lazy Swap Reservation (SWLZY) feature means that a swap reservation
for a process-private page is deferred until the process actually
attempts to modify the page (i.e. copy-on-write is broken). Essentially,
for Lazy Swap private regions, swap resources are used only for dirtied
private pages (which really require swap backing-store in the event of a
possible page-out).
Programming Impact
------------------------------------------------------------------------
Although a SWLZY process more efficiently utilizes swap resources by not
reserving swap for all private pages at either exec(2) or fork(2) time,a
process may receive an unexpected SIGBUS signal at run time as a result of a failed attempt at making a swap reservation. Consequently, a
discerning program must be written to handle the SIGBUS signal and
invoke appropriate recovery steps. These steps may include a
limited retry, a check-pointing of any significant or volatile data,
or simply exiting.
END QUOTE
This behavior can be controled on an individual proccess level by setting the '+z' flag with the chatr command.
JL