- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to check memory utilization in script
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
10-02-2003 06:10 AM
10-02-2003 06:10 AM
How to check memory utilization in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 06:12 AM
10-02-2003 06:12 AM
Re: How to check memory utilization in script
echo "freemem/D" | adb -k /stand/vmunix /dev/kmem
Will give u the free memory in pages.
Thanks,
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 06:13 AM
10-02-2003 06:13 AM
Re: How to check memory utilization in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 06:15 AM
10-02-2003 06:15 AM
Re: How to check memory utilization in script
Page size is by default 4 KB.
# dmesg | grep "physical page size"
# grep "physical page size" /var/adm/syslog/syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 06:18 AM
10-02-2003 06:18 AM
Re: How to check memory utilization in script
will give you the "avm" and "free" figures. You would then need to compare the two to see if you're getting close.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 06:24 AM
10-02-2003 06:24 AM
Re: How to check memory utilization in script
vmstat |grep -v r |awk ' { print $9 } '
which would print the page outs. If that's greater than 0, you've got issues!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 06:25 AM
10-02-2003 06:25 AM
Re: How to check memory utilization in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 06:28 AM
10-02-2003 06:28 AM
Re: How to check memory utilization in script
`glance -adviser_only -syntax global_stats.syntax -j 5 -iterations 6 2>/dev/null`
where a syntax file would look like
PROCESS LOOP
{
print GBL_CPU_TOTAL_UTIL," ",GBL_CPU_USER_MODE_UTIL," ",GBL_CPU_SYS_MODE_UTIL
}
These metrics are for CPU, but you can choose other glance metrics as well. They would be found in
/opt/perf/paperdocs/mwa/C/metrics.pdf
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 07:33 PM
10-02-2003 07:33 PM
Re: How to check memory utilization in script
save the output of the top command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 08:46 PM
10-02-2003 08:46 PM
Re: How to check memory utilization in script
I'm attaching you a program.
Regards.