1834163 Members
2586 Online
110064 Solutions
New Discussion

Re: diagnostics

 
SOLVED
Go to solution
Jeff Hagstrom
Regular Advisor

diagnostics

I am trying to figure my physical memory and swap space setup on my machine. When I entered /usr/sbin/dmesg | grep -i Physical I got a message "CAN'T READ KERNAL MEMORY". What does this message mean? and how can I figure out how much memory the machine has?
7 REPLIES 7
Alex Glennie
Honored Contributor

Re: diagnostics

You need to be root user for dmesg to run, that's the most likely cause of the error .
Sachin Patel
Honored Contributor

Re: diagnostics

Hi Jeff,
use swapinfo -a for your swap sape information.
use folloing for your physical memory
echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem

Sachin
Is photography a hobby or another way to spend $
nancy rippey
Trusted Contributor

Re: diagnostics

If you have stm try
echo "selclass qualifier memory; info; wait; infolog" | cstm > /tmp/meminfo

nancy
nrip
linuxfan
Honored Contributor

Re: diagnostics

Hi Jeff,

On a 10.X machine you could run
echo physmem/D | adb -k /stand/vmunix /dev/kmem

On a 11.X machine,
echo phys_mem_pages/D | adb -k /stand/vmunix /dev/kmem

Or you could run "/usr/sam/lbin/getmem" (returns the amount of memory in MB)

You need to be root to run dmesg or the above command

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Deshpande Prashant
Honored Contributor

Re: diagnostics

HI
If you have glance software installed, Press m (memory) in main menu to get details about total memory and memory in use.

You also will be able to use cstm to find out details about physical memory installed in your system.
#cstm
cstm>map
cstm>sel dev
cstm>il (This will show you details of memory installed).

Thanks.
Prashant Deshpande.
Take it as it comes.
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: diagnostics

Hi Jeff


To know the Physical memory you have the following ways

1. SAM-->Performance Monitor ---> System Properties --> Memory.

2. Glance

3. echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem

4. dmesg | grep Phy ( incase dmesg doent work then either you dont it as a root or the dmesg is not working properly )

You can also try

cat /var/adm/syslog/OLDsyslog.log | grep Phy incase your dmesg doesnt work.


Manoj Srivastava
Sundar_7
Honored Contributor

Re: diagnostics

Hi,

Are U running as a normal user..

dmesg has to read from /dev/kmem which might not be readable by a normal user..

This is just a guess as right now I cannot go for checking it..

Make sure U are running as root..

But if U only need to find out the amount of memory..

dmesg cannot always help it out as it can be overrided by further kernel messages..

so go for

# /usr/sam/lib/getmem

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



Learn What to do ,How to do and more importantly When to do ?