Solaris Memory commands

I am using Sun Solaris 8 and would like to know if there's a command that allows me to to find out the total memory used and what kernel size in memory is.

Also, would I be able to find out what size a semaphore is in memory?

Thanx in advance

It's OK, I got the information i needed using the sar command

'ipcs' will probably give you better semaphore and shared memory info then sar.

a usefull command is prstat

prstat -a -S rss -n `ps -ef |grep wc -l` 300 1

see: man prstat

To look into the kernel see adb:

adb -k /dev/ksyms /dev/mem

With sysdef you can take a look to loadable modules.

With swap -s you can see swap information

Regards. Hugo.