1745863 Members
4622 Online
108723 Solutions
New Discussion юеВ

Re: Processor and Ram

 
SOLVED
Go to solution
Tony500
Advisor

Processor and Ram

What commands would I use to see my processor size and amount of RAM?
Thanks
You can usually find me at www.constantreader.net
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Processor and Ram

Assuming this is 11,

getconf HW_CPU_SUPP_BITS

for memory

echo "phys_mem_pages/D" | adb -k /stand/vmunix /dev/kmem

to yield the number of 4KB pages of installed memory.
If it ain't broke, I can fix that.
Jeff Schussele
Honored Contributor

Re: Processor and Ram

Hi,

I'd use the sysinfo util. Will give this & much more. Highly recommended. Can be had at:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Tully
Honored Contributor

Re: Processor and Ram

To get the system CPU in MHz

echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
Anyone for a Mutiny ?
linuxfan
Honored Contributor

Re: Processor and Ram

You can compile this simple C program (source unknown)

========Cut Here=======
#include
#include
main()
{
struct pst_static buf;
pstat_getstatic(&buf,sizeof(struct pst_static),1,0);
printf("%ld MB\n", buf.physical_memory/256);
}
========Cut Here=======

save it as /tmp/memory.c
cc -o /tmp/ram /tmp/memory.c

now running /tmp/ram gives you the memory on the system.
This can be run by any user on the system. When using the adb method you need to be root.

Does anyone know of any other method to get the physical memory installed ?

STM(support tool manager) could be used as well but does anyone know any other method.

what is the purpose of /usr/sam/lbin/getmem ?

-Ramesh
They think they know but don't. At least I know I don't know - Socrates
Bjoern Myrland
Advisor
Solution

Re: Processor and Ram

Hello

You said you where looking for a command, but if thats not absolutely neccessary you can also use SAM.

In 'Performance Monitors' select 'System Properties'.

Gives a well arranged view of both cpu and memory, in addition to os and network.

cheers
Bjoern
T G Manikandan
Honored Contributor

Re: Processor and Ram

Also you can use

NUmber of processors

#cat /var/adm/syslog/syslog.log|grep processor

Amount of memory

#cat /var/adm/syslog/syslog.log|grep Physical|awk -F ":" '{print $5}'

Thanks