- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Increase primary 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
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
тАО06-28-2004 07:37 AM
тАО06-28-2004 07:37 AM
What is the process to increase the primary swap space?
Thanks for your help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 07:45 AM
тАО06-28-2004 07:45 AM
Re: Increase primary swap space
If you like to add primary swap, you will need to create a bootable ignite backup and restore your OS with larger lvol's.
How large is your pri swap ? I use 2 GB pri swap on 1.5 physical mem. After that I add secondary swapspace.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 07:46 AM
тАО06-28-2004 07:46 AM
Re: Increase primary swap space
(/stand, swap and /) So increasing it like reinstalling the server. But why to do that??
Create a seconday swap with required space.
lvcreate -L xxxM -C y -r n /dev/vgxx/lvolx
It would be better, if you create that on another disk than that of primary swap. i.e. if primary swap is on dev/dsk/c1t1d0, then it is good to create the swconday device swap on /dev/dsk/c2t2d0.
Also seconday swap can be anywhere, it could be in vg01 also. (just make sure that you activate the vg during boot up process)
Once you create that, put an entry in /etc/fstab
/dev/vgxx/lvolx ... swap pri=1 0 0
swapon -a (man 1M swapon to turn it on)
Later, tune the maxswapchunks parameter to reflect the added swap space and reboot.
Setting the same priority as that of primary device swap gives good performance.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 07:48 AM
тАО06-28-2004 07:48 AM
SolutionIf you are increasing RAM then it is not compulsary to increase the swap as well. Try monitoring the swap first then if necessary you can increase the swap if required. If you see more page faults then you can try increasing the SWAP. But since you increased memory probably it would fine as it is. You can use vmstat, sar to monitor swap. see man vmstat,sar.
Now still if you want to increase the primary swap then:
see man lvextend
see man swapon
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 08:04 AM
тАО06-28-2004 08:04 AM
Re: Increase primary swap space
The system looks at the moment
9 Gbyte (on one physical disk)
256 MByte RAM
512 MByte swap space
the memory will be increased
to 512 MByte RAM, due newer application software release.
# swapinfo returns
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 524288 89188 435100 17% 0 - 1 /dev/vg00/lvol2
reserve - 160548 -160548
memory 177748 55260 122488 31%
# sar -w 60 3
22:59:48 swpin/s bswin/s swpot/s bswot/s pswch/s
23:00:48 0.00 0.0 0.00 0.0 1445
23:01:48 0.00 0.0 0.00 0.0 1671
23:02:48 0.00 0.0 0.00 0.0 1658
Average 0.00 0.0 0.00 0.0 1591
Following your suggestions so far,
adding memory and monitoring the swap space usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 09:07 AM
тАО06-28-2004 09:07 AM
Re: Increase primary swap space
but still for a system with only 512 MB, it would be a good idea to increase the amount of swap space you have.
As mentioned above, you cannot increase primary swap without rebuilding the system using ignite-ux recovery tape
also it looks like you have the pseudo swap enabled (swapmem_on kernel parameter).
1) add a secondary swap
2) disable pseudo swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 09:22 AM
тАО06-28-2004 09:22 AM
Re: Increase primary swap space
'swapinfo -t' will give you more information. "PCT USED" under the total column of your 'swapinfo -t' should be less than 100 always otherwise you will not be able to bring up more processes. From the partial numbers you provided, I see that around 45% swap is being used that includes 'paged out pages + reservation'.
I see that 90 MB is already sitting on the swap. It could be either memory mapped pages or the 'real paged out' pages. If the later is the case, then what you are doing is right - increase memory.
Since you already have pseudo_swap enabled, increasing memory is going to buy you little more swap needed for reservation and it will also cover your memory needs. So, I don't see any reason why you have to increase your device swap, not your primary swap at all. I would keep monitoring the box and see if the total swap utilization in 'swapinfo -t' reaches 90% and then consider adding 'secondary swap'.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 06:47 PM
тАО06-28-2004 06:47 PM
Re: Increase primary swap space
If you are adding more memory because you are going to put more load on the system you may want to add more swap. But I would say it don't have to be primary.
If you are adding more memory in order to increase performance the point is to have enougn RAM so you don't need swap.
Regards,
Trond