- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory - Glance vs. vmstat differences.
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
03-01-2004 04:47 AM
03-01-2004 04:47 AM
Svr: HPUX 11.11 2GB Ram Oracle 8.1.7.0 MC/SG 11.04 OVO 7.1 L3000
I am trying to determine how much free memory we have at any given point in time on our server. I am using glance and vmstat. I get two completly different numbers.
glance:
Free Mem: 270.3mb
vmstat:
r b w avm free
2 1 0 140078 69149
Any ideas as to what I should be using for metrics? (I want to gather some data for Oracle/kernel tuning purposes).
10 points to any good answer.
TIA, Gino
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 04:49 AM
03-01-2004 04:49 AM
SolutionOutput like:
# memdetail
Memory Stat total used avail %used
physical 10080.0 3115.4 6964.6 31%
active virtual 657.2 534.5 122.7 81%
active real 313.3 220.8 92.5 70%
memory swap 7697.2 1771.9 5925.3 23%
device swap 26528.0 382.6 26145.4 1%
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 04:51 AM
03-01-2004 04:51 AM
Re: Memory - Glance vs. vmstat differences.
I would always trust Glance over vmstat. The legacy tools like vmstat were developed years ago in the infancy of unix and don't always deal well with today's modern systems. Glance, on the other hand, has been designed, developed and improved over the years to give an accurate picture of what's really going on. That's why you spent the money for it, to trust it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 04:55 AM
03-01-2004 04:55 AM
Re: Memory - Glance vs. vmstat differences.
Pete:
Makes sense, vmstat was not created when
multi-cpu, etc. were available.
Geoff:
Does that "c" program work with hp-ux 11.11?
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 04:56 AM
03-01-2004 04:56 AM
Re: Memory - Glance vs. vmstat differences.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 05:01 AM
03-01-2004 05:01 AM
Re: Memory - Glance vs. vmstat differences.
Glance: 270.3 MB
vmstat: 69149 pages = 69149*4 = 276596
That's almost equal??.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 05:02 AM
03-01-2004 05:02 AM
Re: Memory - Glance vs. vmstat differences.
I could have made it little better.
276596/1024 = 270.11 MB
Am I missing anything here?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 05:06 AM
03-01-2004 05:06 AM
Re: Memory - Glance vs. vmstat differences.
Would it be Ok to get as follows?
echo "freemem/D"|adb -k /stand/vmunix /dev/kmem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 05:34 AM
03-01-2004 05:34 AM
Re: Memory - Glance vs. vmstat differences.
swapinfo -tm is the best way to see available memory. The total memory available is RAM + some % swap space. As mentioned, Glance shows actual memory usage and is much more accurate than vmstat or top.
There have been several posts here in the forums about Oracle and memory problems. Since you have only 2Gb of RAM, you are definitely going to feel performance pain with a lot of users. swapinfo will tell you (as well as Glance) how mush swap is being used. But also note that there are sysadmin safety fences (maxdsiz and ulimit -a) that will prevent programs from getting as much memory as they need. Read the memory and process management white papers (docs.hp.com) that talk about the limits for 32bit programs.
Bill Hassell, sysadmin