1835053 Members
2260 Online
110073 Solutions
New Discussion

Re: Show memory

 
SOLVED
Go to solution
Kevin_107
Regular Advisor

Show memory

How can I see how much memory my system has...also does anyone know the command for listing open files !?! Thanks
He who laughs last.....doesnt get the joke !!
10 REPLIES 10
Clemens van Everdingen
Honored Contributor
Solution

Re: Show memory

Hi,

dmesg is giving the memory size.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
john korterman
Honored Contributor

Re: Show memory

Hi,
try SAM ->Performance Monitors ->System Properties ->Memory

regards,
John K.
it would be nice if you always got a second chance
Kevin_107
Regular Advisor

Re: Show memory

I have issued a dmesg command and getting /home filesystem full....but /home is only at 43%..any ideas !?!
He who laughs last.....doesnt get the joke !!
Clemens van Everdingen
Honored Contributor

Re: Show memory

Kevin,

This is an old message ! No worries.
Happend once before.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Clemens van Everdingen
Honored Contributor

Re: Show memory

Hi,

I was looking if lsof was useful for listing open files, and yes it is.

see thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc8148f960573d611abdb0090277a778c,00.html

James R Ferguson explains this well.

Look foor lsof at:

http://hpux.cs.utah.edu/hppd/auto/summary_all.html

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Animesh Chakraborty
Honored Contributor

Re: Show memory

Hi,
Dmesg is showing old mesg.
Don't worry about the /home is full.It was full some time back.
to see memory
#cat /var/adm/syslog/syslog.log|grep Phy
#echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
Did you take a backup?
john korterman
Honored Contributor

Re: Show memory

Hi again,
the message in dmesg is probably old: once in the past /home was full. If your next question is how to get rid of this - hopefully old - message, I think the only answer is to reboot your computer.

regards,
John K.
it would be nice if you always got a second chance
Pete Randall
Outstanding Contributor

Re: Show memory

Hi,

Try this little script:


HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi


MYMEM=$(echo "${MYSYMBOL}/D" | adb $HPUX /dev/kmem | grep "${MYSYMBOL}: *." | awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM



Pete

Pete
T G Manikandan
Honored Contributor

Re: Show memory

echo phys_mem_pages/D | adb64 /stand/vmunix /dev/mem

or

cat /var/adm/syslog/syslog.log|grep Phy


to find out the amount of RAM.

To list out open files use
you can use lsof ot you can use glance to find that


Thanks
T G Manikandan
Honored Contributor

Re: Show memory

the output of
echo phys_mem_pages/D | adb64 /stand/vmunix /dev/mem will be in memory pages

so multiply that with
X 4096


THanks