Re: FreeBSD reports incorrect amount of memory

2011-06-21 Thread perryh
"Dieter BSD"  wrote:

> Machine has been running FreeBSD/amd64 with 2 GiB of memory.
> I just installed a 2nd 2 GiB of memory for 4 GiB total.
> FreeBSD thinks it now has 32 GiB ???
>
> FreeBSD 8.2-RELEASE #22: Tue Jun ??7 12:37:21 PDT 2011
> CPU: AMD Athlon(tm) 64 Processor 3000+ (1808.34-MHz K8-class CPU)
> real memory ??= 34359738368 (32768 MB)
> avail memory = 3614437376 (3446 MB)

It seems to be only the "real memory" value, and not the "avail
memory", that's out of touch with reality.

Wild guess dept:  Your new 2 GiB has gotten mapped as [30,32) GiB
rather than as [2,4) GiB, and "real memory" is reporting the first
unpopulated address above the highest installed range.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD reports incorrect amount of memory

2011-06-21 Thread Dieter BSD
# dmidecode 2.11
SMBIOS 2.2 present.

Handle 0x0005, DMI type 5, 24 bytes
Memory Controller Information
        Error Detecting Method: 64-bit ECC
        Error Correcting Capabilities:
                None
        Supported Interleave: One-way Interleave
        Current Interleave: One-way Interleave
        Maximum Memory Module Size: 4096 MB
        Maximum Total Memory Size: 16384 MB
        Supported Speeds:
                70 ns
                60 ns
                50 ns
        Supported Memory Types:
                Standard
                DIMM
        Memory Module Voltage: 2.9 V
        Associated Memory Slots: 4
                0x0006
                0x0007
                0x0008
                0x0009
        Enabled Error Correcting Capabilities: None

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A0
        Bank Connections: 0 1
        Current Speed: 5 ns
        Type: Unknown EDO
        Installed Size: 8192 MB (Double-bank Connection)
        Enabled Size: 8192 MB (Double-bank Connection)
        Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A1
        Bank Connections: 2 3
        Current Speed: 5 ns
        Type: Unknown EDO
        Installed Size: 8192 MB (Double-bank Connection)
        Enabled Size: 8192 MB (Double-bank Connection)
        Error Status: OK

Handle 0x0008, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A2
        Bank Connections: 4 5
        Current Speed: 5 ns
        Type: Unknown EDO
        Installed Size: 8192 MB (Double-bank Connection)
        Enabled Size: 8192 MB (Double-bank Connection)
        Error Status: OK

Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A3
        Bank Connections: 6 7
        Current Speed: 5 ns
        Type: Unknown EDO
        Installed Size: 8192 MB (Double-bank Connection)
        Enabled Size: 8192 MB (Double-bank Connection)
        Error Status: OK

Handle 0x001B, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: None
        Maximum Capacity: 16 GB
        Error Information Handle: Not Provided
        Number Of Devices: 4

Handle 0x001C, DMI type 17, 21 bytes
Memory Device
        Array Handle: 0x001B
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: DIMM
        Set: None
        Locator: A0
        Bank Locator: Bank0/1
        Type: Unknown
        Type Detail: None

Handle 0x001D, DMI type 17, 21 bytes
Memory Device
        Array Handle: 0x001B
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: DIMM
        Set: None
        Locator: A1
        Bank Locator: Bank2/3
        Type: Unknown
        Type Detail: None

Handle 0x001E, DMI type 17, 21 bytes
Memory Device
        Array Handle: 0x001B
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: DIMM
        Set: None
        Locator: A2
        Bank Locator: Bank4/5
        Type: Unknown
        Type Detail: None

Handle 0x001F, DMI type 17, 21 bytes
Memory Device
        Array Handle: 0x001B
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: DIMM
        Set: None
        Locator: A3
        Bank Locator: Bank6/7
        Type: Unknown
        Type Detail: None

Assuming that dmidecode isn't buggy, the firmware is internally inconsistant,
and very wrong.  Not a surprise, the firmware is crap.  Surely the kernel
doesn't just believe whatever random garbage the firmware says?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD reports incorrect amount of memory

2011-06-21 Thread Brian Seklecki (Mobile)

trying to use memory that isn't there? How do I debug/fix this?


Just curious, what was memtest86+ report?

Can you install dmidecode(8) from /usr/ports/sysutils/dmidecode

I'd be very suprised if GCC started misbehaving during compile

~BAS


Didn't find anything with google.
___

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


FreeBSD reports incorrect amount of memory

2011-06-21 Thread Dieter BSD
Machine has been running FreeBSD/amd64 with 2 GiB of memory.
I just installed a 2nd 2 GiB of memory for 4 GiB total.
FreeBSD thinks it now has 32 GiB ???

FreeBSD 8.2-RELEASE #22: Tue Jun  7 12:37:21 PDT 2011
CPU: AMD Athlon(tm) 64 Processor 3000+ (1808.34-MHz K8-class CPU)
real memory  = 34359738368 (32768 MB)
avail memory = 3614437376 (3446 MB)

vm.kmem_map_free: 3629518848
vm.kmem_map_size: 9322496
vm.kmem_size_scale: 1
vm.kmem_size_max: 329853485875
vm.kmem_size_min: 0
vm.kmem_size: 3638841344
hw.physmem: 3749433344
hw.usermem: 3095994368
hw.realmem: 3758030848

    1 users    Load  0.00  0.00  0.00                  Jun 21 13:54

Mem:KB    REAL            VIRTUAL                       VN PAGER   SWAP PAGER
        Tot   Share      Tot    Share    Free           in   out     in   out
Act  272856   22968  1951804    52608  134640  count
All  335752   24556 1075766k    65644          pages
Proc:                                                            Interrupts
  r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Flt        cow    5113 total
  1          76      8119   18 1754 3115  120             zfod        atkbd0 1
                                                          ozfod       uart0 irq4
 3.0%Sys   0.2%Intr  0.0%User  0.0%Nice 96.8%Idle        %ozfod    16 ohci1 siis
|    |    |    |    |    |    |    |    |    |    |       daefr     5 ed0 ohci2+
==                                                        prcfr       fwohci0++
                                        13 dtbuf          totfr       fwohci1 bg
Namei     Name-cache   Dir-cache    135416 desvn          react       ohci0+ 21
   Calls    hits   %    hits   %      2926 numvn          pdwak       ehci0+ 22
                                      1995 frevn          pdpgs  3094 nfe0 irq23
                                                          intrn  1998 cpu0: time
Disks   ad4   ad6   ad8  ad10  ada0  ada1  ada2    638292 wire
KB/t   0.00  0.00  0.00  0.00  0.00  0.00  0.00     97364 act
tps       0     0     0     0     0     0     0   2682588 inact
MB/s   0.00  0.00  0.00  0.00  0.00  0.00  0.00     77168 cache
%busy     0     0     0     0     0     0     0     57472 free
                                                   376080 buf

As far as I know, the mainboard (Tyan Tomcat k8e 2865) only
supports 4 GiB. Is this going to cause some problem with FreeBSD
trying to use memory that isn't there? How do I debug/fix this?
Didn't find anything with google.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"