Strange behaviour of /dev/mem

Mark Bush Mark.Bush at prg.oxford.ac.uk
Wed Apr 3 01:00:00 AEST 1991


The manual page (SunOS4.1.1) for mem(4S) says:

  All Systems
     mem is a special file that  is  an  image  of  the  physical
     memory  of  the  computer.   It may be used, for example, to
     examine (and even to patch) the system.

On the Sun4 and Sun3 systems here, the result of `wc < /dev/mem' gives the
size of physical memory (sometimes a small number of whole kbytes short).
This is also true of SS2s.

However, on SLC, IPC and SS1+ machines here, the result is always exactly
4Meg regardless of the amount of physical memory the machines have!

I can't find anything in the manuals to explain this behaviour.  Anyone
able to explain why /dev/mem falls short on these machines?

Mark



More information about the Comp.sys.sun mailing list