- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Some questions about 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
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-17-2007 03:46 PM
07-17-2007 03:46 PM
Some questions about Memory and Swap
I've got two questions.
Question 1:
Please check out the following output:
********************************************
Mb Mb Mb
Avail Used Free
memory 2037 617 1420
********************************************
It's one entry of the output by running "swapinfo"
And I know it's information about Pseudo Swap
Now I want to know why 617Mb of Pseudo Swap is used and what's it for?The manual said it's used for other purposes but didn't mention what it is.
Question 2
Run "top" and I got the following information
*********************************************
Memory:22000000K real,28000000K virtual,28680000K free
*********************************************
Can you explain real,virtual and free memory in detail?
Any help will be appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 04:38 PM
07-17-2007 04:38 PM
Re: Some questions about Memory and Swap
1) The simplest way to deal with swapinfo is to always use "swapinfo -tam" and only look at the total line.
2) Real is the actual RAM. Virtual probably includes swap space.
top(1) says:
Includes virtual and real memory in use (with the amount of memory considered "active" in parentheses) and the amount of free memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 06:12 PM
07-17-2007 06:12 PM
Re: Some questions about Memory and Swap
#swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096000 0 4096000 0% 0 - 1 /dev/vg00/lvol2
dev 4096000 0 4096000 0% 0 - 0 /dev/vg00/lvswap2
reserve - 448608 -448608
memory 54199400 5960192 48239208 11%
total 62391400 6408800 55982600 10% - 0 -
Here I have 2 logical volumes configured for swap.
Use /usr/sbin/cstm to find the exact Memory installed in the system.
/usr/sbin/cstm (Press Enter Key)
cstm>map (Press Enter Key)
cstm>sel dev 341 (Press Enter Key) (In my system Memory Dev Number is 341, that is why I have used 341)
cstm>info (Press Enter Key)
cstm>il (Press Enter Key)
You will see the installed memory on the system
cstm>exit (Press Enter Key)
# kmtune -q swapmem_on
Parameter Current Dyn Planned Module Version
===============================================================================
swapmem_on 1 - 1
If it is set to 1, that implies 75% of your physical memory is designated as psuedo swap.
Hope this info is helpfull.
Cheers,
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 07:13 PM
07-17-2007 07:13 PM
Re: Some questions about Memory and Swap
Thank you for replying
May be you haven't caught my question
As we all know
Pseudo Swap is just a virtual number to "cheat" on kernel,So I think it couldn't be used
but according to the output of "swapinfo"
617MB of Pseudo Swap is used
Now I want to know what's it used for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 07:22 PM
07-17-2007 07:22 PM
Re: Some questions about Memory and Swap
If 617 MB psuedoswap is being used, what is primary swap utilization. If it is zero, that clearly implies that the pseudoswap is used instead of primary swap.
If you are looking for what is psuedoswap and how it works, let me know.
Cheers,
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 07:32 PM
07-17-2007 07:32 PM
Re: Some questions about Memory and Swap
here is the total information by running "swapinfo -m"
**************************************
Mb Mb Mb
TYPE AVAIL USED FREE
dev 2048 0 2048
reserve - 237 -237
memory 2037 557 1480
**************************************
Now I've got 557MB Pseudo Swap in used.
And there is no primary swap in used(swapmem_on=1 by the way)
So how does it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 07:44 PM
07-17-2007 07:44 PM
Re: Some questions about Memory and Swap
>So how does it work?
Since you are using less VM than the amount of RAM that you have, there is no need to use device swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 08:08 PM
07-17-2007 08:08 PM
Re: Some questions about Memory and Swap
When you have psuedoswap configured, system uses deactivation method instead of page outs/Ins to primary swap device. When a page fault occurs, it reactivates the pages in psuedoswap, which is nothing but the RAM itself.
If number of memory pages are more, then it uses primary swap to hold the data.
Cheers,
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 08:27 PM
07-17-2007 08:27 PM
Re: Some questions about Memory and Swap
glance -m
the above command can also clarify your current environment and memory usages.
e.g at the end of the report, the following will be displayed:
Total VM : 1.03gb Sys Mem : 1.08gb User Mem: 328.0mb Phys Mem: 8.00gb
Active VM: 910.9mb Buf Cache: 819.2mb Free Mem: 5.80gb
hop this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 01:55 AM
07-18-2007 01:55 AM
Re: Some questions about Memory and Swap
2) Real: User actual physical consumption (in Kb)
Virtual: User virtual address space consumption (in Kb)
Free: User allocatable physical memory (in Kb) at this time.
Note the "User" in all of the above -- top is NOT (and should never be used as) a system-wide reporting mechanism.... it only knows about User processes and User resources.
I'm really not sure what further detail you'd want beyond the above.. if you haven't read the VM White Paper for the basic concepts, you should:
http://docs.hp.com/en/1218/mem_mgt.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 08:50 PM
07-19-2007 08:50 PM
Re: Some questions about Memory and Swap
But I haven't make it clear.
So I'll start a new thread