- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swap size
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
12-13-2004 08:30 PM
12-13-2004 08:30 PM
Swap size
I have here a server with 4GB of RAM. It is newly installed and has only 1GB Swap created at install time. I'd like to increase this swap to 8GB (twice the RAM) and have afew questions :
. Can I extend swap LV to 8GB ? This wouldn't be contiguous anymore. Is it a problem ?
. Can I create an other 7GB LV for swap ? This would give 8GB but it wouldn't be more contiguous than first solution. What happen if a crash occurs, and system dumps ?
. Is it better to have 8LV of 1GB than 1LV of 8GB or 1 of 1GB and 1 of 7GB ?
Thanks for any replies.
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 08:39 PM
12-13-2004 08:39 PM
Re: Swap size
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 08:42 PM
12-13-2004 08:42 PM
Re: Swap size
swap must be created with contiguous
allocation policy so you can't extend your 1GB swap online.
You can create new contiguos LV 7GB and add new swap area.
You can always make tape recovery and
during restore process extend your primary 1GB
swap to 8GB.
It is better to have 1LV of 8GB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 08:43 PM
12-13-2004 08:43 PM
Re: Swap size
I have 2 internal disks. Should I go for half swap on each disk ? (4GB on each)
This make me ask an other question : Is it better not to mirror swap LVs ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 08:47 PM
12-13-2004 08:47 PM
Re: Swap size
Thanks for your answer. First I wanted to go for 1 LV of 8GB, but as Mark said, that would maybe be better to have 2 LV of 4GB, each one on an internal drive... except if someone here tells it is better to mirror. In that case, I would go for 1 single 8GB LV.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 08:48 PM
12-13-2004 08:48 PM
Re: Swap size
I also think you should use 2 different logical volumes for this. I've this solution, only with different sizes on my servers as you can see from my swapinfo command:
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 67 957 7% 0 - 1 /dev/vg00/lvol2
dev 1024 65 959 6% 0 - 1 /dev/vg00/lvol9
reserve - 1132 -1132
memory 1129 268 861 24%
total 3177 1532 1645 48% - 0 -
Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 08:52 PM
12-13-2004 08:52 PM
Re: Swap size
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 09:08 PM
12-13-2004 09:08 PM
Re: Swap size
No problem for space. What I have in mind is the following : I have 2 internal 36GB disks wich I want to use for OS mirroring. I want to mirror anything except swap which will be composed of 4GB on each drive.
All of that because I heard mirroring swap is very bad for performance purpose.
Is it bad ? good ? better to have 8GB mirrored ?
Eric, are this swap devices mirrored ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 09:10 PM
12-13-2004 09:10 PM
Re: Swap size
No, you won't be able to increase current swap space (default in /dev/vg00/lvol2)
Why don't you creat for second swap space?
You can use this command to create:
lvcreate -L xxxM -C y -r n /dev/vgxx/lvolx
regard,
Jimkery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 09:12 PM
12-13-2004 09:12 PM
Re: Swap size
if you use mirror for local system disks
swap lvols must be mirrored too.
If there will be no mirror for swap then when
one disk is broken you lose some swap space
and your system will hang.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 09:16 PM
12-13-2004 09:16 PM
Re: Swap size
If its OS internal you must mirror also (all) the swap...
If you had other disks, than you could have created secondary swaps of same size so that in case of swaping it would write on all at the same time...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 09:20 PM
12-13-2004 09:20 PM
Re: Swap size
But in case if it is required to boot from the mirrored disk, that time which LV will be the primamry swap space. I hope you understand why is it required to mirror swap.
2) Pripary swap must be of the size of RAM of system. Because it acts as dump device when system crashes and data in the memory is dumped here so 1 GB of primary swap is not a good IDEA atall.
cheers.
Saurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 09:23 PM
12-13-2004 09:23 PM
Re: Swap size
So I will go for everything mirrored on this system. I'm going to try to have a "single contiguous 8GB primary mirrored swap", and that will be the best (I think).
Thanks all.
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 09:28 PM
12-13-2004 09:28 PM
Re: Swap size
Fred
"Reality is just a point of view." (P. K. D.)