- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Do i need swap if i have plenty of RAM ?
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
Forums
Discussions
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
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
10-15-2004 04:03 AM
10-15-2004 04:03 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 04:09 AM
10-15-2004 04:09 AM
SolutionCheck the doc at /usr/share/doc/mem_mgt.txt which tells you about the theory of swap, how the system uses it and how to configure it.
Here is a doc from itrc,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072951469
The itrc doc id is KBRC00001262.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 04:10 AM
10-15-2004 04:10 AM
Re: Do i need swap if i have plenty of RAM ?
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 04:13 AM
10-15-2004 04:13 AM
Re: Do i need swap if i have plenty of RAM ?
Here is another useful link from itrc,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000075563673
The itrc doc id is KBAN00000661.
Do remeber that you also need to configure dump space on the system to dump the memory info in case of a panic. Otherwise you cannot get a dump from the system during panic to analyse and find the root cause of the system panic. However the need for dump and how much dump space you need is a totally seperate headache.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 04:15 AM
10-15-2004 04:15 AM
Re: Do i need swap if i have plenty of RAM ?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 04:36 AM
10-15-2004 04:36 AM
Re: Do i need swap if i have plenty of RAM ?
In modern boxes with lots of memory, your situation is very common.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 05:44 AM
10-15-2004 05:44 AM
Re: Do i need swap if i have plenty of RAM ?
RAC, Bill and Clay pretty much mentioned that one needs swap but not as much as memory as long as swapon kern is on.
Granted I need swap, but that leads me to another question:
In case of a crash, how will i get an entire coredump for hp to analyze, if I have small swap and the contents of 9GB RAM will not be able to find swap space to dump a core ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 05:55 AM
10-15-2004 05:55 AM
Re: Do i need swap if i have plenty of RAM ?
lvlnboot -d /dev/vgxx/lvolx
lvlnboot -R
Also configure the files /etc/rc.config.d/savecrash and /etc/rc.config.d/crashconf
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 05:57 AM
10-15-2004 05:57 AM
Re: Do i need swap if i have plenty of RAM ?
But the old swap needs to be 2 to 3 times ram requirment is not needed.
The first time my rp5450 started to use swap and not just allocate it,management got me more memory so I could do away with that nasty performance drag.
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
10-15-2004 06:01 AM
10-15-2004 06:01 AM
Re: Do i need swap if i have plenty of RAM ?
Now-a-days systems are supplied with atleast 18GB internal drives. A good practice is to keep non-OS related filesystems out of VG00. So, you will have a lot of space left in your root drive so it doesn't harm to create a primary swap of around 2-3GB.
While swapmem_on will take care of 75% of your swap requirements, it has to account for memory mapped pages. Also as the memory is locked by the processes and allocated dynamically by kernel etc., it will be reduced from the initial memory allocation. So, device swap has to account for that difference. Memory mapped files can increase your device swap usage in addition to 'reservations'. Memory leaks can also play an important role. So, I always like to keep atleast 75% of memory as device swap (not primary swap) in addition to swapmem_on parameter.
Not the entire memory image will be dumped. Use 'crashconf' to determine your dump requirements. Around 2-3GB of primary swap can save you dump space along with reservation requirements. If your system needs more dump space, then you have to configure a seperate area anyway.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 07:32 AM
10-15-2004 07:32 AM
Re: Do i need swap if i have plenty of RAM ?
It depends on the application - SAP for example, requires us to allocate 24GB of swap on a server with 10GB of ram - the swap is never used - but is a requirement.
From an O/S perspective - you need swap.
I attached a little white paper on swap and HP-UX.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:02 AM
10-15-2004 08:02 AM