- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Do I have-to increase swap after I add memory to H...
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
Discussions
Discussions
Forums
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
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
тАО06-27-2001 09:13 AM
тАО06-27-2001 09:13 AM
I've always heard swap should be at least 2 x memory, but can I just add more memory and leave swap as it is?
If not, can I increase swap space without repartioning the entire system?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2001 09:23 AM
тАО06-27-2001 09:23 AM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
You can add memory w/o increasing the swap. Do like this
1. Add RAM , monitor the swapinfo -t , incase you find that it more swapping has started or the swap space is getting filled then add secondary swap.
2. You can add secondary swap on some othe disk ( disk on a different controller wiil be the best thing ) this can be enabled ,disabled any time and you can do it online ( enable only ) .
Moreover it all depends on the what the env of the machine is so wait after step 1.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2001 09:24 AM
тАО06-27-2001 09:24 AM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
Do you *have* to increase swap? No. Do I recommend you increase swap? Yes.
There are a couple of reasons. First off, if you don't have swap equal to physical RAM (pseudoswap not withstanding), you may not be able to fork procs even though you have available memory. Secondly, and this is presuming your swap is really SWAP+DUMP, you want your dump area to be at least physical RAM plus kernel so you can get a complete dump if needed.
I would recommend you create an additional 256MB of swap -- preferably on different spindle(s) from where your current swap resides. Make it the same priority as your existing swap and put it on different disks, and you will split the swap i/o.
Just my two-cents' worth. I'm sure you will get tons of other good advice here.
Have a great day!
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2001 09:44 AM
тАО06-27-2001 09:44 AM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2001 09:58 AM
тАО06-27-2001 09:58 AM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
Watch the swapinfo -tM information, after adding memory, if still swapping is happening, you can add secondary swap. It can be device swap or even file system swap.
Swap equal to RAM helps, in getting dump info in case of machine crash.
I'm running N4000 machines with 11GB ram and only with 1GB swap. Machine is not doing swaping. With 11.0 I have the system dump configured for minimum information. And according to HP support, this was ok.
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2001 05:40 PM
тАО06-27-2001 05:40 PM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
The amount of swap space that is required
depends largely upon what applications
you are running and how the kernel is
tuned. Generally speaking days gone by
that 2 x RAM = swap was the norm.These days it is not necessary because of the reasons I've
mentioned above.
In answer to your question about increasing
swap space without repartioning the entire
system, the answer is yes, you can add swap
on the fly as a secondary swap partition.
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2001 07:46 PM
тАО06-27-2001 07:46 PM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
Though i have seen many replies to this question, i just wanted to share someting more with u all. We have systems with RAM 6.4 GB and Swap space 20 GB. This is done as per the suggestions from SAP as SAP applications are running in our servers.
What u need to know is , about the requirement of ur application , if any.. And eventhough ur application does'nt require any more swap space , i would advise u to go for 2* the total RAM - swap space, which will help u to get enough dump space etc. in case of a disaster.
Hope this gives some idea..
Cheers !!!
Mathew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2001 11:55 PM
тАО06-27-2001 11:55 PM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
I would say that you MUST increase swap area.
In production site the value of swap area has to be 4 times the amount of physical memory.
The swap area is used when a process is inquering for resources, the entire process and all it's data segments will be put in the swap till the resource is free.
On hp-ux, a process which is intented to RESERVE swap space ( while looking for resource ) is taken into account .
If the swap area is small, you may have application faults ( not enough space !!!).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 12:04 AM
тАО06-28-2001 12:04 AM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
You do NOT have to increase your swap if you add another 128 MB of RAM. The minimum you need is SWAP = MEMORY, not smaller. You already have 256MB of swap and only 128MB of RAM so adding another 128MB of RAM is not a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 02:32 PM
тАО06-28-2001 02:32 PM
Re: Do I have-to increase swap after I add memory to HP 11.0 server?
it does depend upon the kind of processes which are
running on your box: X-clients do notoriously need
3 to 5 times the amount of RAM used in swap space.
Usually the two amounts are called "RSS" (resident
set size = RAM) and "VSS" (virtual set size = SWAP).
You have to subtract the sizes of kernel and buffer
cache from physical RAM to get the amount of RAM
which is "pageable" - i.e. which can be used by the
processes. The output of "dmesg" gives some clues.
But for a system as RAM restricted as yours I would
recommend at least 3 (three) times the RAM as SWAP.
HTH,
Wodisch