Sorry, you need to enable JavaScript to visit this website.

How to investigate physical memory use using Linux

Unsolved
3 posts / 0 new
fd9750's picture
fd9750
Junior(0)
How to investigate physical memory use using Linux

Hi,

I have been trying to work out which physical memory areas are being used by Linux on my microzed board from the command line.
Apparently "/Proc/iomem" should give a lot of useful info but I am unable to use it.
To illustrate i have included a few commands I have given and the responses:

zynq> uname -a
Linux 192.168.1.10 3.8.0-xilinx #2 SMP PREEMPT Thu Jun 13 10:25:52 PDT 2013 armv7l GNU/Linux
zynq> whoami
root
zynq> /proc/iomem
-/bin/ash: /proc/iomem: Permission denied
zynq>

The first command returns the Linux version, that is OK.
To verify the user login I have types "whoami" and get the response "root".
Then I have tried to use "/proc/iomem" and I get a "permission denied" response.

That is what gets me baffled: if the root user can't get the info, who does ?

hockeyman1972's picture
hockeyman1972
Junior(11)
It's a file

/proc/iomem refers to a file under Linux, rather than a command. If you would like to view the contents of the file, enter:

cat /proc/iomem

Ron

fd9750's picture
fd9750
Junior(0)
Thanks!

Thanks a lot Ron, it is obvious now but as long as you do not realize that it is a deep mystery.
Got all the info I need now.