- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How much swap space is needed?
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-01-2002 01:19 PM
05-01-2002 01:19 PM
Server info:
server : N4000
number CPUs : 8
GB memory : 8
OS : 11.0 (64 bit)
Everything I can find on HP's web site says to configure two times physical memory of swap space. I am getting told that only 2gb of swap space is actually needed. Any help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:20 PM
05-01-2002 01:20 PM
Re: How much swap space is needed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:23 PM
05-01-2002 01:23 PM
Re: How much swap space is needed?
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:23 PM
05-01-2002 01:23 PM
Re: How much swap space is needed?
For now I will go with Kevins answer( Short and Simple )
-Yates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:25 PM
05-01-2002 01:25 PM
Re: How much swap space is needed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:26 PM
05-01-2002 01:26 PM
Re: How much swap space is needed?
The amount of swap space required is depend on your application and need. Normally the recommendation is to keep at least the same amount as of memory. However, in some situations which hardly uses the swap space and has lot of memory could configure less amount of swap space, then observe the memory and swap usage (with glance, swapinfo etc). If needed you can add more space.
Check the kernel parameters too - like dbc_max_pct. Reduce if set default to 50.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:29 PM
05-01-2002 01:29 PM
Re: How much swap space is needed?
It is better to have atleast 8.0 GB swap to start with , I do like this is to start with 1:1 and then monitor it when the system gors into production and may eb tweak it with a secondary swap , but I dont think you would need more tahn 8.0 GB .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:42 PM
05-01-2002 01:42 PM
Re: How much swap space is needed?
You have to keep swap space minumum of 8 GB (equal to memory). However you can keep it 12 GB (in case later you decide to upgrade memory to 12 GB)
Otherwise 8GB swap space is Ok with your configuration.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:48 PM
05-01-2002 01:48 PM
Re: How much swap space is needed?
You have to do what is best for the box, but lets not make claims that are untrue...
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 01:52 PM
05-01-2002 01:52 PM
Re: How much swap space is needed?
Peace...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 02:23 PM
05-01-2002 02:23 PM
Re: How much swap space is needed?
Thanks for everyones feedback.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 02:27 PM
05-01-2002 02:27 PM
Re: How much swap space is needed?
Horses for courses. The amount of swap
needed for a system *will* depend on the
application being used. That being said,
the old rule of thumb of 2 x MEM = SWAP
does not really apply these days. In
older systems this was true given that
there was vastly less amounts of RAM that
could be used, so this was beefed up so
to speak with heaps of swap space. Having
too much swap can hinder your systems
performance. Consider starting with no
more than 2Gb on your internal disk, (I
would pick 1Gb) and the remaining 7Gb
split across different spindles or
LUN's.
Cheers
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 07:01 PM
05-01-2002 07:01 PM
Re: How much swap space is needed?
1:1 ratio is doing good for
all our HP systems.
-Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 05:41 AM
05-02-2002 05:41 AM
Re: How much swap space is needed?
althoug 1.5 - 2 times RAM is the guideline, for system that have a lot of memory it's can be expensive, than you can begin with 1xRAM and use a pseudo swap area.
HYH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 05:49 AM
05-02-2002 05:49 AM
SolutionFigure out what is best for you, you have to live with the box, we don't.
I would recommend that if you haven't seen this before, to read this document.
http://www.hp-partners.com/tcl_public/html/technical_support/tuning.html#swap
I've been lucky enough to have this guy visit our company and be in an OR with him. His theory's about performance are right on. For example buffer cache. Why do we need a huge buffer cache when your hit rate is 98% with a 500MB buffer cache, 98% is 98%. Things like that which apply to todays servers.
I'll get off my soap box now. I just want to make sure we are claiming something to be fact, when it is not.
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 06:04 AM
05-02-2002 06:04 AM
Re: How much swap space is needed?
Regarding swap, we have device swap and file system swap, we can consider file system swap if we need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 08:05 AM
05-04-2002 08:05 AM
Re: How much swap space is needed?
Hope it helps.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 08:21 AM
05-04-2002 08:21 AM
Re: How much swap space is needed?
I would start by asking the application developers to specify what is a reasonable criteria. All our systems are below the old double figure oracle or no oracle.
cheers
john.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 03:44 PM
05-04-2002 03:44 PM
Re: How much swap space is needed?
is simply depends on your kernel's "swapmem_on" parameter:
swapmem_on=0: you need MORE swap space than phsysical RAM, sometimes even more than 6 times your RAM!
swapmem_on=1: you need at least 3/4 of your RAM as spap space
In both cases you can (and should) spread that swap space over multiple drives...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 05:15 PM
05-04-2002 05:15 PM
Re: How much swap space is needed?
Unfortunately, a lot of vendors and even training courses make these obsolete recommendations. So let's start with the basics:
Starting at 10.00 (and a couple of revs at 9.xx), a new parameter was introduced: swapmem_on and it was set to 1 (or any non-zero value), thus removing the original 1:1 swap vs. RAM mapping that previous versions required. If swapmem_on=0, then all processes that are running must have a reserved area in swap coresponding to the process size. To run more processes than will fit in RAM, you will need more swap space than RAM, thus the old recommendation of 2xRAM or more for swap space.
As you can see, having 8Gb of RAM where only 5Gb is ever used will mean that the 8Gb of swap space (minimum) will never be used...what a waste!
Which is why pseudo-swap was created, a bad name for what is essentially a fairly standard behavior for most other operating systems. When pseudo-swap is enabled with swapmem_on=1, there no longer needs to be a 1:1 mapping of process space into swap space. If there is more than enough memory for all processes to run at the same time, then no swap space is needed at all (strictly speaking a minimum of a few megs is needed to satisfy the opsystem).
One caveat: if processes are using memory mapped files, then some swap space will be needed for these files.
With pseudo-swap, approximately 75% of RAM needs no additional swap space. After all, they are in RAM so there is no reason to have any swap space until more than 75% of RAM is required by more processes. Then you add swap space to accomodate the overflow.
So swap is not some magic memory tool, it is simply a place to put pages of processes that are deactivated and higher priority processes need the RAM. The majority of customer system I see have 0% swap space usage, sometimes 10 or 20 Gb, completely wasted as it will never be used.
There is a place for swap space. A small RAM system (less than 1Gb) might used as a documentation server and users look up information perhaps 2-3 times per day. Such a system (I managed one for 2,000 users) would run 300-500 copies of a 5 meg process in only 256 megs of RAM. Therefore, the 2500 megs of swap was indeed required and the majority was in use. Performance was fine since very few of the processes were busy at the same time and the 'think time' was very long for each user.
Bill Hassell, sysadmin