*BSD News Article 71002


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!corolla.OntheNet.com.au!news
From: Tony Griffiths <tonyg@onthenet.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: FreeBSD 2.? and Physical Memory > 64 mb
Date: Sat, 15 Jun 1996 16:13:26 +1000
Organization: Network Technologies P/L
Lines: 32
Message-ID: <31C25486.41C6@onthenet.com.au>
NNTP-Posting-Host: pulsar.nt.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha)

Apologies if this question has been answered before...

I have a P120 running FreeBSD 2.1 with 64 Mb of RAM and ~ 9 Gb disk.  It
is both a news server and an W3 caching proxy.

I tried to add another 64 Mb (very) early this morning and the BIOS was
happy, seeing the whole 128 Mb or RAM.  To my surprise, when I booted
FreeBSD it reported-

Jun 15 02:32:58 corolla /kernel: real memory  = 68091904 (66496K bytes)
Jun 15 02:32:58 corolla /kernel: avail memory = 65163264 (63636K bytes)

which is a "gain" of a whole 1 Mb or so over what I had before!!!

A quick look at the 2.2-SNAP (950501) code shows-

        /* Use BIOS values stored in RTC CMOS RAM, since probing
         * breaks certain 386 AT relics.
         */
        biosbasemem = rtcin(RTC_BASELO)+ (rtcin(RTC_BASEHI)<<8);
        biosextmem = rtcin(RTC_EXTLO)+ (rtcin(RTC_EXTHI)<<8);

so 'biosextmem' is limited to a 16-bit (65535) quantity and there is no
way FreeBSD is going to use all available RAM.

Now I know that the Walnut Creek ftp server is running FreeBSD with
512 Mb or RAM.  The question is, how do they do it?!

Do they have a "special" hack or is there something obvious I am
missing?

Tony