- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Swapinfo VS Memdetail
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
11-08-2008 09:37 PM
11-08-2008 09:37 PM
In checking the swap usage of the server which should be follow, swapinfo or memdetail?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2008 09:41 PM
11-08-2008 09:41 PM
Re: Swapinfo VS Memdetail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2008 02:00 AM
11-09-2008 02:00 AM
SolutionTwo different utilities written, using two different concepts to report.
You might wish to provide an example of what the discrepancy really is.
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
11-09-2008 04:22 AM
11-09-2008 04:22 AM
Re: Swapinfo VS Memdetail
$ /usr/sbin/swapinfo -tamd
Mb Mb Mb PCT Mb
TYPE AVAIL USED FREE USED START RESERVE PRI NAME
dev 2048 68 1980 3% 0 - 1 /dev/vg00/lvol2
total 2048 68 1980 3% - 0 -
$ /opt/HPO/SMSPIv2/bin/memdetail
Memory Stat total used avail %used
physical 1022.0 931.0 91.0 91%
active virtual 472.0 401.1 70.9 85%
active real 134.6 115.6 19.0 86%
memory swap 721.1 663.4 57.7 92%
device swap 2048.0 264.2 1783.8 13%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2008 05:10 AM
11-09-2008 05:10 AM
Re: Swapinfo VS Memdetail
-d
Print information about device paging areas only. This modifies the output header appropriately.
When you tell swapinfo to only report on devices, you shouldn't be surprised when the memory swap line is missing.
"swapinfo -atm" should look right (memdetail and swapinfo certainly agree on what swapinfo reported).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2008 03:42 PM
11-09-2008 03:42 PM
Re: Swapinfo VS Memdetail
$ /opt/HPO/SMSPIv2/bin/memdetail
Memory Stat total used avail %used
physical 1022.0 935.4 86.6 92%
active virtual 471.7 407.9 63.8 86%
active real 137.4 121.7 15.7 89%
memory swap 721.1 663.4 57.7 92%
device swap 2048.0 263.9 1784.1 13%
$ /usr/sbin/swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2048 66 1982 3% 0 - 1 /dev/vg00/lvol2
reserve - 198 -198
memory 721 663 58 92%
total 2769 927 1842 33% - 0 -
- When speaking of swap usage we are talking about device right?
- But how come the device swap usage is different from the memdetail and swapinfo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 02:27 AM
11-10-2008 02:27 AM
Re: Swapinfo VS Memdetail
Where is device swap value is varied on memdetail and swapinfo output?
memdetail report:
------------------
device swap 2048.0 263.9 1784.1 13%
swapinfo report:
----------------
dev 2048 66 1982 3% 0 - 1 /dev/vg00/lvol2
both are showing 2GB as device swap. it is correct only...
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 02:44 AM
11-10-2008 02:44 AM
Re: Swapinfo VS Memdetail
Not really. There is device and there is pseudo swap.
>But how come the device swap usage is different from the memdetail and swapinfo.
You are going to have to point to the difference. Ganesan and I don't see any, at least for the total. For pseudo swap, it is the same for all values.
For memdetail, it seems it doesn't separate the reserved line from the used device swap. Summing the two from swapinfo, matches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 03:34 AM
11-10-2008 03:34 AM
Re: Swapinfo VS Memdetail
Is the reserve line considered as a normal swap?
What is the purpose of this reserve swap anyway?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 03:39 AM
11-10-2008 03:39 AM
Re: Swapinfo VS Memdetail
The reserve line is just details of how device swap is used. It basically says that the space has been reserved but hasn't been touched or swapped back to disk yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 03:42 AM
11-10-2008 03:42 AM
Re: Swapinfo VS Memdetail
reserve
Paging space on reserve. This is the amount of paging space that could be needed by processes that are currently running, but that has not yet been allocated from one of the above paging areas. See "Paging Allocation" below.
In other words -- the "reserve" line is how much of the swap from the device (or devices, or File System -- but here, just your single device) has been considered claimed for future swap needs if the time comes.
"Used" means that it really is in use -- there's actual data on the swap device, and there are processes which have claims to specific swap blocks.
Hence, memdetail sums up things to reflect how much device swap is used or reserved in order to give the best idea of how much is free to be claimed by new memory allocations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2008 11:11 PM
11-11-2008 11:11 PM
Re: Swapinfo VS Memdetail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2008 11:38 PM
11-11-2008 11:38 PM
Re: Swapinfo VS Memdetail
http://forums.itrc.hp.com/service/forums/helptips.do?#33