- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Determine available memory using Hp-UX 11.11 via c...
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
08-11-2004 12:23 AM
08-11-2004 12:23 AM
I have tried using pstat.h but this does not seem to be functioning properly (using HP-UX 11.11, 11.00 works fine). Specifily I am querying dbuf.psd_free sbuf.page_size.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 12:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 12:46 AM
08-11-2004 12:46 AM
Re: Determine available memory using Hp-UX 11.11 via comand line
echo freemem/D | adb /stand/vmunix /dev/kmem
This gives the free memory in pages (1 page 4kB) . This means you need to multiply with 4/1024 to get the value in MB.
To get exactly the glance value (more complicated and not better) you can run glance in advisor mode:
# glance -iterations 1 -adviser_only -syntax advisor.mem
with advisor.mem containing the line
PRINT GBL_MEM_FREE
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 01:41 AM
08-11-2004 01:41 AM
Re: Determine available memory using Hp-UX 11.11 via comand line
# echo $REAL_MEM
262144
# MemorySize=$(expr ${REAL_MEM} / 256)
# echo $MemorySize
1024
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 01:45 AM
08-11-2004 01:45 AM
Re: Determine available memory using Hp-UX 11.11 via comand line
The correct command is
echo freemem/D|adb -k /stand/vmunix /dev/kmem
thank you - Carsten
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 03:14 AM
08-11-2004 03:14 AM
Re: Determine available memory using Hp-UX 11.11 via comand line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 03:24 AM
08-11-2004 03:24 AM
Re: Determine available memory using Hp-UX 11.11 via comand line
The adb tool is new to me, can you point me to a good online refrence? I wol like to know what else I can parse from adb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 03:31 AM
08-11-2004 03:31 AM
Re: Determine available memory using Hp-UX 11.11 via comand line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 04:28 AM
08-11-2004 04:28 AM
Re: Determine available memory using Hp-UX 11.11 via comand line
dmesg | grep -e Memory -e bytes
You can use nm to get all the associated symbols needed to be known as like freemem as,
nm /stand/vmunix | grep freemem
You can use man page adb to start with.