- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Virtual memory and swap
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
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
тАО08-20-2008 10:27 AM
тАО08-20-2008 10:27 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 10:57 AM
тАО08-20-2008 10:57 AM
Re: Virtual memory and swap
Different tools, different calcuations.
swapinfo -tam is going to give you the best measure.
gpm may be showing how much swap is free.
Your dba asking for more swap is an issue here. If your system is paging to disk, adding swap may make it more stable, but won't make it any faster. In fact it will be slower.
The better approach here, not knowing physical memory is probably to add memory.
If you post swapinfo -tam output and vmstat output, I can give a more precise analysis.
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
тАО08-20-2008 11:05 AM
тАО08-20-2008 11:05 AM
Re: Virtual memory and swap
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 200 7992 2% 0 - 1 /dev/vg00/lvol2
reserve - 2990 -2990
memory 6290 484 5806 8%
total 14482 3674 10808 25% - 0 -
I agree they are different tools but shouldn't vitual memory and swap be closer? We're talking 11 gig difference in what is the most that virtual memory thinks it can obtain. The oracle process is grabbing exactly all of what is virtual memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 11:31 AM
тАО08-20-2008 11:31 AM
SolutionYou are entirely correct that swap space is an indicator of total possible Virtual memory (it isn't exact, however, since file-backed objects are allowed to be virtually mapped without needing additional swap... or in simpler terms, mmap() with MAP_FILE is exempt from this rule, as are most Text sections of binaries, etc.).
When you say that you need more swap and that it is "hanging things" -- can you be more specific? Is a script hanging? The system? Because if the process did actually try to grow virtually, I see no reason from the swapinfo output for it to be failed. You may be hitting other issues like the maxdsiz / maxdsiz_64bit cap, shm* tunable caps, etc. We'd need more information on exactly what's failing (i.e. if it is a system call, which one, at least?) to try to determine that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 11:43 AM
тАО08-20-2008 11:43 AM
Re: Virtual memory and swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 07:27 PM
тАО08-20-2008 07:27 PM
Re: Virtual memory and swap
Second thing if you want to exact use of your memory online useing you can use "TOP" command to check how many memory currently application or system using. After that you can say you have required more swap space.
My suggetion is that please use "TOP" command to check memory status freqently, after that you may not required Swap space and problem is in with other side.
Regards,
Gokul Chandola
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 09:12 PM
тАО08-20-2008 09:12 PM
Re: Virtual memory and swap
These don't take up swapspace and you would need a lot of code monkeys to exceed the default values for code size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 02:11 AM
тАО08-21-2008 02:11 AM
Re: Virtual memory and swap
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 04:52 AM
тАО08-21-2008 04:52 AM
Re: Virtual memory and swap
I didn't say they were related to swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2008 02:24 AM
тАО08-22-2008 02:24 AM
Re: Virtual memory and swap
Ok but the author's question was about swap. I'm also saying you usually never have to check maxtsiz.