1820644 Members
1937 Online
109626 Solutions
New Discussion юеВ

Different MB memory used

 
alessandro_37
Advisor

Different MB memory used

Dear all,
just a questions:

I have an HP-UX 11.0 with 512 MB of memory.
#grep -i Physical /var/adm/syslog/syslog.log

Jan 27 00:35:21 hptest vmunix: Physical: 524288 Kbytes, lockable: 379144 Kby
tes, available: 439892 Kbytes

My questions is:
if i run the "TOP" command i can see:
Memory: 30460K (10552K) real, 133308K (17744K) virtual, 30240K free

But, where are the others MB of memory??
Total Memory System 512MB

real from "top" 30460/KB /1024) 30MB
virtual from "top"KB 130MB
free from "top" 30240KB 30MB
So I have only 190MB !!

total 512 - 190 = 322 MB
(where are these 322 MB!!)


Thanks in advance
Alex










5 REPLIES 5
KapilRaj
Honored Contributor

Re: Different MB memory used

What is ur patch level. top should have some patches to resolve this issue.

Regds,

Kaps
Nothing is impossible
Elmar P. Kolkman
Honored Contributor

Re: Different MB memory used

Also, top does show memomry excluding your kernel and buffer space. The default is a max bufferspace of 50% of your memory, leaving 256Mb for processes, of which in your case apperantly 66 Mb is reserved for the kernel...

You can get a better overview with glance.
Also, checkout your kernel parameter dbc_maxpct. You might lower it to about 25, meaning only 25% (max) will be used for buffer cache.
Every problem has at least one solution. Only some solutions are harder to find.
alessandro_37
Advisor

Re: Different MB memory used

How can i get the information about
total memory,
used memory,
available memory,

I have executed.
pstat(PSTAT_STATIC,&stat_buf,sizeof(stat_buf),0,0);
pstat(PSTAT_DYNAMIC,&dynam_buf,sizeof(dynam_buf),0,0);

printf(" Physical memory = %ld MB\n",stat_buf.physical_memory/256);
printf(" Virtual memory = %ld MB\n",dynam_buf.psd_vm/256);
printf("Active Virtual memory = %ld MB\n",dynam_buf.psd_avm/256);
printf(" Real memory = %ld MB\n",dynam_buf.psd_rm/256);
printf(" Active Real memory = %ld MB\n",dynam_buf.psd_arm/256);
printf(" Free Memory = %ld MB\n",dynam_buf.psd_free/256);

return; }


results:
-----------------------------------
Physical memory = 512 MB
Virtual memory = 128 MB
Active Virtual memory = 17 MB
Real memory = 29 MB ??? what is this??
Active Real memory = 8 MB
Free Memory = 27 MB very strange...
878447 exec()s on processor #0
total execs for the system were 878447


In total I have 512 MB of memory,
but how can i see the free and the used amount of memory in MB?


Sanjay_6
Honored Contributor

Re: Different MB memory used

Hi Alex,

Maybe these will answer some of your question,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068500228

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072760485

The itrc doc ids are A3940339 & RCMEMKBRC00005784

Here are some ways to find how much memory you have on the system,

1.) echo "selclass qualifier memory;info;wait;infolog" | cstm | grep 'Total Configured'
2.) grep Physical /var/adm/syslog/syslog.log

Hope this helps.

Regds
alessandro_37
Advisor

Re: Different MB memory used

Thanks Sunja

but then how can I verify the real memory available in the system and the real memory used in this moment in the system?

Alex