- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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-13-2005 01:10 AM
05-13-2005 01:10 AM
I assume all i would have to do is carve out a 4 gb vg and lv on some disk and use the swapon command. Am i correct in my thinking?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 01:13 AM
05-13-2005 01:13 AM
Re: Increasing swap space
Its a bad idea, because if the fiber channel goes down your system will halt suddenly. This can corrupt databases and cause a world of problems.
When possible, I try and boot off a local, mirrored disk and keep swap on local disk.
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
05-13-2005 01:15 AM
05-13-2005 01:15 AM
Re: Increasing swap space
I completely understand what you are saying however and it makes sense. Would you suggest making another VG and LV on the root disks with some free space and making it 2nd'ary swap?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 01:22 AM
05-13-2005 01:22 AM
Re: Increasing swap space
As long as your primary swap remains on your root disk, you should be fine. Losing secondary swap would mean your performance would be degraded, but without your clarion what work are you going to be doing anyway?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 01:32 AM
05-13-2005 01:32 AM
SolutionThe only real reason to have swap space is so you can use all of your RAM. If you actually are paging out, it's time to buy more RAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 01:35 AM
05-13-2005 01:35 AM
Re: Increasing swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 02:03 AM
05-13-2005 02:03 AM
Re: Increasing swap space
UNLESS you have the kernel parameter swapmem_on set to 1. If that is 1, then the kernel will do a calculation and use approximately 75% of RAM as pseudo-swap. Note that this is just for internal kernel book keeping and your available RAM will not be impacted.
So, in your case you can have 16GB of swap so that you can use your 16 GB of RAM.
Or you can set swapmem_on to 1 which will use 16GB x .75 = 12GB pseudo swap + 4GB device swap = 16GB. So you still have 16GB available and can use all of your RAM.
If you really want to add 4GB more of swap you can, but I'm not sure I'd worry right now. If it turns out you need it later, you can always add swap on the fly.
One thing you may want to do, if you can get time for a reboot, is go ahead and max out your maxswapchunks kernel parameter. Set it to 16384 (I think that's the max). This kernel parameter, more often than not, is the stumbling block to adding more swap to a system. Setting it to its max value will not use any memory or any kernel resources, so no worries there. It just means you can actually add swap if/when you need to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 02:08 AM
05-13-2005 02:08 AM
Re: Increasing swap space
I was still paging at 100% in glance when i had 8 gb of memory. I am looking to make sure i can increase my performance on this box. As it stands now, i have 16 gb of mem and my swap is 4 gb with the two parameters set above.
So you guys think this is effiecient at this point?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 02:12 AM
05-13-2005 02:12 AM
Re: Increasing swap space
Was your device swap actually 100% used?
Remember that the 'memory' and 'total' lines of 'swapinfo -tam' may mislead you. Just because they get high doesn't mean you are paging. If the 'dev' line was 100% then you were having problems and I imagine performance was pitiful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 02:19 AM
05-13-2005 02:19 AM
Re: Increasing swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 02:24 AM
05-13-2005 02:24 AM
Re: Increasing swap space
Have you gotten errors due to processes not starting because they can't reserve swap space? No? Then you are fine.
You could also take a look at your 'swapinfo -tam' output. You should see a 'memory' line. That line should have an available value of about 12GB. It will show some usage. Don't worry. Also your 'total' line should show 16GB available (dev + memory). If that is the case, then you are fine.
The swapmem_on kernel parameter was designed for just this case. Point out to whomever at HP that you have swapmem_on set to 1. They *should* know what this means. If they don't they need to talk to someone that knows something so they can learn.