- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swapinfo showing wrong memory info
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
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
тАО11-09-2010 08:42 AM
тАО11-09-2010 08:42 AM
OS is 11iv1 on PA-risc
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 12000 0 12000 0% 0 - 2 /dev/vg01/lvol11
reserve - 5033 -5033
memory 12724 9210 3514 72%
total 28820 14243 14577 49% - 0 -
Here is part of glance memory output
Total VM : 5.29gb Sys Mem : 2.57gb User Mem: 3.57gb Phys Mem: 16.0gb
Active VM: 2.75gb Buf Cache: 8.00gb Free Mem: 1.86gb
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 08:46 AM
тАО11-09-2010 08:46 AM
SolutionHave a look at the 'swapinfo' man page. Basically the memory line is the amount of memory used for 'pseudo-swap', which is roughly 75% of the total RAM in the system.
So if you have 16GB of RAM, the approximately 12GB value in the memory line is absolutely correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 08:53 AM
тАО11-09-2010 08:53 AM
Re: swapinfo showing wrong memory info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 08:59 AM
тАО11-09-2010 08:59 AM
Re: swapinfo showing wrong memory info
>>other servers i'm seeing my physical
>>memory and swapinfo memory matches. I need
>>to tune the buffer cache anyways, its too
>>much 8g?
Examples, please? I've never seen an instance where the 'memory' line in swapinfo matches the amount of RAM in the system.
Also, this has nothing to do with buffer cache. The 'memory' line is 'pseudo-swap' which is enabled by the 'swapmem_on' kernel parameter being set to '1' (at least up to HP-UX 11.23 -- I think it is always on in 11.31).
Having buffer cache set to 8GB may be fine for you, but you should check the usage. You can check your read and write buffer cache activity by using 'sar -b' ('man sar' for details).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 10:28 AM
тАО11-09-2010 10:28 AM
Re: swapinfo showing wrong memory info
The answers are absolutely right. The mem column of swapinfo is always pseudo swap when memory paging is enabled and is always enabled in HPUX 11iv3. Therefore it should not be reflecting the complete physical memory. Glance and the other commands are real time monitoring tools and will show you the right output and so will the commands machinfo and print_manifest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 10:32 AM
тАО11-09-2010 10:32 AM
Re: swapinfo showing wrong memory info
See above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 10:44 AM
тАО11-09-2010 10:44 AM
Re: swapinfo showing wrong memory info
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 12000 0 12000 0% 0 - 2 /dev/vg01/lvol11
reserve - 5033 -5033
memory 12724 9210 3514 72%
total 28820 14243 14577 49% - 0 -
Here is how you find your total swap:
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 12000 0 12000 0% 0 - 2 /dev/vg01/lvol11
(* make sure you add up all the 'dev' swap not just line 2 *)
b) Tuning Buffer Cache
Question: Do users complain of the system hanging for a few seconds?
This is often an indication of a need for buffer cache tuning. Use sar -b and check these parameters:
%rcache >= 90, and %wcache >= 70%
You can also adjust the kernel parameters:
'dbc_min_pct' from (* 2 -to- 5 *) & 'dbc_max_pct' (* 5 -to- 10 *) kernel parameters.
Tune until the users say the hesitation goes away (* or gets as low as you can get it. *)
Note: This is problem is also often fixed by have the DBA re-indexing his database, especially in Oracle, which uses it's own cache in the SGA as well as the O/S system cache.
Also note that raw logical volumes have no buffer cache since the database is now performing reads and writes and the oupput from sar -b will be fairly worthless.
And finally note that unordered data, like a filesystem dedicated to writing oracle archive logs, will never see high cache hit rates because it is a flat file and not an ordered realational database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 11:00 AM
тАО11-09-2010 11:00 AM
Re: swapinfo showing wrong memory info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 12:37 PM
тАО11-09-2010 12:37 PM
Re: swapinfo showing wrong memory info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 01:02 AM
тАО11-10-2010 01:02 AM
Re: swapinfo showing wrong memory info
I have at least 4 systems where the memory line in swapinfo shows the whole physical memory.
System Hardware
Model: ia64 hp server rx4640
Main Memory: 8160 MB
HP UX B.11.23
borpd021:/homeroot# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 12288 115 12173 1% 0 - 1 /dev/vg00/lvol2
reserve - 5148 -5148
memory 8161 2674 5487 33%
total 20449 7937 12512 39% - 0 -
Regards,
Roland