HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increase in Swap space
Operating System - HP-UX
1834710
Members
2805
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-27-2006 04:24 AM
09-27-2006 04:24 AM
Re: Increase in Swap space
To apply the priority change without reboot you will need to use the swapon command.
e.g. swapon -p 2 -f /dev/vg00/lvol9
The p is the priority
The f is to force overwrite of any existing file system for paging.
Just as a point of interest if you wanted one area of primary swap bigger by 1GB, then you could use Ignite/UX to reload the image. This does imply that you have some time to backup and reload the OS.
Mike.
e.g. swapon -p 2 -f /dev/vg00/lvol9
The p is the priority
The f is to force overwrite of any existing file system for paging.
Just as a point of interest if you wanted one area of primary swap bigger by 1GB, then you could use Ignite/UX to reload the image. This does imply that you have some time to backup and reload the OS.
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 04:40 AM
09-27-2006 04:40 AM
Re: Increase in Swap space
I have tried this..but still it remains 1. can anyone help me here how to change the priority with out reboot...and the exact entry what i need to give in /etc/fstab
is it ??
/dev/vg00/lvol9 /swap defaults 0 0 pri=2
# swapon -p 2 -f /dev/vg00/lvol9
swapon: /dev/vg00/lvol9 is already enabled for paging.
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 54 4042 1% 0 - 1 /dev/vg00/lvol2
dev 2000 0 2000 0% 0 - 1 /dev/vg00/lvol9
reserve - 2384 -2384
memory 4085 978 3107 24%
total 10181 3416 6765 34% - 0 -
is it ??
/dev/vg00/lvol9 /swap defaults 0 0 pri=2
# swapon -p 2 -f /dev/vg00/lvol9
swapon: /dev/vg00/lvol9 is already enabled for paging.
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 54 4042 1% 0 - 1 /dev/vg00/lvol2
dev 2000 0 2000 0% 0 - 1 /dev/vg00/lvol9
reserve - 2384 -2384
memory 4085 978 3107 24%
total 10181 3416 6765 34% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 11:54 PM
09-27-2006 11:54 PM
Re: Increase in Swap space
Hi Santy1,
I am afraid there does not appear to be any way of altering the swap priority once enabled, you have to reboot the system. The swapon command allows you to specify the priority at invocation with the -p parameter, but thereafter no changes allowed until reboot.
The line you need in the /etc/fstab should look something like this:
/dev/vg00/lvol9 ... swap pri=2 0 0
The pri=2 doesn't have to be 2, it can be any number bewtween 0 and 10, but given that you want to prioritise your swap you would want a number of >= 2.
Mike.
I am afraid there does not appear to be any way of altering the swap priority once enabled, you have to reboot the system. The swapon command allows you to specify the priority at invocation with the -p parameter, but thereafter no changes allowed until reboot.
The line you need in the /etc/fstab should look something like this:
/dev/vg00/lvol9 ... swap pri=2 0 0
The pri=2 doesn't have to be 2, it can be any number bewtween 0 and 10, but given that you want to prioritise your swap you would want a number of >= 2.
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2006 01:20 AM
09-28-2006 01:20 AM
Re: Increase in Swap space
Relax, just let the next boot take care of it. You are overly concerned about this. The difference in swap layout to performance is about the difference between a 100X performance hit and ~ 110X performance hit when you begin to swap to any significant degree. Both numbers are terrible so it really doesn't matter. It's not even obvious that you are really swapping. Use Glance or vmstat to see what your pageout rate is. If it is small (< ~ 10/sec -- 0 is ideal) then you really don't have a problem.
If it ain't broke, I can fix that.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP