- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Increasing 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
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
05-25-2001 08:31 AM
05-25-2001 08:31 AM
Increasing Swap Space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 08:37 AM
05-25-2001 08:37 AM
Re: Increasing Swap Space
You need to free some partitions as definatley you need extra space , since you are not adding disk free , move a partition and then just add swap using SAM and in case you have online JFS installed then you dont even have to shut id down . It is better to have the swap on two differnt disks/controllers for better perfomnace issues.
Also typically the thumb rule is to have atleast the same swap size as you have the memory.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 08:38 AM
05-25-2001 08:38 AM
Re: Increasing Swap Space
insert in /etc/fstab:
/dev/vg00/lvolxx ... swap pri=2 0 0
#swapon -a
#swapinfo -mt (verify)
Try also with SAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 08:46 AM
05-25-2001 08:46 AM
Re: Increasing Swap Space
AND IF I choose to add another lv, can I add it to an external drive?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 08:56 AM
05-25-2001 08:56 AM
Re: Increasing Swap Space
You have one other option and that is to enable filesystem swap. This is normally not a good idea for performance reasons (but then for performance reasons I never want to swap anyway). You can configure some filesystem swap at VERY low priority so that it is not used until all your device swap is used so that you don't take as big a hit as you might think. Using it this way means that a lot of disk that normally goes unused can be used for other things.
man 1m swapon for details
but you would do this my
1) create a swap directory; e.g. mkdir /u02/fsswap
2) swapon -m 0 -l 32000 (for example) -r 1000 -p 5 /u02/fsswap
Note especially the low priority 5.
This is especially useful when you can't create a logical volume and you need swap NOW.
Food for thought, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 10:50 AM
05-25-2001 10:50 AM
Re: Increasing Swap Space
Increasing swap...so many things you could say or ask here. First: lvol2 is established when you first ignite the system. There is an unsupported method for reducing lvol2, but I am not aware of one to increase it except to re-ignite.
Adding physical (disk) swap should never be done on the same disk that has vg00...it defeats the system and can cause disk thrashing. You always want to add disk swap space to a different physical disk and configure it with lvols at about the same size as lvol2 (suggested this way, but not a requirement).
Now filesystem swap is another option and I believe that was mentioned...again it will slow you down.
Anytime you rely on physical devices like disks (which includes f/s swap) than the i/o factor of devices is going to impact your overall system performance.
My preference is (if you have enough memory) to configure/tune your parms; enable pseudo swap and keep your swapping strictly in memory. It improves system performance greatly by keeping your swapping in memory and not paging out to disk.
That said...have you tried monitoring your system using the sar commands. When you see peak periods run some of these. Like a sar -w 1 60....or if your running Oracle check and see if your slowing down because your semm* parms are too low and your waiting because nothing is freed up yet (sar -mS 1 60).
If a system is going slow, disk swap maybe is not always the answer. Double check your parms.....good tuning will often buy you much better performance.
Just my 2cents,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 10:55 AM
05-25-2001 10:55 AM
Re: Increasing Swap Space
Thanks, everyone, for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 11:48 AM
05-25-2001 11:48 AM
Re: Increasing Swap Space
If you want to increase the size of /dev/vg00/lvol2, to say, 1 Gb, you could run:
lvextend -L 1000 /dev/vg00/lvol2
However, due to contiguous allocation policy for swap volumes, you need to have enough disk space on disk IMMIDIATELY after lvol2.
You can try the following:
1. Run 'lvdisplay -v /dev/vg00/lvol2 | more' and note disk device(s) under "PV Name"
2. Let's say the disk device for lvol2 is /dev/dsk/c0t1d0. Then run 'pvdisplay -v /dev/dsk/c0t1d0 | more' and note the sequence of physical extends on this disk. You will likely see physical extents for lvol1, lvol2, lvol3 in that order.
On most systems, there will be no free physical extents IMMIDIATELY after lvol2, becuase lvol3 is "in the way".
In this case
lvextend -L 1000 /dev/vg00/lvol2
will FAIL.
So...........
1. you could move lvol2 to another part of disk, or to another disk, where there will be enough disk space to extend lvol2 contiguously (easily done with MirrorDiskUX - if you need further details, let us know)
2. you could move lvol3, lvol4, ... to another area of the disk, or to another disk, until there is enough free disk space IMMEDIATELY after lvol2
3. you could, instead, create one or more swap devices on other disks (yes, you can use external disks). There are steps for doing this in:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x018cee3e323bd5118fef0090279cd0f9,00.html
Unless your /dev/vg00/lvol2 is really small, I would recommend using option #3 for performance reasons.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2001 08:14 PM
05-25-2001 08:14 PM
Re: Increasing Swap Space
Mladen is correct that extending your primary swap will be difficult, at best. Why is it you don't want to create a new device swap logical volume? Having another swap volume on another disk (and ideally, another controller) will not only increase the available swap but improve swap performance.
You should also check to see if the swapmem_on kernel parameter is set to 1. If so, pseudo swap will be enabled. Let us know what you do,
--Bruce