- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Additional swap space migration
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
01-16-2005 04:45 PM
01-16-2005 04:45 PM
Additional swap space migration
I have a swap space i(File system swap ) configured in external disk array (SAN) in addition to the primary swap of the machine .I am planning to shift that swap to on eof the internal disks .Please suggest if it would be a wise option to proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 04:55 PM
01-16-2005 04:55 PM
Re: Additional swap space migration
Deactivate the file system swap and configuring again using spcae available in internal disk.
using SAM it is very easy, ofcourse the system will reboot twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 05:08 PM
01-16-2005 05:08 PM
Re: Additional swap space migration
You can use SAM to check to deactivate your primary swap and it will do it when you reboot the server. You can check swap information by #swapinfo -ta or lvlnboot -v
To add a swap at the end of filesystem by
#swapon -p priority_number -e /dev/dsk/cxtydz (with end of whole disk device)
HMT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 05:23 PM
01-16-2005 05:23 PM
Re: Additional swap space migration
My question is , Id it a good idea to do this migration from the performance point of view .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 05:44 PM
01-16-2005 05:44 PM
Re: Additional swap space migration
Ofcourse performnace will improve, because for additional swap system no need to look into network (SAN), which is slightly time consuming process than making an I/O to the disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 05:47 PM
01-16-2005 05:47 PM
Re: Additional swap space migration
From the performance's point of view. You should check your performance utilization, indicated by page out by sar -w, vmstat, how your Physical memory is and how local space disk. If it's not take much memory , you should take it by default (it mean that lvol2 as primary swap)
HMT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 10:26 PM
01-16-2005 10:26 PM
Re: Additional swap space migration
If nothing is used you will not gain any performance.
If swapspace is used on SAN you will get better performance by moving it to local disk. You will get better performance because:
1. It is local (vs SAN).
2. it is device swap (vs filesystem swap).
If posible you should put it on another disk than the promary swap and give it the same priority (given the speed of accessing the disks are the same).
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 10:46 PM
01-16-2005 10:46 PM
Re: Additional swap space migration
Furthermore, when swap usage is high, it might steal performance from the data-filesystems on the SAN.
If Your local reserve to 'eof' in vg00 is really large, You will have to check the kernel parameter max_swap_chunks, or the system possibly won't able to use it to full.
Also... are You sure You don't want to keep any reserve in vg00 for emergencies?
Personally, I'd add the swapspace right now and update fstab so that the next scheduled reboot cleans up the things.
lvcreate -l 1 vg00
lvextend -m 1 /dev/vg00/
lvchange -m y /dev/vg00/
lvextend -l
# enter swapspace to fstab
# please use a lower priority than the already-existing swapspace in vg00, or the disks get hammered without gain
/dev/vg00/
swapon -a
# then remove the filesystem swap from /etc/fstab
good luck :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 12:33 AM
01-17-2005 12:33 AM
Re: Additional swap space migration
Now it's true that filesystem swap is slower than a raw swap area and it's certainly a good idea to use a raw lvol as secondary swap space rather than sharing it with a filesystem. But check to see whether the swap space is actually being used (swapinfo -tm). The secondary swap area should a higher priority number (less important) than your primary swap. If they are equal then swap space is allocated in a round-robin method.
But if you look at vmstat's statistic: po (which is page outs), single digit numbers are fine, double and triple digits for long periods will need more RAM to significantly improve performance.
Bill Hassell, sysadmin