1832348 Members
2518 Online
110041 Solutions
New Discussion

Re: memory calculations

 
suryanarayana_1
Occasional Advisor

memory calculations

Is there any simple script or utility in HP-UX to get peak and average memory utilization of the day.Write now iam using a script to collect free memory pages and calculating to get the above mentioned values.We don't have glance plus or measureware.This is the script iam using.

#!/sbin/sh
dd=`date +%b%d`
var1=`echo freemem/D|adb /stand/vmunix /dev/kmem|cut -f 2 -d :`
echo "The value of freemem is:"$var1>>/var/adm/memlog/freemem_$dd



Thank you.
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: memory calculations

Hi

There is a 60 trial of glance on your HP cds

Paula
If you can spell SysAdmin then you is one - anon
Paula J Frazer-Campbell
Honored Contributor

Re: memory calculations

HI

Also look at sar (Man sar)

Paula
If you can spell SysAdmin then you is one - anon
Zeev Schultz
Honored Contributor

Re: memory calculations

I guess its almost same value you receive from
vmstat:
free pages -
In my case:
freemem = 65278 (x4,as 4k is a page size)
free vmstat column = 66811...

So you can use vmstat 60 for 1 min basis.
Again,checking free pages list is very-very rough of performance.

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
suryanarayana_1
Occasional Advisor

Re: memory calculations

Thanks for your response.I forgot to mention,I kept that script in crontab and executing every minute.I would like to know what iam doing is write or wrong.
Bernhard Mueller
Honored Contributor

Re: memory calculations

Hi,

a little off track, but:
if you have one or more cronjobs running every single minute you surely blow up /var/adm/cron/log
You might consider a cronjob moving/zipping/emtpying this logfile.

Regards,
Bernhard