- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question about Swap in HP-UX 11.23
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
Discussions
Discussions
Forums
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
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-16-2008 02:58 PM
тАО04-16-2008 02:58 PM
If there is a process that tries to reserve more swap/virtual/reserve? memory than is available what happens to that process?
/var/adm/syslog $swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
dev 20971520 0 20971520 0% 0 - 1 /dev/vg00/lvol9
reserve - 25114192 -25114192
memory 67078728 14496012 52582716 22%
total 92244552 39610204 52634348 43% - 0 -
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2008 04:55 PM
тАО04-16-2008 04:55 PM
SolutionHP-UX (like most other Enterprise Unix OS's) requires all virtual objects by default to be backed by swap space. However, it doesn't need to direct a particular swap block (i.e. a disk sector or file system block) at the time of allocation -- so the swap is "reserved" [no longer considered free]. If the swap is ever actually needed, the system can allocate/use the swap by looking for a free range of the size in question (which has to exist since it was reserved).
Or in short -- if you malloc() X Gb, that requires X Gb of swap reservation to go with it. If it isn't available, the malloc() gets ENOMEM. [Similar results for similar failing allocation system calls]. The odd state is when you leave the defaults and specifically request (via flags or chatr) lazy swap where the reservation isn't done until fault time (when actual RAM pages are consumed). There, a failing reservation will kill the process [and that's why this isn't the default].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2008 08:38 PM
тАО04-16-2008 08:38 PM
Re: Question about Swap in HP-UX 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2008 08:59 PM
тАО04-16-2008 08:59 PM
Re: Question about Swap in HP-UX 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2008 09:05 PM
тАО04-16-2008 09:05 PM
Re: Question about Swap in HP-UX 11.23
Exactly.
But I would hope the process would print out an nice informative message and then abort, or at least exit with a bad status. And possibly trying to cleanup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2008 02:03 AM
тАО04-19-2008 02:03 AM
Re: Question about Swap in HP-UX 11.23
of virtual memory to accomodate all processes . The virtual memory be at least eaqual to physical memory plus application
size.
For a process
to spawn it needs a sufficient amount of virtual memory to be placed in
reserve. There should be a sufficient amount of free device swap to open any
processes that may be spawned during the course of operations. By subtracting
thereserve from the device total you can determine this value.
If there is an insufficient amount available ( typically from device swap)
you will receive an error : cannot fork : not enough virtual memory. If
this error is received , you will need to allocate more device swap. This
should be configured on a disk with no other swap partitions, and ideally of
the same size and priority of existing swap logical volumes to enable
interleaving.