1753687 Members
5363 Online
108799 Solutions
New Discussion юеВ

Re: Memory usage

 
SOLVED
Go to solution
Ian Jones_1
Advisor

Memory usage

HPUX11v3
swapinfo show 67% used by glance showing 100%?

Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8388608 39472 8349136 0% 0 - 1 /dev/vg00/lvol2
reserve - 8332084 -8332084
memory 7948284 5320496 2627788 67%

10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: Memory usage

Please provide the "swapinfo -tam" output.
Ian Jones_1
Advisor

Re: Memory usage

swapinfo -tam

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 39 8153 0% 0 - 1 /dev/vg00/lvol2
reserve - 8120 -8120
memory 7762 6132 1630 79%
total 15954 14291 1663 90% - 0 -
Dennis Handly
Acclaimed Contributor

Re: Memory usage

You are now using 79% of your pseudo-swap. I don't know what glance was measuring, memory usage?
Ian Jones_1
Advisor

Re: Memory usage

Now up to 97%, but i see the dev swap is still unused? should pages now be moved to dev swap?
Dennis Handly
Acclaimed Contributor

Re: Memory usage

>I see the dev swap is still unused? should pages now be moved to dev swap?

You have reserved the space but haven't used it yet. Only when your processes start using more of their reserved virtual memory will it be paged out.
Ian Jones_1
Advisor

Re: Memory usage

So adding more swap space will not help the fact memory is being used more than i had expected?
Dennis Handly
Acclaimed Contributor

Re: Memory usage

>So adding more swap space will not help the fact memory is being used more than I had expected?

Adding more swap will let more processes run. You have only used 38 Mb of swap so you probably aren't doing lots of page outs yet.

What were your expectations?
Ian Jones_1
Advisor

Re: Memory usage

I was not expecting all the memory to be used, but if it was then swap should be taking the load off memory.
is there a utility to see who has what memory allocated?
I'm getting errors from lots of processes i.e. /usr/bin/ps: out of memory
Dennis Handly
Acclaimed Contributor
Solution

Re: Memory usage

>I was not expecting all the memory to be used, but if it was then swap should be taking the load off memory.

You have reserved all of device and pseudo swap. This has to be increased.
You could also be using memory for the file cache, etc.

>is there a utility to see who has what memory allocated? I'm getting errors from lots of processes i.e. ps: out of memory

You can use ps(1) to see what processes are using. But you need more swap.
See these recent threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1411169
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1411227
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1411362