- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Memory (increase, how much swap)
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
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
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
02-29-2012 04:24 PM
02-29-2012 04:24 PM
Memory
Dear All ,
We have 32 GB Physical Ram in our server and two device swap .
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 16384 0 16384 0% 0 - 1 /dev/vg00/swap
dev 8192 0 8192 0% 0 - 2 /dev/vg00/swap2
reserve - 357 -357
memory 25457 4508 20949 18%
total 50033 4865 45168 10% - 0 -
Now We are planning to increase the physical memory by 32GB so total memory will be 64GB . I have couple of questions on swap
1) Is 24 GB sufficient swap for 64 GB
2) Can we go ahead on san disk base swap space? if yes what are the advantages and disadvantages
3) If I am going with san disk based swap space which will be good device swap or file system swap
4) Which will be good if I am assigning the one lun for swap space creation then which approach will be good whole disk approach or swap space on logical volume approach?
5) do I need to change any kernel parameter for it.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 06:00 PM
02-29-2012 06:00 PM
Re: Memory
The short answer is that you don't want to swap anything if you want performance. Swapping anything will really slow down your system. So it really doesn't matter where you put your secondary swap space. There are no advantages to internal or JBOD versus SAN-based swap. Some will say that SAN swap is more vulnerable because it can be taken away by a bad SAN admin (which crashes the system). On the other hand, if the SAN storage is taken away, most likely the system is useless anyway.
You need swap space to cover the amount of active process space, but not for buffer cache and kernel areas. With only 24GB of swap space, you will probably hit a maping limit depending on the version of HP-UX you are using. I would map about 48GB total swap space so get 24GB from the SAN and you should be OK.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 06:32 PM
02-29-2012 06:32 PM
Re: Memory (increase, how much swap)
>1) Is 24 GB sufficient swap for 64 GB
Probably. If you have that much RAM, you don't need much more swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2012 04:34 AM
03-01-2012 04:34 AM
Re: Memory (increase, how much swap)
Thanks you for support . It will be good if you through some light on below points
4) Which will be good if I am assigning the one lun for swap space creation then which approach will be good whole disk approach or swap space on logical volume approach?
5) do I need to change any kernel parameter for it.
Thanks in Advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2012 02:34 PM - edited 03-06-2012 02:42 PM
03-06-2012 02:34 PM - edited 03-06-2012 02:42 PM
Re: Memory (increase, how much swap)
Hi,
Sorry to hijack you thread, as we are doing very much the same thing but from approx 48 to >90gig. But the response may help you as well.
We will probably leave the paging at around 50gig, as it does not page (most days) but:
Dump space, does that need to be increased as well ? I know it needs to be contiguous so we may need to add an additional, rather than expand ? Is that recommended as we don't really want a 90gig dump ..............
Ulimit, coredump(blocks) is already set to 4194303.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2012 04:18 PM
03-06-2012 04:18 PM
Re: Memory (increase, how much swap)
>Dump space, does that need to be increased as well?
Perhaps but if you need that much, something is terribly wrong.
>Is that recommended as we don't really want a 90gig dump
Right. /sbin/crashconf should show you what's being dumped. If it isn't dumping user pages, that should limit it.
>ulimit, coredump(blocks) is already set to 4194303.
This is different than panic dumps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2012 04:21 PM - edited 03-07-2012 05:45 PM
03-06-2012 04:21 PM - edited 03-07-2012 05:45 PM
Re: Memory (increase, how much swap)
> Dump space, does that need to be increased as well...
The tool to fine tune crash dump space (not core files from failed processes) is called crashconf (11.11 and later), but the reality is that 90% of crash dumps only need a few GB for analysis. The kernel and driver areas are the important parts. User process area and buffer cache are not needed much. I have analyzed crash dumps from 128GB systems that had only 6GB of crash space. If you make your dump space the same as swap, you'll be fine. However, you'll very likely need to create a new lvol for /var/crash, about 25% the size of your dump area.
ulimit has nothing to do with HP-UX system crashes. ulimit -a will report on the maximum size of a program's core file, but unless your system is being used by programmers that write bad code, or you are an unwilling tester of some vendor's code, you can eliminate all core dumps completely by adding this to /etc/profile:
ulimit -Sc 0
Now there will be no core dumps from any user that logs in and has program crashes. If a programmer wants the core file, they can raise the value from 0 (the -S is for a soft setting).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2012 09:33 PM
03-07-2012 09:33 PM
Re: Memory (increase, how much swap)
This maybe helpfull for sizing "dump"
After you adding the memeory , you can determine the dump size required on the server by below equation.
Dump-space-needed = 2.5 GB + (1/10 * system RAM).
#crashconf –v
Enjoy :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2012 10:57 PM
03-07-2012 10:57 PM
Re: Memory (increase, how much swap)
Since an hp-ux server can currently have up to 4 TB RAM, you will always decide to have less swap/dump space than real memory. The values may depend on your configuration and application needs.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!