1834425 Members
1924 Online
110067 Solutions
New Discussion

mem usage on hp systems

 
Karl oliver
Frequent Advisor

mem usage on hp systems

I often have the debate on mem uage on hp systems. I wish to know avail and used mem on system. People tell me this is not important that amount of paging is- true of course. But I maintain that if you only have 10meg of mem avail on sys then you are going to be paging.
For our informix dbs we make the shared mem resident so it wont page so amount of mem avail on sys is critical when setting up dbs to run efficently.
Also if you are not monitoring amount of mem available on sys how do you know if you have installed an inefficent software release. We just did this . Our mem usage increase by 1 gig overnight- how do I know - by monitoring mem usage !
Any comments from the experts out there
11 REPLIES 11
Arunvijai_4
Honored Contributor

Re: mem usage on hp systems

You can use #top -s1 to find out memory usage.
or,
UNIX95= ps -e -o vsz,uid,ruser,args | sort -rn

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Lee Harris_5
Valued Contributor

Re: mem usage on hp systems

If you have glance installed: glance -m

HTH
Muthukumar_5
Honored Contributor

Re: mem usage on hp systems

Check the swap size and memory. You've to configure swap memory related with physical memory.

# swapinfo -tam

You can put a script like,

#!/bin/ksh
# memusage.ksh
while [ 1 ]
do
date >> /tmp/memory.log
UNIX95= ps -ef -o sz= -o vsz= -o pid -o comm | sort -nkr >> /tmp/memory.log
# five minutes sleep
sleep 300
done

# end

# chmod u+x memusage.ksh
# ./memusage.ksh 2>/tmp/memory.err &

Check with /tmp/memory.log and /tmp/memory.err for information and error(s) if any.

hth.

Easy to suggest when don't know about the problem!
VEL_1
Valued Contributor

Re: mem usage on hp systems

Borislav Perkov
Respected Contributor

Re: mem usage on hp systems

Hi Karl,

here are two scripts one is for top memory use and other is for claimed memory used.

Regards,
Borislav
Borislav Perkov
Respected Contributor

Re: mem usage on hp systems

here is memtop.sh
Kent Ostby
Honored Contributor

Re: mem usage on hp systems

Karl -- When it comes to memory usage and swapping, I find that the two most common errors are:

1) Leaving dbc_max_pct, nbuf, and bufpages at 0 on large memory systems. That leaves (be default) the dbc_max_pct set to 50 so you have 1 gig of a 2 gig system going to dbc. I suggest a dbc_max_pct that uses at most 750 to 800 MB.

2) Not having enough device swap space. HP still recommends in general that you have 2xRAM worth of device swap (i.e. 4 GB of device swap for 2 GB of RAM).

Monitoring it is essential of course regardless of which of these tools you use.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Karl oliver
Frequent Advisor

Re: mem usage on hp systems

Kent
is this still true
HP still recommends in general that you have 2xRAM worth of device swap (i.e. 4 GB of device swap for 2 GB of RAM).


We have 16 gig mem but dont have 32 gig swap
.
below shows mem as being used for swap so at what stage do you worry about swap space below show no swap disk space. - agrees with sam - but not swapinfo !
have found prog memdetail that shows following
Memory Stat total used avail %used
physical 16382.0 9294.9 7087.1 57%
active virtual 9280.9 4342.1 4938.8 47%
active real 8826.0 3948.3 4877.6 45%
memory swap 13240.2 5313.8 7926.4 40%
device swap 8192.0 8189.3 2.7 100%
Geoff Wild
Honored Contributor

Re: mem usage on hp systems

Your device swap is full - you should increase it - to atleast the same size as your ram...

This does not mean you are "swapping" in the traditional sense - it is just a place holder for what is already in memory...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Karl oliver
Frequent Advisor

Re: mem usage on hp systems

Geoff I dont think system is out of swap space or everyhing would have died !
As i showed above mem info line below shows memory is being used for swap is the correct ?
Memory Stat total used avail %usedmemory swap 13240.2 5313.8 7926.4 40%

this is governed by kernal param swapmem_on
Some say have it on others say have it off !
what do the experts say ?

the HP-UX Performance Cookbook paper by Stephen Ciullo and Doug GrumannRev.
recommends having pseudo swap off
Karl oliver
Frequent Advisor

Re: mem usage on hp systems

Does not seem to be anyone out there that really knows hp mem usage in detail. No one mentioned the
kernal param swapmem_on -pseudo-swap and how it works. with this set uou can have disk swap all used and still work