- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swap space
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
06-28-2001 02:48 AM
06-28-2001 02:48 AM
swap space
primary swap on /dev/vg00/lvol2 and a secondary swap that defines as a local filesystem .
The both are with priority 1.
problem is that when I try to run new process I get "not enough space" but when I perform "swapinfo -t" I c that primary swap is 47% used and the secondary swap is 0% used (total % used is 99%).
Can sombody explain why secondary space is 0% used .
from /etc/fstab :
/dev/vg00/lvol9 /files swapfs min=0,lim=65536,pri=1 0 2
swapinfo -t shows:
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 524288 248632 275656 47% 0 - 1 /dev/vg00/lvol2
localfs 524288 0 524288 0% 524288 0 1 /files/paging
reserve - 799944 -799944
memory 178032 163524 14508 92%
total 1226608 1212100 14508 99% - 0 -
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 03:04 AM
06-28-2001 03:04 AM
Re: swap space
/dev/vg00/lvolxx ... swap pri=1 0 0
#swapon -a (enabled secondary sap)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 03:17 AM
06-28-2001 03:17 AM
Re: swap space
I have already the line :
/dev/vg00/lvol9 /files swapfs min=0,lim=65536,pri=1 0 2
for secondary swap, in /etc/fstab and there is no need to define /dev/vg00/lvol2 in /etc/fstab (as far as I know) !
what are the two 0's,in the end line that u suggest, mean ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 03:29 AM
06-28-2001 03:29 AM
Re: swap space
Given multiple swap devices with identical performance, assign each an identical priority. By so doing, you will allow the system to use each of them on an interleaved basis which enhances performance.
Assign higher priorities to the swap areas that have faster performance and lower priorities to areas that are slower.
Give device swap areas priority over file system swap areas.
Give lower use file systems priority over higher use file systems.
The primary swap area has priority 1. Device and file system swap areas set dynamically default to a priority of 1 if no priority is specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 03:46 AM
06-28-2001 03:46 AM
Re: swap space
From your reply I can understand that when primary swap is full then the system begin to swap to the secondary swap.
But in my system I get "no more space" when secondary swap space is 0% used - Why ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 04:19 AM
06-28-2001 04:19 AM
Re: swap space
maxswapchunks sets the maximum amount of swap space that can be configured, system-wide.
Acceptable Values:
Minimum
1
Maximum
16384
Default
256
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 04:32 AM
06-28-2001 04:32 AM
Re: swap space
maxswapchunks= Max_swap_space/(1024*swchuck)
in my system:
Max_swap_space 1G
maxswapchunks 513 swapmem_on 1 swchunk 2048
So it seems that maxswapchunks=513 is a good value.
someone have another idea ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 05:10 AM
06-28-2001 05:10 AM
Re: swap space
and sometimes maxtsiz needs to be increased as well. If the program will run, maxtsiz is probably big enough. You might also need to increase shmmax. I would also make sure that I have enough swap and/or enable pseudo-swap (swapmem_on=1). Typically, disk i/o is not all that important so I would reduce dbc_max_pct to no more than 10% or set bufpages to limit buffer cache to no more than 100MB.
See http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 06:54 AM
06-28-2001 06:54 AM
Re: swap space
Take a look at glance to see if any system table kernel parameters are running out. You may want to see syslog.
It may be more than just swap issue.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 07:11 AM
06-28-2001 07:11 AM
Re: swap space
I agree much with Vicenzo...but I am going to head in a slightly different direction on swap. First let me say, that I prefer to keep my swap going on in memory...it is the fastest way to process and so then my preference. I set up device swap, but my goal has always been to have it there as a last resort...since device swap involves obvious i/o issues and is far slower.
So first I ensure that I have enabled pseudo_swap in my kernel. Now I am including a thread that mentions a couple points on swap and just a couple parms (there are more to be considered though, as Vicenzo mentioned). But I feel this thread may give you an approach you may want to consider...and somehow I really wonder what your dbc_max_pct is set to??
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x22be53921f1ad5118fef0090279cd0f9,00.html
Also do a SEARCH on swap space...and check some other good postings too ..
Hope this helps,
Rita