- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Yet another (set of) SWAP Questions
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-10-2004 02:02 AM
01-10-2004 02:02 AM
Yet another (set of) SWAP Questions
2. The A. Clay approach to have a small swap on the boot disk itself with lower priority (higher priority number) than swap devices on other disks will seem to work great. But if one has allocated a pair of exclusive swap disks -- would it be possible/advantageous to instead drop outright having a swap device on the boot/primary disks? Specially if those disks are on its own SCSI bus?
3. Currently on one of our servers, we have this:
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 177 3919 4% 0 - 1 /dev/vg00/swap
dev 8192 173 8019 2% 0 - 1 /dev/vg00/swap2
dev 16384 177 16207 1% 0 - 1 /dev/vg00/swap3
reserve - 20871 -20871
memory 9361 1668 7693 18%
total 38033 23066 14967 61% - 0 -
This is a 12 GB server, swap2 and swap3 are actually on separate pair of disks (36GB 15K) exclusively for swapping. After adjustig swchunk, I plan to modify this so that I onlyhave one swap device on this disk pair using all 36GB of space on it and set the primary swap's priority to lower (1) and have this new swap device at a higher priority (0)..
Any thoughts/inputs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 02:50 AM
01-10-2004 02:50 AM
Re: Yet another (set of) SWAP Questions
2) This may work since the rest of your swap is in VG00, but I would still have a small primary swap (normally vg00/lvol2).
3) You've got 12GB of RAM, what the heck do you need 36GB of SWAP for? That, in my opinion, is way overkill.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 03:12 AM
01-10-2004 03:12 AM
Re: Yet another (set of) SWAP Questions
Here's a Glance Output:
Total VM : 23.9gb Sys Mem : 2.01gb User Mem: 8.85gb Phys Mem: 12.0gb
Active VM: 4.14gb Buf Cache: 491.5mb Free Mem: 671.7mb Page 1 of 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 05:06 AM
01-10-2004 05:06 AM
Re: Yet another (set of) SWAP Questions
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 05:16 AM
01-10-2004 05:16 AM
Re: Yet another (set of) SWAP Questions
Note VM Useage which is indicative of how large processes VM requirements are...
Also, have you ever read/heard of the treatise about SWAP being alloacted but not really "used"? A paper from your very own Stephen Ciullo - HPUX Performance Cookbook is a valuable "guide" that I have been relying upon since working on HP-UX environments...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 07:48 AM
01-10-2004 07:48 AM
Re: Yet another (set of) SWAP Questions
The point about setting swap and your actual memory usage is really the key to your problem, though. It sounds to me like you need to do some kernel troubleshooting/tuning to see whats up - I have seen apps require more swap to run, and after I added the swap, then realized (maybe months later) that changing a tunable, actually reduced the requirement for swap.
What are your maxdsiz, maxtsiz, maxssiz,
maxdbcpct, ninodes, maxuprc, semmns,semmnu settings?
Otherwise - go ahead and make the priority for swap3 a pri 1, and make swap and swap 2 a pri 2.
I'll bet you lunch you can improve things with the kernel tuning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 12:16 AM
01-12-2004 12:16 AM
Re: Yet another (set of) SWAP Questions
* Tunable parameters
STRMSGSZ 65535
create_fastlinks 1
dbc_max_pct 4
dbc_min_pct 3
dnlc_hash_locks 512
hpux_aes_override 1
max_async_ports 3072
max_thread_proc 3072
maxdsiz 0X40000000
maxdsiz_64bit 0X40000000
maxfiles 400
maxssiz 0X17000000
maxssiz_64bit 0X17000000
maxswapchunks 16384
maxtsiz 0X18000000
maxtsiz_64bit 0X40000000
maxuprc 3072
maxusers 800
maxvgs 255
msgmax 65535
msgmnb 440000
msgmni 4096
msgseg 32767
msgssz 2200
msgtql 11000
nclist 5120
nfile 60000
nflocks 4000
ninode 20000
nkthread 14000
nproc 7000
npty 1024
nstrpty 1024
nstrtel 1024
scsi_max_qdepth 16
semmni 4096
semmns 8192
semmnu 1024
semume 512
shmmax 0X600000000
shmmni 1024
shmseg 1024
swchunk 4096
vps_ceiling 1024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 03:28 AM
01-12-2004 03:28 AM
Re: Yet another (set of) SWAP Questions
First, I would NOT remove the root swap, although it can be done. I would alter any other swap than that one... Your OS looks for that Swap first if you have it set properly, If you have a high use box, I would not alter it for root..
---------------------------
Second, I find it hard to believe you need 36GB of Swap for a system with only 9GB of memory...I too agree your kernel parms are the limiting factors...nfiles/maxdsiz/nproc and the like as mentioned...
The real need for swap is merely for crash dumps usually. With the new method, You only need around 33% of your memory to capture a crash dump... and that has been very adequate for my boxes... Some have as little as 20%....
------------------------------------------
If you think swap is too low you need to be looking at your PAGING activity on your system... THAT and not the actual swap size will tell you if you really need more swap...
-------------------------------------------
My main superdome production has 36GB memory only b/c my Memory is 72GB....
---------------------------------------
I have 2 RP8400s and here are my kernel parms... for one of them... This is my larger one, my Primary TEST box...
I have 14GB of swap and 23.6GB of memory...
#####################################
max_async_ports 50 - 50
max_fcp_reqs 512 - 512
max_mem_window 0 - 0
max_thread_proc 256 - 256
maxdsiz 0x50000000 - 0X50000000
maxdsiz_64bit 0x50000000 - 0X50000000
maxfiles 2088 - 2088
maxfiles_lim 1024 Y 1024
maxqueuetime - - 0
maxssiz 0x800000 - 0X800000
maxssiz_64bit 0x800000 - 0X800000
maxswapchunks 13481 - 13481
maxtsiz 0x4000000 Y 0X4000000
maxtsiz_64bit 0x40000000 Y 0X40000000
maxuprc 25320 Y 25320
maxusers 4096 - 4096
maxvgs 255 - 255
nfile 59712 - (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+
NSTRTEL))
nflocks 2448 - 2448
nproc 32788 - (20+8*MAXUSERS)
ninode 37332 - ((NPROC+16+MAXUSERS)+32+(2*NPTY))
sema 1 - 1
semaem 16384 - 16384
semmap 1026 - 1026
semmni 1024 - 1024
semmns 22000 - 22000
semmnu 1024 - 1024
semmsl 2048 Y 2048
semume 64 - 64
semvmx 32767 - 32767
shmmax 4294967296 Y 4294967296
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 03:29 AM
01-12-2004 03:29 AM
Re: Yet another (set of) SWAP Questions
no points here...