HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swap space & memory
Operating System - HP-UX
1825800
Members
2461
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-07-2004 01:56 PM
09-07-2004 01:56 PM
Hello everyone, i have a swap and memory configuration problem with my HP machine. it never use the allocated swap space. she only using the physical memory. pls tell me how can i fix this. beleow is the result of
swapinfo -tam and a portion on /stand/system.
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
reserve - 1024 -1024
memory 3154 1999 1155 63%
total 4178 3023 1155 72% - 0 -
* Tunable parameters(/stand/system)
STRMSGSZ 65535
max_thread_proc 3000
maxdsiz 0X7B03A000
maxfiles 2048
maxfiles_lim 2048
maxssiz 0XF424000
maxswapchunks 512
maxusers 512
ncallout ((16+NPROC)*3-252)
nfile ((16*(NPROC+16+MAXUSERS)/10+127+2*(NPTY+NSTRPTY+NSTRTEL))*6)
nkthread ((((NPROC*7)/4)+16)*2-1270)
nproc ((20+8*MAXUSERS)/2+10)
npty 120
nstrpty 120
nstrtel 120
shmmax 0X1DCD6500
swapmem_on 1
swapinfo -tam and a portion on /stand/system.
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
reserve - 1024 -1024
memory 3154 1999 1155 63%
total 4178 3023 1155 72% - 0 -
* Tunable parameters(/stand/system)
STRMSGSZ 65535
max_thread_proc 3000
maxdsiz 0X7B03A000
maxfiles 2048
maxfiles_lim 2048
maxssiz 0XF424000
maxswapchunks 512
maxusers 512
ncallout ((16+NPROC)*3-252)
nfile ((16*(NPROC+16+MAXUSERS)/10+127+2*(NPTY+NSTRPTY+NSTRTEL))*6)
nkthread ((((NPROC*7)/4)+16)*2-1270)
nproc ((20+8*MAXUSERS)/2+10)
npty 120
nstrpty 120
nstrtel 120
shmmax 0X1DCD6500
swapmem_on 1
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 02:04 PM
09-07-2004 02:04 PM
Solution
Actually you NEVER EVER want to have to use your swap space (ie. have processes have to page out to device swap).
Swap space only REALLY ever needs to be used for RESERVATION purposes. If you ever see your USED% on the 'dev' line go above 0, then you are probably short on RAM.
Your configuration looks good to me.
Swap space only REALLY ever needs to be used for RESERVATION purposes. If you ever see your USED% on the 'dev' line go above 0, then you are probably short on RAM.
Your configuration looks good to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 02:05 PM
09-07-2004 02:05 PM
Re: Swap space & memory
Hi,
If you are worrying about 1999 KB Used in the memory line of your swapinfo -tam, then don't worry about it. It's not actually the usage. Enabling swapmem_on kernel parameter will make the system to allocate 75% of memory as swap space initially. This is only for the calculation purposes and it will not be used physically. As the system continues to run, memory will be consumed by the system and it will be *unaccounted* from the swap usage. Hence you see it as used (a misnomer).
With the introduction of this parameter, system administrators no longer have to add swap of twice the memory.
You should be worried when you start seeing your device swap used with considerable pageouts (in vmstat 5 2 output).
-Sri
If you are worrying about 1999 KB Used in the memory line of your swapinfo -tam, then don't worry about it. It's not actually the usage. Enabling swapmem_on kernel parameter will make the system to allocate 75% of memory as swap space initially. This is only for the calculation purposes and it will not be used physically. As the system continues to run, memory will be consumed by the system and it will be *unaccounted* from the swap usage. Hence you see it as used (a misnomer).
With the introduction of this parameter, system administrators no longer have to add swap of twice the memory.
You should be worried when you start seeing your device swap used with considerable pageouts (in vmstat 5 2 output).
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 05:58 PM
09-07-2004 05:58 PM
Re: Swap space & memory
pat & sri, i think both of u are right. thank u for the knowledge that you shared to me. you were very generous & helpful.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP