[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 majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to