- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: reservation of pseudo-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
07-20-2004 12:37 PM
07-20-2004 12:37 PM
1. "If no device or file system swap is available, the system uses pseudo-swap AS LAST RESORT."
2. "If physical swap space is EXHAUSTED and no additional file-system swap space can be acquired, pseudo-swap is reserved for the process by descementing swapmem_cnt."
I have tried to check these statements and they do not appear to be correct.
Please see the following scenario:
On freshly booted server where nothing is running except oracle client being installed:
# meminfo
Memory Stat total used avail %used
physical 4096.0 897.9 3198.1 22%
active virtual 351.0 301.9 49.0 86%
active real 196.2 163.4 32.8 83%
memory swap 3260.5 354.7 2905.8 11%
device swap 1024.0 206.5 817.5 20%
using adb checked that :
swapspc_cnt=796.719 MB
swapmem_max=3260.48 MB
swapmem_cnt=2905.72 MB
(all values converted from 4K pages)
From the above we can see that while device swap space is still not exhausted ("swapspc_cnt" far from zero)
pseudo-swap is already allocated ( (swapmem_max- swapmem_cnt) > 300M )
This seems to contradict whitepaper statement.
Is my understanding of whitepaper wrong?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 01:02 PM
07-20-2004 01:02 PM
Re: reservation of pseudo-swap space
dbc_pct_max=5 (200m)
sys_mem=514m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 12:37 AM
07-21-2004 12:37 AM
Re: reservation of pseudo-swap space
Please send the output of the swapinfo command.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 12:50 AM
07-21-2004 12:50 AM
Re: reservation of pseudo-swap space
Or according to the number of started application: if there is 5 applications and they need 20 MB of additional memory each to start working (but they will not use it completely), in case you have only 70 MB virtual memory all 5 applications can't work at once because they "need" 100MB. Those 30 MB extra will be "reserved" from nonexist pseudo swap.
I have attached swapinfo output from one of our systems, where there is enought phisical memory and there is no need of using the swap.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 03:34 AM
07-22-2004 03:34 AM
SolutionFirst - any kernel memory allocation that needs swap reservation gets it from Memory Swap first, and then device swap. [Paging of kernel structures is a last resort].
Second - locked memory (via mlockall() / plock() ) consumes memory swap first if no swap has already been reserved for it. Again - this is because the pages are supposed to be sitting there consuming RAM anyway, not using disk space (otherwise why is the user locking them?). If they're going to be consuming RAM and can't be paged -- that's pretty much the definition of Memory Swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 07:31 PM
07-22-2004 07:31 PM
Re: reservation of pseudo-swap space
Look here for a good example.ftp url shown
Also some good non supported tools for memory management
Memory Usage - â What is using all of the memoryâ ?
by:eric.herberholz@hp.com
Last modified: July 14, 2004
Latest version available at external ftp site:
ftp://eh:spear9@hprc.external.hp.com/memory.htm
Table of Contents
Introduction
The memory line in the output of swapinfo
swapinfo defined
A. Review Buffer Cache size
B. Monitoring Memory Usage
1. plain memory (malloc) - ps, procsize, kmeminfo, and Glance
2. shared memory (shmget) - ipcs, shminfo and procsize
3. memory mapped (mmap)- shminfo and procsize
C. OS Memory Leaks/Hogs
1. Check for OS memory leaks with kmeminfo
2. Check for known memory hogs (e.g. JFS inode cache)
D. Application Memory Leaks
E. 32-bit memory limitation
F. SHMEM_MAGIC
G. How much data space can application get?
H. Memory Windows: details patches how to check for Memory Windows memwin_stats
I. Memory Usage as seen in "dmesg", "swapinfo", "top", and "glance"
J. Troubleshooting of â Not enough spaceâ and "Not enough core"