- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SWAP error - Plz help
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
04-25-2008 12:03 AM
04-25-2008 12:03 AM
btlan3: Initializing 10/100BASE-TX card at 0/0/0/0....
System Console is on the Built-In Serial Interface
btlan5: Initializing 10/100BASE-TX card at 0/2/0/0....
Logical volume 64, 0x3 configured as ROOT
Logical volume 64, 0x2 configured as SWAP
Logical volume 64, 0x2 configured as DUMP
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 8388608
Unable to add all swap for device: Primary Swap. Increase the tunable parameter maxswapchunks by 1024 and re-configure your system.
Dump device table: (start & size given in 1-Kbyte blocks)
entry 0 - major is 31, minor is 0x1f000; start = 519008, size = 4194304
Starting the STREAMS daemons-phase 1
Create STCP device files
B2352B/9245XB HP-UX (B.11.00) #1: Wed Nov 5 22:38:19 PST 1997
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 1048576 Kbytes, lockable: 827384 Kbytes, available: 861768 Kbytes
You can see a line "Unable to add all swap for device: Primary Swap. Increase the tunable parameter maxswapchunks by 1024 and re-configure your system".
but when i check my kmtune -q maxswapchunks its 1024 only.
I ll give max. points to all... Please help me
What log file you want plz tell i ll provide you...
i am getting this kind of message alert in my OVO server as am monitoring this NNM server.
"Global swap space is nearly full - Swap Space Utilization = 100.00% ( START: 13:05:00 04/25/08 ) INOC (INOCNet) Critical HP 9000 PA-"
"Cron command of root with pid 8509 failed (rc = 1) INOC (INOCNet) Critical HP 9000 PA-RISC"
Whenever i do a ping it give the following error:
"SH:cannot fork no swap space."
Thanks
gV
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 12:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 12:22 AM
04-25-2008 12:22 AM
Re: SWAP error - Plz help
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 2048 0% 0 - 1 /dev/vg00/lvol2
reserve - 112 -112
total 4096 112 1936 3% - 0 -
Above is my swapinfo_tam
Sometime 3% increases to 50%.
sudo vmstat -n
VM
memory page faults
avm free re at pi po fr de sr in sy cs
4212 189361 48 20 5 0 26 0 7 152 4272 1307
CPU
cpu procs
us sy id r b w
3 2 95 0 0 0
above is my vmstat output.
Pls let me know what should do next ?
how should i check whether my swap is 2X of my physical mem.
Thanks
gV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 12:31 AM
04-25-2008 12:31 AM
Re: SWAP error - Plz help
How U can increase swap size....here is process
1) lvcreate -C y -m 1 -L
2) Next create an entry in /etc/fstab like this:
/dev/vg00/lvolx ... swap pri=2 0 0 --- (check same parameter already is there)
3) swapon -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 12:32 AM
04-25-2008 12:32 AM
Re: SWAP error - Plz help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 12:36 AM
04-25-2008 12:36 AM
Re: SWAP error - Plz help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 12:47 AM
04-25-2008 12:47 AM
Re: SWAP error - Plz help
how many swap space you have available in your system?
if you enable pseudoswap?
may be problem is in swap utilization.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 02:46 AM
04-25-2008 02:46 AM
Re: SWAP error - Plz help
It correct that we have enough swap space. I am not going to increase the swap space. Venkatesh thanks for you suggestion.
allocate_fs_swapmap 0
maxswapchunks 1024
nswapdev 10
nswapfs 10
remote_nfs_swap 0
swapmem_on 0
My swap kernel parameters are above.
Yes Ahsan,
There is a problem with swap utilization
Please see the below output,
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 2048 0% 0 - 1 /dev/vg00/lvol2
reserve - 117 -117
total 4096 117 1931 3% - 0 -
We are using a script to start our NNM services. When we use this script we are facing a peak 50% in Total 50% and it uses only the reserver. I dont know y is it not using the dev swap space.
You can see the below output after i ran the NNM script to start my NNM. U can see the "total" is "USED" as 50%
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 2048 0% 0 - 1 /dev/vg00/lvol2
reserve - 2045 -2045
total 4096 2045 3 50% - 0 -
Please advice me what should i do ? Now am totally confused. Its a production server too. How suddenly this can happen?
Thanks
gV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 03:12 AM
04-25-2008 03:12 AM
Re: SWAP error - Plz help
Since you want to have 4Gb of swap, your system is trying to tell you to set maxswapchunks to 2048 instead of 1024 so you can represent the 4Gb (2048 * 2048 * 1024). Hence the *increase* the tunable by 1024 [the code is written to simply calculate how much more you need, not the final value].
With only 2Gb of swap, that means you can only have 2Gb of virtual objects since all virtual objects must reserve backing store. [File backed objects such as shared mmap() don't use swap, they use the file -- anything allocated via malloc(), anonymous mmaps, stacks, SysV shared memory, etc. is swap backed]. This is your "reserve" line in swapinfo. Since 2048 of your swap total is not enabled on the system, when your reserve hits 2048 as well -- all your swap is reserved and no new virtual objects are likely to be made. This is when you will see failures from fork() / malloc() / whatnot.
That's why you never hit 100% for USED by the way -- swapinfo doesn't represent "There but not Enabled (and hence not USED)" all that well, in my opinion [but I'm just a kernel guy, not a UI person]. Since 50% of your swap can't be USED but isn't free either, your real total available is only 50% until you get that tunable up.
First, set the tunable like the system is trying to tell you to do (at least 2048). After that, you can look at your reservation peaks (since you obviously have a transient virtual memory load when the NNM stuff runs) to see if you need to enable more swap, or look at kernel tunables [maxdsiz, maxssiz] / setrlimit usage to limit how much virtual address space (and hence swap reservations) an allocation can use. I'd set the swapmem_on tunable to 1 as well so you can have memory swap enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 03:36 AM
04-25-2008 03:36 AM
Re: SWAP error - Plz help
Thaanks
gV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 03:46 AM
04-25-2008 03:46 AM
Re: SWAP error - Plz help
Unfortunately, maxswapchunks cannot be dynamically changed:
(this can be observed by running the command below)
SRV2:home/root>kmtune -q maxswapchunks
Parameter Current Dyn Planned Module Version
===============================================================================
maxswapchunks 16384 - 16384
SRV2:home/root>kmtune -s maxswapchunks=
SRV2:home/root>
What error are you getting when running SAM?
to set the value, you can try the following comamnd:
SRV2:home/root>kmtune -s maxswapchunks=
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 03:51 AM
04-25-2008 03:51 AM
Re: SWAP error - Plz help
Sorry. I am not sure it the command will work on 11.0. I tried the commands in my previous post on 11.11. I do not have a 11.0 at hand right now.
Anyway, if you fix the SAM problem, you will be able to change the value correctly. Update us on the error message that you are getting when running SAM.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 03:54 AM
04-25-2008 03:54 AM
Re: SWAP error - Plz help
reply soon..
Thanks
gV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:06 AM
04-25-2008 04:06 AM
Re: SWAP error - Plz help
good luck!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:09 AM
04-25-2008 04:09 AM
Re: SWAP error - Plz help
Received disconnect from 202.61.9.20: 2: fork failed: Resource temporarily unavailable
Any help...
Thanks gV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:10 AM
04-25-2008 04:10 AM
Re: SWAP error - Plz help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:17 AM
04-25-2008 04:17 AM
Re: SWAP error - Plz help
Sounds as if your process table is full.
glance -t
this should show you the real problem.
e.g. (glance -t output)
--------------------------------------------------------------------------------
SYSTEM TABLES REPORT Users= 2
System Table Available Used Utilization High(%)
--------------------------------------------------------------------------------
Proc Table (nproc) 4096 177 4 4
File Table (nfile) 63498 674 1 1
Shared Mem Table (shmmni) 512 10 2 2
Message Table (msgmni) 4096 2 0 0
Semaphore Table (semmni) 4096 21 1 1
File Locks (nflocks) 4096 26 1 1
Pseudo Terminals (npty) 60 0 0 0
Buffer Headers (nbuf) na 67320 na na
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:32 AM
04-25-2008 04:32 AM
Re: SWAP error - Plz help
--------------------------------------------------------------------------------
CPU Util SU | 1% 12% 66%
Disk Util F | 1% 9% 31%
Mem Util S SU UB B | 34% 34% 35%
Swap Util R R | 5% 5% 5%
--------------------------------------------------------------------------------
SYSTEM TABLES REPORT Users= 1
System Table Available Used Utilization High(%)
--------------------------------------------------------------------------------
Proc Table (nproc) 1460 85 6 6
File Table (nfile) 21111 552 3 3
Shared Mem Table (shmmni) 200 6 3 3
Message Table (msgmni) 50 2 4 4
Semaphore Table (semmni) 64 20 31 31
File Locks (nflocks) 200 22 11 11
Pseudo Terminals (npty) 60 1 2 2
Buffer Headers (nbuf) na 8631 na na
This is my glance -t output.
Even after i changed those two kernel parameter as given morris doesn't helped me.
First of all my ping itself is not working. Whenever i do ping it just hangs...
thanks
gV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:44 AM
04-25-2008 04:44 AM
Re: SWAP error - Plz help
"swchunk" should be considered when modifying "maxswapchunks". BTW, put the output....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:48 AM
04-25-2008 04:48 AM
Re: SWAP error - Plz help
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 04:51 AM
04-25-2008 04:51 AM
Re: SWAP error - Plz help
Are you getting any messages on your console?
Also check the syslog.log. Any new error messages?
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 05:03 AM
04-25-2008 05:03 AM
Re: SWAP error - Plz help
Syslog is not giving anything. Its one big dumbo. It just gives the command I type. It doesn't gives any error. Its an idiot.
thanks
gV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 05:04 AM
04-25-2008 05:04 AM
Re: SWAP error - Plz help
swchunk sets the size of a swap chunk in 1024 byte pages, so increasing the chunk size yields less chunks needed in the table (and a smaller needed maxswapchunks) for a given swap space. Similarly, lowering swchunk means that more chunk indices in the swap table will be needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 05:12 AM
04-25-2008 05:12 AM
Re: SWAP error - Plz help
We are interested to know the following after you started all the service/apps/scripts.
1.Swap utilisation
#swapinfo -mat
2.CPU/Memory/disk utilisation
#glance
#top
#sar -u 2 2
#sar -d 2 2
3.System resource utilisation
#glance -t
#sar -v 2 2
What is the current status? Aren't you able to ping/telnet/ssh to the server?
Where you are getting the error? what is the exact error you are getting now ?
If nothing is helped out, you can consider to make a clean reboot of the server since you already made few changes to the kernel and it needs to take effect.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 05:19 AM
04-25-2008 05:19 AM
Re: SWAP error - Plz help
U can change Ur both kernel parameter for below value:
maxswapchunks----16384 &
swchunk----------16384
then reboot Ur system & check current status........