- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swap/Paging 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
08-21-2000 11:21 PM
08-21-2000 11:21 PM
Swap/Paging Space
can anybody suggest how can i change my swap/paging space.
Thanks
Preeti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2000 11:27 PM
08-21-2000 11:27 PM
Re: Swap/Paging Space
if you need to add some more swap/paging space then create a new lvol in trhe normal way, set its size but dont newfs it. Then add an entry into /etc/fstab (see man fstab so see format) and then do a swapon -a command to see it activated instantly.. swapinfo -mt will show the new swap area already available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2000 11:29 PM
08-21-2000 11:29 PM
Re: Swap/Paging Space
Overview of Memory Paging Parameters
Configurable kernel parameters for memory paging enforce operating
rules and limits related to virtual memory (swap space). They fall into
the following categories:
Total System Swap Maximum swap space that can be allocated, system-
wide. Parameters include maxswapchunks and swchunk.
Device Swap Swap space allocated on hard disk devices. Parameters
include: nswapdev.
File System Swap Swap space allocated on mounted file systems.
Parameters include: allocate_fs_swapmap and nswapfs.
Cluster Client Swap Local swap space on cluster client to reduce
network data traffic. Parameters include:
page_text_to_local and remote_nfs_swap.
Pseudo-Swap Use of installed RAM as pseudo-swap, allowing virtual
memory space allocation beyond the limit of swap space on
disk devices. Parameters include: swapmem_on.
So for the above you could use SAM under hp-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2000 12:33 AM
08-22-2000 12:33 AM
Re: Swap/Paging Space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2000 06:12 AM
08-22-2000 06:12 AM
Re: Swap/Paging Space
Also, be aware of where you are going to create this new swap device. Try not to put more than one swap device on any one physical device. Spread them around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 12:53 AM
09-05-2000 12:53 AM
Re: Swap/Paging Space
Thanks for Reply . Currently my System had 32GB of total Swap Space and I want to increase the swap space to 50GB.
Please go through the attached file.
Can I Increase lvswap in vg02 and vg03 . I had free space in vg02 and vg03.can i use lvextend command to increase the size.
or I have to create a new logical volume in this volume group to increase the swap space.
Please suggest
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:12 AM
09-05-2000 01:12 AM
Re: Swap/Paging Space
Also, your currently only using 2 of the 3 swap devices. This is due to the priority of 2 of them set to '1' and the other set to '2'. It therefore won't use the 3rd device swap, until the first 2 are full. The paging/swapping code, will balance I/O's between all the swap devices of the same priority, therefore changing them all to be the same priority can help.
As for increasing the size of the swap, you have a couple of choices :-
1. Add a new swap lvol. Putting swap on more physical disks can improve performance.
2. Increase the size using lvextend of 2 of the swap devices (you won't easily be able to increase /dev/vg00/lvol2).
To increase the others you can do :-
lvextend -L
Then reboot. The system will then see the new size after it's rebooted. You'll need to ensure that the kernel parameter 'maxswapchunks' is set high enough too (this is true for either method 1 or 2).
I would recommend a more swap devices, rather then increasing the size of the existing ones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:13 AM
09-05-2000 01:13 AM
Re: Swap/Paging Space
If you intend to actually use even the 32Gb of swap space that you have then I would have thought that performance would be terrible!
If you do an 'lvdisplay' of your swap volumes, you will see that they are set 'contiguous' (all swap volumes must have this property as well as Bad block relocation set to 'off'). This means that you can only extend your existing volumes if there are sufficient free disk extents right next to the existing volume.
If you really do want to increase your swap space then I would suggest creating another swap volume. Either use sam or the 'lvcreate' command with '-C y -r n' arguments.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:15 AM
09-05-2000 01:15 AM
Re: Swap/Paging Space
If you intend to actually use even the 32Gb of swap space that you have then I would have thought that performance would be terrible!
If you do an 'lvdisplay' of your swap volumes, you will see that they are set 'contiguous' (all swap volumes must have this property as well as Bad block relocation set to 'off'). This means that you can only extend your existing volumes if there are sufficient free disk extents right next to the existing volume.
If you really do want to increase your swap space then I would suggest creating another swap volume. Either use sam or the 'lvcreate' command with '-C y -r n' arguments.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:17 AM
09-05-2000 01:17 AM
Re: Swap/Paging Space
If you intend to actually use even the 32Gb of swap space that you have then I would have thought that performance would be terrible!
If you do an 'lvdisplay' of your swap volumes, you will see that they are set 'contiguous' (all swap volumes must have this property as well as Bad block relocation set to 'off'). This means that you can only extend your existing volumes if there are sufficient free disk extents right next to the existing volume.
If you really do want to increase your swap space then I would suggest creating another swap volume. Either use sam or the 'lvcreate' command with '-C y -r n' arguments.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:18 AM
09-05-2000 01:18 AM
Re: Swap/Paging Space
Also, your currently only using 2 of the 3 swap devices. This is due to the priority of 2 of them set to '1' and the other set to '2'. It therefore won't use the 3rd device swap, until the first 2 are full. The paging/swapping code, will balance I/O's between all the swap devices of the same priority, therefore changing them all to be the same priority can help.
As for increasing the size of the swap, you have a couple of choices :-
1. Add a new swap lvol. Putting swap on more physical disks can improve performance.
2. Increase the size using lvextend of 2 of the swap devices (you won't easily be able to increase /dev/vg00/lvol2).
To increase the others you can do :-
lvextend -L
Then reboot. The system will then see the new size after it's rebooted. You'll need to ensure that the kernel parameter 'maxswapchunks' is set high enough too (this is true for either method 1 or 2).
I would recommend a more swap devices, rather then increasing the size of the existing ones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:19 AM
09-05-2000 01:19 AM
Re: Swap/Paging Space
If you intend to actually use even the 32Gb of swap space that you have then I would have thought that performance would be terrible!
If you do an 'lvdisplay' of your swap volumes, you will see that they are set 'contiguous' (all swap volumes must have this property as well as Bad block relocation set to 'off'). This means that you can only extend your existing volumes if there are sufficient free disk extents right next to the existing volume.
If you really do want to increase your swap space then I would suggest creating another swap volume. Either use sam or the 'lvcreate' command with '-C y -r n' arguments.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:30 AM
09-05-2000 01:30 AM
Re: Swap/Paging Space
I agree with John. Based on your swapinfo it doesn't look like you need more swapspace.
I would also suggest that if/when you increase or add more space, that you make the size of each space equal and set the swap priority the same. This will allow interleaving which will level I/O among the swap devices thereby improving performance.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:52 AM
09-05-2000 01:52 AM
Re: Swap/Paging Space
Do an lvextend on vg02 & vg03 to increase the swap space to 50GB. Uncomment out the above lines from "fstab" and reboot the server.
2. You can also create another logical volume to increase swap space online and update fstab and use swapon to activate it.
For better performances and response in your case i suggest you have swap space created on individual seperate disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 01:57 AM
09-05-2000 01:57 AM