From owner-freebsd-current Tue Apr 6 6:56:29 1999 Delivered-To: freebsd-current@freebsd.org Received: from ren.detir.qld.gov.au (ns.detir.qld.gov.au [203.46.81.66]) by hub.freebsd.org (Postfix) with ESMTP id EBA11156E7 for ; Tue, 6 Apr 1999 06:56:23 -0700 (PDT) (envelope-from syssgm@detir.qld.gov.au) Received: by ren.detir.qld.gov.au; id XAA27397; Tue, 6 Apr 1999 23:58:07 +1000 (EST) Received: from ogre.detir.qld.gov.au(167.123.8.3) by ren.detir.qld.gov.au via smap (4.1) id xma027389; Tue, 6 Apr 99 23:57:55 +1000 Received: from atlas.detir.qld.gov.au (atlas.detir.qld.gov.au [167.123.8.9]) by ogre.detir.qld.gov.au (8.8.8/8.8.7) with ESMTP id XAA24362 for ; Tue, 6 Apr 1999 23:53:58 +1000 (EST) Received: from nymph.detir.qld.gov.au (nymph.detir.qld.gov.au [167.123.10.10]) by atlas.detir.qld.gov.au (8.8.5/8.8.5) with ESMTP id XAA25053 for ; Tue, 6 Apr 1999 23:53:58 +1000 (EST) Received: from nymph.detir.qld.gov.au (localhost.detir.qld.gov.au [127.0.0.1]) by nymph.detir.qld.gov.au (8.8.8/8.8.7) with ESMTP id XAA19881; Tue, 6 Apr 1999 23:53:56 +1000 (EST) (envelope-from syssgm@nymph.detir.qld.gov.au) Message-Id: <199904061353.XAA19881@nymph.detir.qld.gov.au> To: freebsd-current@freebsd.org Cc: syssgm@detir.qld.gov.au Subject: Slightly wonky auto memory probe + fix Date: Tue, 06 Apr 1999 23:53:56 +1000 From: Stephen McKay Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [I posted this to -current because the technology is the same in -current even though this box will never run -current. Bear with me.] We've just got a new Dell PowerEdge (very nice) with 512MB of ram. By default, 3.1-stable sees only 64MB. Looking carefully, it sees 8KB less than 64MB, so it doesn't probe for the rest. I applied this patch, which fiddles the "Hmm got 64MB so probe for the rest" heuristic. With this patch, it found all 512MB, to the exact byte. Unfortunately, it kinda changes it from a "heuristic" to a "hack". :-( --- machdep.c Fri Feb 19 15:31:36 1999 +++ /tmp/sgm/machdep.c Tue Apr 6 23:40:36 1999 @@ -1428,7 +1428,7 @@ * the MAXMEM option or the npx0 "msize", then don't do the speculative * memory probe. */ - if (Maxmem >= 0x4000) + if (Maxmem >= 0x3f00) speculative_mprobe = TRUE; else speculative_mprobe = FALSE; @@ -1538,7 +1538,7 @@ if (phys_avail[pa_indx] == target_page) { phys_avail[pa_indx] += PAGE_SIZE; if (speculative_mprobe == TRUE && - phys_avail[pa_indx] >= (64*1024*1024)) + phys_avail[pa_indx] >= (63*1024*1024)) Maxmem++; } else { pa_indx++; Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message