- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: increase swapspace
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
10-06-2007 10:19 AM
10-06-2007 10:19 AM
increase swapspace
how can i increase swapspace ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2007 10:48 AM
10-06-2007 10:48 AM
Re: increase swapspace
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2007 07:20 PM
10-06-2007 07:20 PM
Re: increase swapspace
I usually plan my systems pretty well and don't often need to increase swap space. For beginners and those who don't do it often, the best bet is to go to sam.
sam
Disks and filesystems
swap
All swap changes require a reboot to become active.
Also note that increasing swap beyond twice system ram is not recommended. It merely slows you down in most cases.
If your system is under memory pressure the response that usually solves more problems is to increase actual memory.
swapinfo -tam
vmstat
http://www.hpux.ws/?p=6
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-06-2007 08:11 PM
10-06-2007 08:11 PM
Re: increase swapspace
I thought file system swap is immediate? (Though not the best idea.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2007 10:00 PM
10-06-2007 10:00 PM
Re: increase swapspace
Shmuel
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-07-2007 12:57 AM
10-07-2007 12:57 AM
Re: increase swapspace
>SEP: All swap changes require a reboot to become active.
That's *not* the case. One uses the 'swapon(1M)' command to activate new filesystem or device swap. You can activate additional swap space without a reboot, but you cannot deactivate it without doing so.
>SEP: Also note that increasing swap beyond twice system ram is not recommended. It merely slows you down in most cases.
I don't believe that there is any basis for this. I rather think that there will be little benefit to doing that.
Some things that you don't want to do, however, are to place secondary swap space on the same physical disk as primary swap *unless* you set unequal swap priorities for the devices. WIth equal swap priorities, the primary and secondary swap devices will be written and read in an interleave. This will cause disk head movement to degrade performance as swap I/O were performed. Using equal priority on swap devices on different physical disk *is* considered desireable to spread I/O among disk.
That said, however, if you have insuffient memory to actually cause swap activity (measured by page-outs in 'vmstat' greater than single-digits), then you really need to add more physical memory to your system.
Primary swap effectively cannot be increased in size because it requires contiguous physical extents on disk. Finding immediately adjactent, unused extents to primary swap on vg00 isn't going to happen.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 09:57 PM
10-07-2007 09:57 PM
Re: increase swapspace
Steps
1) Create the logical volume for your secondary swap:
#lvcreate -L 2000 /dev/vg00
NOTE: "-L 2000" is the size of desired swap
Use SAM to declare your new secondary swap or use the command line: #swapon /dev/vg00/lvol15
Verify it has been added in "/etc/fstab" when using SAM, or add it manually when using the command line.
Example:
/dev/vg00/lvol15 swap defaults 0 0
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 02:21 AM
10-08-2007 02:21 AM