双4G双通道在Ubuntu下只显示4G ,win10正常

系统安装、升级讨论
回复
hotlinhao
帖子: 4
注册时间: 2011-05-25 15:49
送出感谢: 0
接收感谢: 0

双4G双通道在Ubuntu下只显示4G ,win10正常

#1

帖子 hotlinhao » 2019-10-09 22:01

想抛弃win10,试用Ubuntu,昨天装好了系统,我的Microsoft 4000键盘不认了。这个是次要的,双通道共8G的内在,在win10上显示是8G, 但在这里只显示四G .

free -m
总计 已用 空闲 共享 缓冲/缓存 可用
内存: 3972 1582 728 272 1661 1881
交换: 7792 0 7792

====================================================================

sudo dmesg|grep -i memory
[ 0.049325] check: Scanning 1 areas for low memory corruption
[ 0.063505] Early memory node ranges
[ 0.089811] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.089813] PM: Registered nosave memory: [mem 0x0009e000-0x0009efff]
[ 0.089813] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.089814] PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[ 0.089815] PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
[ 0.089816] PM: Registered nosave memory: [mem 0xbea6e000-0xbec45fff]
[ 0.089817] PM: Registered nosave memory: [mem 0xbec46000-0xbef99fff]
[ 0.089817] PM: Registered nosave memory: [mem 0xbef9a000-0xbf022fff]
[ 0.089818] PM: Registered nosave memory: [mem 0xbf023000-0xbf03dfff]
[ 0.089818] PM: Registered nosave memory: [mem 0xbf03e000-0xbf15bfff]
[ 0.089820] PM: Registered nosave memory: [mem 0xbf15d000-0xbf362fff]
[ 0.089821] PM: Registered nosave memory: [mem 0xbf800000-0xf7ffffff]
[ 0.089822] PM: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
[ 0.089822] PM: Registered nosave memory: [mem 0xfc000000-0xfebfffff]
[ 0.089823] PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
[ 0.089823] PM: Registered nosave memory: [mem 0xfec01000-0xfec0ffff]
[ 0.089824] PM: Registered nosave memory: [mem 0xfec10000-0xfec10fff]
[ 0.089824] PM: Registered nosave memory: [mem 0xfec11000-0xfec1ffff]
[ 0.089825] PM: Registered nosave memory: [mem 0xfec20000-0xfec20fff]
[ 0.089825] PM: Registered nosave memory: [mem 0xfec21000-0xfecfffff]
[ 0.089826] PM: Registered nosave memory: [mem 0xfed00000-0xfed00fff]
[ 0.089826] PM: Registered nosave memory: [mem 0xfed01000-0xfed60fff]
[ 0.089827] PM: Registered nosave memory: [mem 0xfed61000-0xfed70fff]
[ 0.089827] PM: Registered nosave memory: [mem 0xfed71000-0xfed7ffff]
[ 0.089828] PM: Registered nosave memory: [mem 0xfed80000-0xfed8ffff]
[ 0.089828] PM: Registered nosave memory: [mem 0xfed90000-0xfeefffff]
[ 0.089829] PM: Registered nosave memory: [mem 0xfef00000-0xffffffff]
[ 0.089829] PM: Registered nosave memory: [mem 0x100000000-0x100000fff]
[ 0.132136] Memory: 3954556K/4160160K available (14339K kernel code, 2335K rwdata, 4404K rodata, 2588K init, 5192K bss, 205604K reserved, 0K cma-reserved)
[ 0.178774] Freeing SMP alternatives memory: 36K
[ 0.372984] x86/mm: Memory block size: 128MB
[ 1.889841] Freeing initrd memory: 39320K
[ 1.898676] check: Scanning for low memory corruption every 60 seconds
[ 2.332366] Freeing unused decrypted memory: 2040K
[ 2.333347] Freeing unused kernel image memory: 2588K
[ 2.361536] Freeing unused kernel image memory: 2016K
[ 2.362161] Freeing unused kernel image memory: 1740K



==========================================================================

sudo dmidecode -t memory
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0008, 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: 2048 MB
Maximum Total Memory Size: 8192 MB
Supported Speeds:
70 ns
60 ns
Supported Memory Types:
DIMM
SDRAM
Memory Module Voltage: 3.3 V
Associated Memory Slots: 4
0x0009
0x000A
0x000B
0x000C
Enabled Error Correcting Capabilities:
None

Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: DIMM0
Bank Connections: 0 1
Current Speed: 60 ns
Type: DIMM SDRAM
Installed Size: 536870912 MB (Single-bank Connection)
Enabled Size: 536870912 MB (Single-bank Connection)
Error Status: OK

Handle 0x000A, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: DIMM1
Bank Connections: 2 3
Current Speed: 60 ns
Type: DIMM SDRAM
Installed Size: 536870912 MB (Single-bank Connection)
Enabled Size: 536870912 MB (Single-bank Connection)
Error Status: OK

Handle 0x000B, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: DIMM2
Bank Connections: 4 5
Current Speed: 60 ns
Type: DIMM SDRAM
Installed Size: 536870912 MB (Single-bank Connection)
Enabled Size: 536870912 MB (Single-bank Connection)
Error Status: OK

Handle 0x000C, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: DIMM3
Bank Connections: 6 7
Current Speed: 60 ns
Type: DIMM SDRAM
Installed Size: 536870912 MB (Single-bank Connection)
Enabled Size: 536870912 MB (Single-bank Connection)
Error Status: OK

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

Handle 0x002E, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: DIMM
Set: None
Locator: Node0_Dimm0
Bank Locator: Node0_Bank0
Type: DDR3
Type Detail: Synchronous Unbuffered (Unregistered)
Speed: 800 MT/s
Manufacturer: Kingston
Serial Number: 0000005E
Asset Tag: Dimm0_AssetTag
Part Number:
Rank: 2
Configured Clock Speed: 800 MT/s

Handle 0x0030, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: 64 bits
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: Node0_Dimm1
Bank Locator: Node0_Bank0
Type: Unknown
Type Detail: Synchronous
Speed: Unknown
Manufacturer: Dimm1_Manufacturer
Serial Number: Dimm1_SerNum
Asset Tag: Dimm1_AssetTag
Part Number: Dimm1_PartNum
Rank: Unknown
Configured Clock Speed: Unknown

Handle 0x0032, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: DIMM
Set: None
Locator: Node0_Dimm2
Bank Locator: Node0_Bank0
Type: DDR3
Type Detail: Synchronous Unbuffered (Unregistered)
Speed: 800 MT/s
Manufacturer: Kingston
Serial Number: 0000005E
Asset Tag: Dimm2_AssetTag
Part Number:
Rank: 2
Configured Clock Speed: 800 MT/s

Handle 0x0034, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: 64 bits
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: Node0_Dimm3
Bank Locator: Node0_Bank0
Type: Unknown
Type Detail: Synchronous
Speed: Unknown
Manufacturer: Dimm3_Manufacturer
Serial Number: Dimm3_SerNum
Asset Tag: Dimm3_AssetTag
Part Number: Dimm3_PartNum
Rank: Unknown
Configured Clock Speed: Unknown


=========================================================================

sudo lshw -c memory
[sudo] dyb 的密码:
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: FC
date: 06/01/2015
size: 64KiB
capacity: 4032KiB
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
*-cache:0
description: L1 cache
physical id: 5
slot: L1-Cache
size: 384KiB
capacity: 384KiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 6
slot: L2-Cache
size: 8MiB
capacity: 8MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: 7
slot: L3-Cache
size: 8MiB
capacity: 8MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=3
*-memory
description: System Memory
physical id: 2c
slot: System board or motherboard
size: 8GiB
*-bank:0
description: DIMM DDR3 Synchronous Unbuffered (Unregistered) 800 MHz (1.2 ns)
vendor: Kingston
physical id: 0
serial: 0000005E
slot: Node0_Dimm0
size: 4GiB
width: 64 bits
clock: 800MHz (1.2ns)
*-bank:1
description: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-10-07 14:34+0000Last-Translator: lumingzh <lumingzh@qq.com>Language-Team: Chinese (Simplified) <zh_CN@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719) Synchronous [empty]
product: Dimm1_PartNum
vendor: Dimm1_Manufacturer
physical id: 1
serial: Dimm1_SerNum
slot: Node0_Dimm1
*-bank:2
description: DIMM DDR3 Synchronous Unbuffered (Unregistered) 800 MHz (1.2 ns)
vendor: Kingston
physical id: 2
serial: 0000005E
slot: Node0_Dimm2
size: 4GiB
width: 64 bits
clock: 800MHz (1.2ns)
*-bank:3
description: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-10-07 14:34+0000Last-Translator: lumingzh <lumingzh@qq.com>Language-Team: Chinese (Simplified) <zh_CN@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719) Synchronous [empty]
product: Dimm3_PartNum
vendor: Dimm3_Manufacturer
physical id: 3
serial: Dimm3_SerNum
slot: Node0_Dimm3



以上是在另一个帖子里看到了,输入以上命令输出的信息。-blank0,blank2显示了两条4G ,。这个不会处理了!!也没有找到解决办法。
头像
astolia
论坛版主
帖子: 4033
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 666 次

Re: 双4G双通道在Ubuntu下只显示4G ,win10正常

#2

帖子 astolia » 2019-10-10 14:27

你该不会装的是32位版系统吧?
hotlinhao
帖子: 4
注册时间: 2011-05-25 15:49
送出感谢: 0
接收感谢: 0

Re: 双4G双通道在Ubuntu下只显示4G ,win10正常

#3

帖子 hotlinhao » 2019-10-10 20:56

astolia 写了:
2019-10-10 14:27
你该不会装的是32位版系统吧?
32位系统可以识别的是3.4G的内存。


uname -a
Linux dyb-To-be-filled-by-O-E-M 5.0.0-31-generic #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


今天在办公室又装了一份,一个U盘装的。12G内存都认出来了。
头像
astolia
论坛版主
帖子: 4033
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 666 次

Re: 双4G双通道在Ubuntu下只显示4G ,win10正常

#4

帖子 astolia » 2019-10-10 23:19

hotlinhao 写了:
2019-10-10 20:56
32位系统可以识别的是3.4G的内存。
并非如此,不要把Windows上的一些现象当成普遍的真理。
于1995年在CPU上出现的PAE技术的加持下,32位系统最多可以支持到64G内存。在2000年发布的Windows 2000数据中心版就已经可以原生支持到32G内存了,到了2003年的Windows 2003企业版更是完全解锁了64G支持。
所谓的32位系统的4G内存限制,实际上指的是单一进程的线性地址空间。而即使是单一进程,利用内存映射技术,也不是没有办法在32位系统上使用总量超过4G的内存。
而你所说的3.4G内存,不过是在没开PAE的情况下,去除某些硬件保留内存,留给操作系统的可用内存大小罢了。具体可参考 https://en.wikipedia.org/wiki/3_GB_barrier


既然你用的确实是64位系统,这些东西都跟你无关了。
linux所知道的内存大小,还是由bios告知的。要么是内核有bug,要么是bios对非win系统告知了错误的信息,要么是windows没有理bios的错误信息通过另外的方法得到了正确的内存大小。
你可以尝试下把内存换个插槽,升级一下bios,调整一下bios里内存相关的设置,拿19.10 beta来试试看能不能正确识别。
如果上面的都不行,再给内核加启动参数mem=8G试试
hotlinhao
帖子: 4
注册时间: 2011-05-25 15:49
送出感谢: 0
接收感谢: 0

Re: 双4G双通道在Ubuntu下只显示4G ,win10正常

#5

帖子 hotlinhao » 2019-10-13 8:03

astolia 写了:
2019-10-10 23:19
hotlinhao 写了:
2019-10-10 20:56
32位系统可以识别的是3.4G的内存。
并非如此,不要把Windows上的一些现象当成普遍的真理。
于1995年在CPU上出现的PAE技术的加持下,32位系统最多可以支持到64G内存。在2000年发布的Windows 2000数据中心版就已经可以原生支持到32G内存了,到了2003年的Windows 2003企业版更是完全解锁了64G支持。
所谓的32位系统的4G内存限制,实际上指的是单一进程的线性地址空间。而即使是单一进程,利用内存映射技术,也不是没有办法在32位系统上使用总量超过4G的内存。
而你所说的3.4G内存,不过是在没开PAE的情况下,去除某些硬件保留内存,留给操作系统的可用内存大小罢了。具体可参考 https://en.wikipedia.org/wiki/3_GB_barrier


既然你用的确实是64位系统,这些东西都跟你无关了。
linux所知道的内存大小,还是由bios告知的。要么是内核有bug,要么是bios对非win系统告知了错误的信息,要么是windows没有理bios的错误信息通过另外的方法得到了正确的内存大小。
你可以尝试下把内存换个插槽,升级一下bios,调整一下bios里内存相关的设置,拿19.10 beta来试试看能不能正确识别。
如果上面的都不行,再给内核加启动参数mem=8G试试
非常感谢,我试试!!!
回复

回到 “系统安装和升级”