1837509 Members
3731 Online
110117 Solutions
New Discussion

Memory Management

 
Mohamed Abdelfattah
Occasional Contributor

Memory Management

Dear All

I would like to to minitor the available memory, used, total memory, number of slots, occupied slots, and the usage of the memory in my HPux 11.1i.

Regards
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Memory Management

Hi,
Please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=439070

To see the physical memory lay out:
STM. (Support tool manager)

echo "selclass qualifier memory;info;wait;infolog" | cstm

For memory size:
perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");
syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);
print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";'
or use SAM

Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
as your profiles shows you have never assigned points !
RAC_1
Honored Contributor

Re: Memory Management

For number of slots/occupied slots, use STM.

echo "selclass qualifier memory;info;wait;infolog"|cstm

For monitoring memory usage, you can use glance/vmstat/pv etc.

glance -m
vmstat 1 3
There is no substitute to HARDWORK
Jaime Bolanos Rojas.
Honored Contributor

Re: Memory Management

Mohamed,

There is also a very complete white paper on memory management:

http://docs.hp.com/en/1218/mem_mgt.html

Have fun!

Jaime.
Work hard when the need comes out.
Jaime Bolanos Rojas.
Honored Contributor

Re: Memory Management

Mohamed,

Also you have asign 0 points to 14 answers given to you: http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA1408789&forumId=1.

Remember to give points to people that take their time to answer your questions, it's just the polite thing to do in this forum.

Regards,

Jaime.
Work hard when the need comes out.