- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Swap settings and boundaries
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
01-15-2004 08:22 PM
01-15-2004 08:22 PM
I need to provide further secondary device swap by demand of a customer.
(though I doubt they are willing to accept the risk of pageouts or even swapouts, and would rather advise them to tune their application or invest in more physical RAM).
As I interpret it from the current memory usage they are now hardly able to load new processes into memory because all the swap area is already marked reserved by loaded processes.
As I still have sufficient unallocated PEs on vg00's root disks I will lvcreate and swapon a new swap device that will provide further space for swap reservations.
I now just wonder if I interpret the current kernel tunables regarding swap correctly, i.e. I just need confirmation on the units displayed.
These are the current swap parms:
[root@inwo2:/root]
# kmtune -q maxswapchunks -q swchunk -q nswapdev
Parameter Current Dyn Planned Module Version
===============================================================================
maxswapchunks 16384 - 16384
swchunk 2048 - 2048
nswapdev 10 - 10
I would read this as "you can allocate 16384 swap chunks of 2 KB size, which would yield a maximum of approx. 30 GB, or
[root@inwo2:/root]
# echo $((16384*2048))
33554432
The header files I found only "talk" abaout pages (but I thought a mem page were 4 KB)
[root@inwo2:/root]
# grep CHUNK /usr/{conf,include}/sys/swap.h
/usr/conf/sys/swap.h:#define NPGCHUNK ((int)(dtop(swchunk))) /* # pages per chunk */
/usr/include/sys/swap.h:#define NPGCHUNK ((int)(dtop(swchunk))) /* # pages per chunk */
Now what are the used units?
Rgds.
Ralph
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:00 PM
01-15-2004 09:00 PM
Re: Swap settings and boundaries
When we reached the limit of 30 GB swap space we changed the swchunk size to 4096 corresponding to the mem page size. This worked fine. If you add the secondairy swap space in vg00, make sure the first one is not havely used ( sar -d/swapinfo -tam ). (I guess SAP is adding an other instance) If so you can get performance bottleneck on vg00. I think the swap space is only used for reservations.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:00 PM
01-15-2004 09:00 PM
Solutionswchunk is in KB... swchunk==2048 means each chunks 2MB in size. Setting maxswapchunks==16384 gives you a maximum swap space of 16384*2MB == 32GB.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:47 PM
01-15-2004 09:47 PM
Re: Swap settings and boundaries
thanks for confirmation of units.
Of course did I mean 2 MB per chunk (as set by swchunk).
I sometimes confuse the powers of 10 ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:48 PM
01-15-2004 09:48 PM
Re: Swap settings and boundaries
maxswapchunks * swchunks * 1024.The value is in bytes.
which should equal to around 32GB.
http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.MaxSwapChunks.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 11:11 PM
01-15-2004 11:11 PM
Re: Swap settings and boundaries
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 11:20 PM
01-15-2004 11:20 PM
Re: Swap settings and boundaries
as you wrote, pseudo swap usage is left on by default.
# kmtune -q swapmem_on
Parameter Current Dyn Planned Module Version
===============================================================================
swapmem_on 1 - 1