Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-21 Thread Andrey Fesenko
On Sun, Jun 20, 2010 at 12:26 AM, Andriy Gapon a...@icyb.net.ua wrote:
 on 19/06/2010 20:16 Andreas Tobler said the following:
 Hi all,

 I got my hands on a t60 with 4GB of RAM (BIOS displays it)

 Yes, PAE is for what we call in FreeBSD land i386.
 x86 we use for both i386 and amd64.

 Now, to the rest.
 I recently investigated this topic myself, so I can share what I learned.
 The first thing you'd want to have is SMAP information.
 You can get it at the loader prompt with 'smap' command.
 It is also reported by kernel during a verbose boot, but it is only printed to
 console; it is not saved to dmesg, because it is printed before msgbuf is 
 created.
...
 That's about all.
 I am curious as to what you would discover about your system - please share 
 with us.

 --
 Andriy Gapon


Hello

My notebook Toshiba U200-10H
Install 4Gb(2+2) bios detect 3,... not all

SMAP
tipe=01 base= len=0009fc00
tipe=02 base=0009fc00 len=0400
tipe=02 base=000e len=ee00
tipe=04 base=000eee00 len=0200
tipe=02 base=000ef000 len=00011000
tipe=01 base=0010 len=cf69
tipe=02 base=cf79 len=0001
tipe=02 base=cf7a len=0006
tipe=02 base=cf80 len=0080
tipe=02 base=fec0 len=00018000
tipe=02 base=fec2 len=8000
tipe=02 base=fed0 len=0400
tipe=02 base=fed14000 len=6000
tipe=02 base=fed1c000 len=00074000
tipe=02 base=feda len=0002
tipe=02 base=fee0 len=1000
tipe=02 base=ffb0 len=0010
tipe=02 base=ffe0 len=0020

FreeBSD 9.0-CURRENT #1 r209362: Sun Jun 20 21:44:27 MSD 2010
and...@my_book:/usr/obj/home/andrey/src_head/sys/MY_BOOK amd64
CPU: Intel(R) Core(TM)2 CPU T5600  @ 1.83GHz (1828.76-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x6f2  Family = 6  Model = f  Stepping = 2
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
real memory  = 4294967296 (4096 MB)
Physical memory chunk(s):
0x1000 - 0x0009bfff, 634880 bytes (155 pages)
0x0126a000 - 0xc95dafff, 3359051776 bytes (820081 pages)
avail memory = 3339898880 (3185 MB)

full dmesg+debug http://www.suahbsd.org/dmesg.boot.dbg
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-21 Thread Andriy Gapon
on 21/06/2010 11:41 Andrey Fesenko said the following:
 My notebook Toshiba U200-10H
 Install 4Gb(2+2) bios detect 3,... not all
 
 SMAP
 tipe=01 base= len=0009fc00
 tipe=02 base=0009fc00 len=0400
 tipe=02 base=000e len=ee00
 tipe=04 base=000eee00 len=0200
 tipe=02 base=000ef000 len=00011000
 tipe=01 base=0010 len=cf69
 tipe=02 base=cf79 len=0001
 tipe=02 base=cf7a len=0006
 tipe=02 base=cf80 len=0080
 tipe=02 base=fec0 len=00018000
 tipe=02 base=fec2 len=8000
 tipe=02 base=fed0 len=0400
 tipe=02 base=fed14000 len=6000
 tipe=02 base=fed1c000 len=00074000
 tipe=02 base=feda len=0002
 tipe=02 base=fee0 len=1000
 tipe=02 base=ffb0 len=0010
 tipe=02 base=ffe0 len=0020

Looks like your hardware+BIOS can/does not do memory hoisting.
786MB of your RAM can not be used.

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


Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-21 Thread Andreas Tobler

On 19.06.10 22:26, Andriy Gapon wrote:

on 19/06/2010 20:16 Andreas Tobler said the following:

Hi all,

I got my hands on a t60 with 4GB of RAM (BIOS displays it)

And I installed 8.1-RC1 on it:

FreeBSD 8.1-RC1 #0: Mon Jun 14 13:40:28 UTC 2010
 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU T5600  @ 1.83GHz (1828.76-MHz
K8-class CPU)
   Origin = GenuineIntel  Id = 0x6f6  Family = 6  Model = f  Stepping = 6

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE

   Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
   AMD Features=0x20100800SYSCALL,NX,LM
   AMD Features2=0x1LAHF
   TSC: P-state invariant
real memory  = 4294967296 (4096 MB)
avail memory = 3092344832 (2949 MB)
ACPI APIC Table:LENOVO TP-79
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1



Do I need to configure something special to get the full 4GB of memory?

I only found the PAE hint, but this is for x86 machines, right?


Yes, PAE is for what we call in FreeBSD land i386.
x86 we use for both i386 and amd64.

Now, to the rest.
I recently investigated this topic myself, so I can share what I learned.
The first thing you'd want to have is SMAP information.
You can get it at the loader prompt with 'smap' command.
It is also reported by kernel during a verbose boot, but it is only printed to
console; it is not saved to dmesg, because it is printed before msgbuf is 
created.

Example of how SMAP information looks:
SMAP type=01 base= end=0009f800
SMAP type=02 base=000f end=0010
SMAP type=02 base=fec0 end=0001
SMAP type=02 base=e000 end=f000
SMAP type=02 base=0009f800 end=000a
SMAP type=02 base=bfdf end=bfe0
SMAP type=01 base=0010 end=bfde
SMAP type=03 base=bfde3000 end=bfdf
SMAP type=04 base=bfde end=bfde3000
SMAP type=01 base=0001 end=00013000

Type 1 ('01') is memory ranges free for OS use.
Note that the ranges could be unsorted.

SMAP would give you an idea what is free for OS use and what is taken away for
BIOS and hardware needs.  Also note that what's reported as avail memory is
smaller than sum of sizes of all unreserved regions.  Some space is taken away
by FreeBSD virtual memory code to store some core page/memory management
information (~3%).  Memory used by kernel and preloaded modules is also not
included into avail memory.

If you discover that your system reserves, in your opinion, too much memory,
then consider the following things.
1. Some memory might be allocated as video adapter's aperture and/or video
adapter's memory in case of some integrated graphics solutions.
2. Some memory addresses below 4GB are used for MMIO (memory mapped
input/output) - accessing those addresses is actually communicating with some
hardware rather than accessing DRAM.  Some hardware+firmware combinations can
hoist (or remap) DRAM that corresponds to such an address range to a different
address range above 4G.  If you examine last line of my sample SMAP output, then
you'll see that there is 756MB of type 01 RAM above 4GB and that machine has
exactly 4GB of DRAM installed - this is MMIO range 0xd000-0x1
hoisted to 0x1-0x13000.
If your hardware doesn't support that option, then too bad - the memory is
overshadowed by MMIO and is effectively lost.
Sometimes hoisting option (under whatever name) has to be explicitly set in BIOS
configuration.


Thanks for the explanation!


That's about all.
I am curious as to what you would discover about your system - please share 
with us.


I'd like to, but how do I get this information out of my box? There is 
no serial line. The only way I know is getting a screen shot. Do you 
know another way?
Unfortunately I do not have a docking station, there I guess I'd have a 
serial line.


Also, sorry for the delay, I had to upgrade the bios in hope that the 
em0 is recognized properly, but no chance:


em0: Intel(R) PRO/1000 Network Connection 7.0.5 port 0x3000-0x301f mem 
0xee00-0xee01 irq 16 at device 0.0 on pci2

em0: attempting to allocate 1 MSI vectors (1 supported)
msi: routing MSI IRQ 256 to local APIC 0 vector 49
em0: using IRQ 256 for MSI
em0: Using MSI interrupt
em0: The EEPROM Checksum Is Not Valid

Thanks again!
Andreas


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


Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-21 Thread Andriy Gapon
on 21/06/2010 22:19 Andreas Tobler said the following:
 On 19.06.10 22:26, Andriy Gapon wrote:
 I'd like to, but how do I get this information out of my box? There is
 no serial line. The only way I know is getting a screen shot. Do you
 know another way?
 Unfortunately I do not have a docking station, there I guess I'd have a
 serial line.

Screenshot is fine by today's standards :-) Especially if you can OCR it by 
hand.

Or large enough (very large!) SC_HISTORY_SIZE in kernel options (start with
1000) and moused.

Or a tiny kernel module that I wrote that can reproduce SMAP info upon loading:
http://people.freebsd.org/~avg/smap.diff
Comes with no guarantee or warranty :)

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


Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-21 Thread Andreas Tobler

On 21.06.10 21:35, Andriy Gapon wrote:

on 21/06/2010 22:19 Andreas Tobler said the following:

On 19.06.10 22:26, Andriy Gapon wrote:
I'd like to, but how do I get this information out of my box? There is
no serial line. The only way I know is getting a screen shot. Do you
know another way?
Unfortunately I do not have a docking station, there I guess I'd have a
serial line.


Screenshot is fine by today's standards :-) Especially if you can OCR it by 
hand.


It will end up in a png :)


Or large enough (very large!) SC_HISTORY_SIZE in kernel options (start with
1000) and moused.


I'll try that.


Or a tiny kernel module that I wrote that can reproduce SMAP info upon loading:
http://people.freebsd.org/~avg/smap.diff
Comes with no guarantee or warranty :)



This one too, I'll try it. But nevertheless my interest in this piece of 
HW has dropped.


I got this t60 because the display is broken, someone broke the glass.
This is no problem so far, but the issue that I can only access it via 
cardbus netif is boring me.


Thanks for your hints!
Andreas
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-19 Thread Andrey Fesenko
On Sat, Jun 19, 2010 at 9:16 PM, Andreas Tobler andreast-l...@fgznet.ch wrote:
 Hi all,

 I got my hands on a t60 with 4GB of RAM (BIOS displays it)

 And I installed 8.1-RC1 on it:

 FreeBSD 8.1-RC1 #0: Mon Jun 14 13:40:28 UTC 2010
    r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz (1828.76-MHz K8-class
 CPU)
  Origin = GenuineIntel  Id = 0x6f6  Family = 6  Model = f  Stepping = 6

 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
 real memory  = 4294967296 (4096 MB)
 avail memory = 3092344832 (2949 MB)
 ACPI APIC Table: LENOVO TP-79   
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 2 core(s)
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1



 Do I need to configure something special to get the full 4GB of memory?

 I only found the PAE hint, but this is for x86 machines, right?

I think this BIOS specific, may be video rezerv


FreeBSD 9.0-CURRENT #0 r208284: Wed May 19 09:34:15 MSD 2010
and...@my_book:/home/andrey/obj/obj/home/andrey/src_head/sys/MY_BOOK amd64
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU T5600  @ 1.83GHz (1828.77-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x6f2  Family = 6  Model = f  Stepping = 2
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
real memory  = 4294967296 (4096 MB)
avail memory = 3339923456 (3185 MB)
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-19 Thread Andreas Tobler

On 19.06.10 19:27, Andrey Fesenko wrote:

On Sat, Jun 19, 2010 at 9:16 PM, Andreas Toblerandreast-l...@fgznet.ch  wrote:

Hi all,

I got my hands on a t60 with 4GB of RAM (BIOS displays it)

And I installed 8.1-RC1 on it:

FreeBSD 8.1-RC1 #0: Mon Jun 14 13:40:28 UTC 2010
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU T5600  @ 1.83GHz (1828.76-MHz K8-class
CPU)
  Origin = GenuineIntel  Id = 0x6f6  Family = 6  Model = f  Stepping = 6

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
real memory  = 4294967296 (4096 MB)
avail memory = 3092344832 (2949 MB)
ACPI APIC Table:LENOVO TP-79
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1



Do I need to configure something special to get the full 4GB of memory?

I only found the PAE hint, but this is for x86 machines, right?


I think this BIOS specific, may be video rezerv


FreeBSD 9.0-CURRENT #0 r208284: Wed May 19 09:34:15 MSD 2010
 and...@my_book:/home/andrey/obj/obj/home/andrey/src_head/sys/MY_BOOK amd64
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU T5600  @ 1.83GHz (1828.77-MHz K8-class CPU)
   Origin = GenuineIntel  Id = 0x6f2  Family = 6  Model = f  Stepping = 2
   
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
   AMD Features=0x20100800SYSCALL,NX,LM
   AMD Features2=0x1LAHF
   TSC: P-state invariant
real memory  = 4294967296 (4096 MB)
avail memory = 3339923456 (3185 MB)


Thanks. I'll explore the bios a bit more then.

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


RE: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-19 Thread John Lists Tate
This is likely related to shared memory for your video card. Often you can
turn down how much it gets from the BIOS.



www.johntate.org
This address can recieve heavy traffic. To give your messages priority
please put PERSONALX at the start of the subject line. This will allow your
message to float to the top of my inbox.

-Original Message-
From: owner-freebsd-curr...@freebsd.org
[mailto:owner-freebsd-curr...@freebsd.org] On Behalf Of Andreas Tobler
Sent: Sunday, June 20, 2010 3:17 AM
To: freebsd-current
Subject: only 3 of 4GB memory available on amd64 8.1-RC1

Hi all,

I got my hands on a t60 with 4GB of RAM (BIOS displays it)

And I installed 8.1-RC1 on it:

FreeBSD 8.1-RC1 #0: Mon Jun 14 13:40:28 UTC 2010
 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU T5600  @ 1.83GHz (1828.76-MHz 
K8-class CPU)
   Origin = GenuineIntel  Id = 0x6f6  Family = 6  Model = f  Stepping = 6
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA
,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
   AMD Features=0x20100800SYSCALL,NX,LM
   AMD Features2=0x1LAHF
   TSC: P-state invariant
real memory  = 4294967296 (4096 MB)
avail memory = 3092344832 (2949 MB)
ACPI APIC Table: LENOVO TP-79   
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1



Do I need to configure something special to get the full 4GB of memory?

I only found the PAE hint, but this is for x86 machines, right?

Thanks for any hint.
Andreas
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

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


Re: only 3 of 4GB memory available on amd64 8.1-RC1

2010-06-19 Thread Andriy Gapon
on 19/06/2010 20:16 Andreas Tobler said the following:
 Hi all,
 
 I got my hands on a t60 with 4GB of RAM (BIOS displays it)
 
 And I installed 8.1-RC1 on it:
 
 FreeBSD 8.1-RC1 #0: Mon Jun 14 13:40:28 UTC 2010
 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Intel(R) Core(TM)2 CPU T5600  @ 1.83GHz (1828.76-MHz
 K8-class CPU)
   Origin = GenuineIntel  Id = 0x6f6  Family = 6  Model = f  Stepping = 6
 
 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
 
   Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
   AMD Features=0x20100800SYSCALL,NX,LM
   AMD Features2=0x1LAHF
   TSC: P-state invariant
 real memory  = 4294967296 (4096 MB)
 avail memory = 3092344832 (2949 MB)
 ACPI APIC Table: LENOVO TP-79   
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 2 core(s)
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 
 
 
 Do I need to configure something special to get the full 4GB of memory?
 
 I only found the PAE hint, but this is for x86 machines, right?

Yes, PAE is for what we call in FreeBSD land i386.
x86 we use for both i386 and amd64.

Now, to the rest.
I recently investigated this topic myself, so I can share what I learned.
The first thing you'd want to have is SMAP information.
You can get it at the loader prompt with 'smap' command.
It is also reported by kernel during a verbose boot, but it is only printed to
console; it is not saved to dmesg, because it is printed before msgbuf is 
created.

Example of how SMAP information looks:
SMAP type=01 base= end=0009f800
SMAP type=02 base=000f end=0010
SMAP type=02 base=fec0 end=0001
SMAP type=02 base=e000 end=f000
SMAP type=02 base=0009f800 end=000a
SMAP type=02 base=bfdf end=bfe0
SMAP type=01 base=0010 end=bfde
SMAP type=03 base=bfde3000 end=bfdf
SMAP type=04 base=bfde end=bfde3000
SMAP type=01 base=0001 end=00013000

Type 1 ('01') is memory ranges free for OS use.
Note that the ranges could be unsorted.

SMAP would give you an idea what is free for OS use and what is taken away for
BIOS and hardware needs.  Also note that what's reported as avail memory is
smaller than sum of sizes of all unreserved regions.  Some space is taken away
by FreeBSD virtual memory code to store some core page/memory management
information (~3%).  Memory used by kernel and preloaded modules is also not
included into avail memory.

If you discover that your system reserves, in your opinion, too much memory,
then consider the following things.
1. Some memory might be allocated as video adapter's aperture and/or video
adapter's memory in case of some integrated graphics solutions.
2. Some memory addresses below 4GB are used for MMIO (memory mapped
input/output) - accessing those addresses is actually communicating with some
hardware rather than accessing DRAM.  Some hardware+firmware combinations can
hoist (or remap) DRAM that corresponds to such an address range to a different
address range above 4G.  If you examine last line of my sample SMAP output, then
you'll see that there is 756MB of type 01 RAM above 4GB and that machine has
exactly 4GB of DRAM installed - this is MMIO range 0xd000-0x1
hoisted to 0x1-0x13000.
If your hardware doesn't support that option, then too bad - the memory is
overshadowed by MMIO and is effectively lost.
Sometimes hoisting option (under whatever name) has to be explicitly set in BIOS
configuration.

That's about all.
I am curious as to what you would discover about your system - please share 
with us.

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