Path: utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: iapsd!hopi!glenn@uunet.uu.net (Glenn Herteg) Newsgroups: comp.sys.sun Subject: Re: Strange behaviour of /dev/mem Keywords: Miscellaneous Message-ID: <2592@brchh104.bnr.ca> Date: 24 Apr 91 00:00:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 12 Approved: Sun-Spots@rice.edu X-Original-Date: Fri, 19 Apr 91 22:37:32 PDT X-Refs: Original: v10n75 X-Sun-Spots-Digest: Volume 10, Issue 86, message 10 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu | However, on SLC, IPC and SS1+ machines here, the result is always exactly | 4Meg regardless of the amount of physical memory the machines have! RTFM, *carefully*!: mem is a special file that is an *image of the physical memory* of the computer. Some machines may not have contiguous physical memory, to allow for different sizes of SIMMS to be plugged in. Probably there is a "hole" after the first 4 Meg, and reading /dev/mem in a continuous stream finds an apparent EOF when it tries to read a hole.