1826658 Members
2567 Online
109695 Solutions
New Discussion

Re: memory

 
Keith Pothoven
New Member

memory

I have an HPUX server that has 8GB of RAM.

$ grep Phys /var/adm/syslog/syslog.log
Aug 16 19:26:56 adminnew vmunix: Physical: 8376368 Kbytes, lockable: 6167732 Kbytes, available: 7162296 Kbytes

I am concerned when I look at the output from top:
Memory: 2537596K (1555608K) real, 11166040K (9579120K) virtual, 87508K free Page# 1/41

Is this only showing 4GB of physical memory, or am I looking at this wrong?
14 REPLIES 14
Andres_13
Respected Contributor

Re: memory

Try:

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 20480 784 19696 4% 0 - 1 /dev/vg00/lvol2
dev 20480 784 19696 4% 0 - 1 /dev/vg01/lvol1
dev 20480 784 19696 4% 0 - 1 /dev/vg01/lvol2
dev 20480 788 19692 4% 0 - 1 /dev/vg01/lvol3
dev 32768 787 31973 2% 0 - 1 /dev/vg02/lvol1
dev 12288 785 11495 6% 0 - 1 /dev/vg02/lvol2
dev 7168 783 6377 11% 0 - 1 /dev/vg02/lvol3
dev 6144 785 5355 13% 0 - 1 /dev/vg02/lvol4
reserve - 44800 -44800
memory 45647 21248 24399 47%
total 185935 72328 113579 39% - 0 -

Regards!
Tim Nelson
Honored Contributor

Re: memory

I believe top only shows what is active, same with vmstat.

If you have it, glance is a much better tool.

From a memory config standpoint, the only global item that would restrict amount of usable memory would be swap space. check with swapinfo -tam



Keith Pothoven
New Member

Re: memory

When you say that it is only showing "active" memory, what is that opposed to just the physical memory? I see that the "free" number is getting very small sometimes, but I do not ever see any paging.
Tim Nelson
Honored Contributor

Re: memory

I could be inaccurate on the active vs physical.(was hoping someone would chime in to correct me )

Eitherway.. Post the output for swapinfo -tam

Tim Nelson
Honored Contributor

Re: memory

Other post responses confirm that top is only displaying what is currently actively used. Not the total physical memory on the server.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1158571

Court Campbell
Honored Contributor

Re: memory

According to the output from top it looks like you have 12GB of ram. So I will assume you have 8GB of ran and 4Gb of swap.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Keith Pothoven
New Member

Re: memory

# swapinfo -tam

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 338 3758 8% 0 - 1 /dev/vg00/lvol2
dev 12000 335 11665 3% 0 - 1 /dev/vg00/Swap2
reserve - 3840 -3840
memory 8180 2501 5679 31%
total 24276 7014 17262 29% - 0 -
Court Campbell
Honored Contributor

Re: memory

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=245309
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: memory

Per the man page:

Memory Data
Includes virtual and real memory in use (with the amount of
memory considered "active" in parentheses) and the amount of
free memory.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Tim Nelson
Honored Contributor

Re: memory

Things look good to me...

If you have time. Download the trial of Glance. You will like it...

Tim Nelson
Honored Contributor

Re: memory

Let me completely rephrase my last post ( geez it must be Friday ).

1) yes all 8GB is seen by the system ( this is kinda what I meant in the last thread to answer your question )

2) From the swapinfo that you posted. At some point in the past there have been a few processes swapped out to disk, indicated by the MB used for each DEV.

Now this does not mean you are currently experiencing memory pressure, just that at one time you were. With 31% in psuedo swap I would say at the time of this snapshot your memory pressure is lower.

In order to review that, a duration of vmstat "po" column needs to be gathered and reviewed. ( but this was not your origional question so we'll leave for a different topic).


Asif Sharif
Honored Contributor

Re: memory


Using SAM
sam --> Performance Monitors --> System Properties --> Memory


There is script for check memory.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1219472123042+28353475&threadId=946701

Try the following command and the output will give you all the hardware information about the Unix box.

echo "map selall info;wait infolog" | cstm > /tmp/cstm.txt

Regards,
Asif Sharif
Regards,
Asif Sharif
Deepak Kr
Respected Contributor

Re: memory

As per swapinfo:
16GB swap is configured here.

See attched script to find physical memory installed.
its for hp-ux 11i
"There is always some scope for improvement"
SKR_1
Trusted Contributor

Re: memory

1. dmesg | grep physical
2. swapinfo -tam
3. SAM

Anyone of the above can be checked to find physical memory.

Thanks

SKR