- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increasing 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
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
тАО10-29-2003 03:28 AM
тАО10-29-2003 03:28 AM
Were running an IA64 on HPUX B.11.22 and I need to increase my swap file as I've seen it grow to 98% full. How can I do this and still have the swap file contiguious.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:30 AM
тАО10-29-2003 03:30 AM
Re: Increasing SWAP
The better way would be to create another LV to use as swap space.
However, if you are using that much swap then you really need to add more RAM instead of adding more swap. If you truly are paging out, then I'm your machine is performing rather poorly.
If you could attach your 'swapinfo -tam' output so we can verify you usage that would be great.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:31 AM
тАО10-29-2003 03:31 AM
Re: Increasing SWAP
Basically you can't extend the current swap. You'll never be able to keep it contiguous.
But what you CAN do is add secondary swap on another disk device & that'll work just fine.
You'll need to check your maxswapchunks kernel parm - it'll probably have to be increased to accomodate the extra swap. This will require a reboot.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:33 AM
тАО10-29-2003 03:33 AM
Re: Increasing SWAP
Here is how if you want to:
Adding secondary swap:
USING LVM:
1.) pvcreate /dev/rdsk/cXtXdX (The disk that will be used for swap)
2.) vgcreate /dev/vgXX /dev/dsk/cXtXdX (Creating a volume group)
or vgextend /dev/vg00 /dev/dsk/cXtXdX (to add the disk)
3.) lvcreate -L (size in mb) -C y -r n /dev/vgXX (Creating a logical
volume for swap)
4.) edit the fstab file ..ie /dev/vgXX/lvolX ... swap pri=1 0
5.) swapon -a
6.) swapinfo -tam (should show new swap)
To remove swap
1.) edit the fstab file -> remove the swap line
2.) reboot the system
If you want this new swap to be dump as well, it must be in vg00 and then
run the command lvlnboot -d /dev/vg00/lvolX
To check it -> lvlnboot -v
USING WHOLE DISK PARTITION:
1.) edit the fstab file ..ie /dev/dsk/cXtXdX ... swap pri=1 0
2.) swapon -a
3.) swapinfo -tam (should show new swap)
Hope this helps
-Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:33 AM
тАО10-29-2003 03:33 AM
Re: Increasing SWAP
Just create a new swap partition and activate it, easiest way to do this is with SAM -> Disks and Filesystems -> Swap.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:34 AM
тАО10-29-2003 03:34 AM
Re: Increasing SWAP
Here is my 'swapinfo -tam'
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 1226 2870 30% 0 - 1 /dev/vg00/lvol2
reserve - 2310 -2310
memory 1463 448 1015 31%
total 5559 3984 1575 72% - 0 -
Right now it's at about 30% but I've seen it increase to as high 98%, unfortunatley I can't recall what was happening at that time to increase swap to that point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:39 AM
тАО10-29-2003 03:39 AM
Re: Increasing SWAP
You, and your users, will probably see a performance increase when you do, since you won't swapping anymore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:45 AM
тАО10-29-2003 03:45 AM
Re: Increasing SWAP
Barry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:47 AM
тАО10-29-2003 03:47 AM
SolutionThe general strategy now is the A. Clay Stephenson plan which involes a smaller primary swap and a larger secondary that only gets used when loads get high.
As Patrick notes, swap is no substitute for adequate memory. If you need to increase swap beyond twice memory, performance will suffer and thats a good indicator its time to get your hands on some RAM.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 03:51 AM
тАО10-29-2003 03:51 AM
Re: Increasing SWAP
If you add memory, that will give you more room for processes to run, without other processes having to be paged-out to disk first, thus making things run a whole lot faster.
Now, if you add more memory, you don't necessarily need to add more swap space. If you set the kernel parameter swapmem_on to 1 then HP-UX will use 75% of your RAM as pseudo-swap, thus allowing processes to run and reserve their little piece of swap space without actually having to have a 1:1 ratio of available swap to RAM. Having swapmem_on set to 1 will not impact the amount of RAM you have available for processes.