- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vmunix: Deferred swap reservation failure pid:...
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
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-12-2004 07:57 AM
01-12-2004 07:57 AM
vmunix: Deferred swap reservation failure pid: 18497
what does it mean?
Thanks,
Wei
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:07 AM
01-12-2004 08:07 AM
SolutionIt means that a process - PID 18497 - tried to reserve swap space at start up & was unable to do so. Probably because all the swap/memory reservation space was exhausted or that enough space was not available.
Run
swapinfo -tam
and not the value for reserve - specifically total - and if it's high now that means you need to add secondary swap space to the system. It may never be used as *actual* swap space, but every process that starts needs to reserve space at startup just in case it does need to be swapped out or deactivated as it's termed now.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:08 AM
01-12-2004 08:08 AM
Re: vmunix: Deferred swap reservation failure pid: 18497
swapinfo -tam
Do you have any swap allocated? If not, get users off this server now and run through swap setup.
dmesg make sure the disk allocated to disk is still there.
If there is adequate swap than you can conduct a more methodical search.
I would think, based on the message you have inadequate swap allocated.
The swapinfo -tam command will let you know how much is allocated.
The minimum swap is 50% of RAM. Most shops go between 1 and two times RAM as swap. I usually have one small one as primary and a larger one as secondary. This gets be better performance at low system loads.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:19 AM
01-12-2004 08:19 AM
Re: vmunix: Deferred swap reservation failure pid: 18497
swapinfo -mat
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 256 0 256 0% 0 - 1 /dev/vg00/lvol2
dev 4096 58 4038 1% 0 - 0 /dev/vg00/swap2
reserve - 4294 -4294
memory 6241 5926 315 95%
total 10593 10278 315 97% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:26 AM
01-12-2004 08:26 AM
Re: vmunix: Deferred swap reservation failure pid: 18497
Yep - you're running out of swap space to reserve to. It's at 97% now.
You need to add secondary swap space.
Do you have an unused disk or LUN that can be used for swap?
If not you'll have to obtain one OR lower the memory demand on the system by starting less processes or starting them with a smaller memory footprint.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:47 AM
01-12-2004 08:47 AM
Re: vmunix: Deferred swap reservation failure pid: 18497
dev 4096 58 4038 1% 0 - 0 /dev/vg00/swap2
But the above suggests we uses only 1% of dev swap.
What does it mean?
Thanks,
Wei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:53 AM
01-12-2004 08:53 AM
Re: vmunix: Deferred swap reservation failure pid: 18497
That's where you're running out of swap space.
It's not actually being *used* as swap space per se, but as I explained EVERY process that starts up must make a reservation into the swap space when it starts up.
So what's happening in your case is that you're starting up more processes - memorywise - than the system has memory & swap combined.
You solve this by adding more secondary swap & add it to another VG other than vg00 or create a new VG & add it to that.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:53 AM
01-12-2004 08:53 AM
Re: vmunix: Deferred swap reservation failure pid: 18497
This line shows how much swap space from your device swap is 'reserverd'. 256+4096=4292 therefore you have 0 MB of space left of reservation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:58 AM
01-12-2004 08:58 AM
Re: vmunix: Deferred swap reservation failure pid: 18497
When a process starts, it reserves a portion of the swap area equal to the amount of memory it is using. It does this so that if it does actually have to page out, it has a place to go. ALL processes on HP-UX do this.
You must have 1 of 2 things on your systems:
1) You must have AT LEAST as much swap as you do RAM. If you want processes to use all of your RAM, they must be able to reserve an amount equal to that. Otherwise you will not be able to use all of your RAM.
or 2) You can have a smaller swap area and set the 'swapmem_on' kernel parameter to 1. This will allow HP-UX to do pseudo-swapping where it uses part of RAM as pseudo-swap and processes reserve space that way. This does not actually impact your RAM usage. HP-UX is very smart about this.
You will only start paging out if a process tries to start that is larger than the amount of free RAM you have.
So as said before, you are running out of space for processes to reserve swap when they start. Your options are to set swapmem_on to 1, which requires regeneration of the kernel and a reboot, or add an additional swap area so that you have the same amount of swap as RAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 07:44 PM
01-12-2004 07:44 PM
Re: vmunix: Deferred swap reservation failure pid: 18497
just like the other noticed, the problem was cause by a lack of swap space. In your case the process has been using "deferred swap reservation", aka lazy swapping.
By default HP-UX reserves the required swap space immediately, i.e. a memory allocation fails if reservation is not possible. This means, the swap is reserved even if the process never uses it. But it is ensured that it _can_ be used, even if swap gets exhausted.
In your case the process used lazy swapping, which means that reservation is deferred until the memory is actually used. This saves swap space at run time... BUT, if later on the swap is exhausted then the kernel has no other choice than killing processes that try to use their memory which still needs reservation.
You can turn on lazy swapping using chatr(1). Developers can use MAP_NORESERVE with the mmap(2) syscall to enable lazy swapping for their memory mapped files. This is e.g. done by the Java Virual Machine.
Best regards...
Dietmar.