Ubuntu 报告的内存明显少于我实际拥有的内存

Ubuntu 报告的内存明显少于我实际拥有的内存

最近,特别是在 ubuntu 更新之后,并且在 ubuntu 上安装/卸载虚拟盒之后,我的机器(XPS 13 9360)启动时报告只有 1.4gb(以前不是这样)的 RAM。 free -m输出:

              total        used        free      shared  buff/cache   available 
Mem:           1421         753          87         177         580         237 
Swap:          2047         983        1064

neofetch输出:

OS: Ubuntu 20.04.3 LTS x86_64 
Host: XPS 13 9360 
Kernel: 5.4.0-86-generic 
Uptime: 14 mins 
Packages: 2863 (dpkg), 10 (brew), 23 (snap) 
Shell: zsh 5.8 
Resolution: 1920x1080 
DE: Plasma 
WM: KWin 
WM Theme: Layan 
Theme: Layan [Plasma], Breeze [GTK2/3] 
Icons: Tela [Plasma], Tela [GTK2/3] 
Terminal: konsole 
CPU: Intel i7-8550U (8) @ 4.000GHz 
GPU: Intel UHD Graphics 620 
Memory: 922MiB / 1421MiB  

BIOS 报告 16gb,双启动到 Windows 也报告 16gb。我能做些什么来解决这个问题?还是我应该重新安装?如果能得到帮助,我将不胜感激,因为 Linux 发现由于内存不足,系统崩溃了。

编辑sudo dmidecode -t memory输出:

# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x0038, DMI type 16, 23 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: 2

Handle 0x0039, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x0038
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: Row Of Chips
        Set: None
        Locator: System Board Memory
        Bank Locator: Not Specified
        Type: LPDDR3
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 2133 MT/s
        Manufacturer: SK Hynix
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: H9CCNNNCLGALAR-NVD
        Rank: 2
        Configured Memory Speed: 2133 MT/s
        Minimum Voltage: 1.25 V
        Maximum Voltage: 1.25 V
        Configured Voltage: 1.2 V

Handle 0x003A, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x0038
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: Row Of Chips
        Set: None
        Locator: System Board Memory
        Bank Locator: Not Specified
        Type: LPDDR3
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 2133 MT/s
        Manufacturer: SK Hynix
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: H9CCNNNCLGALAR-NVD
        Rank: 2
        Configured Memory Speed: 2133 MT/s
        Minimum Voltage: 1.25 V
        Maximum Voltage: 1.25 V
        Configured Voltage: 1.2 V

编辑2:经过进一步挖掘,发现命令dmesg | grep Memory返回映射内存失败:

[    0.109763] Memory: 1364404K/16498176K available (14339K kernel code, 2400K rwdata, 5016K rodata, 2736K init, 4964K bss, 15133772K reserved, 0K cma-reserved)
[    0.151677] efi: memattr: Failed to map EFI Memory Attributes table @ 0x6e0a5018
[    0.167205] x86/mm: Memory block size: 128MB

可以链接到:

答案1

经过一番研究,我发现我的 bios 版本较旧(2.15),将 bios 更新到最新的 2.16 后,一切恢复正常。我假设这种情况是由于最新的 ubuntu 更新推出而发生的。

相关内容