007revad / Synology_HDD_db

Add your HDD, SSD and NVMe drives to your Synology's compatible drive database
MIT License
2.2k stars 154 forks source link

why it set maxium ram to 32GB not 64GB while i have 64GB installed? #219

Open leonpano2006 opened 5 months ago

leonpano2006 commented 5 months ago
DS:DiskStation[/volume1/homes/leonpano/Synology_HDD_db]# ./syno_hdd_db.sh -r
Synology_HDD_db v3.4.80
DS2419+ DSM 7.2.1-69057-3 
StorageManager 1.0.0-0017

Using options: -r
Running from: /volume1/homes/leonpano/Synology_HDD_db/syno_hdd_db.sh

HDD/SSD models found: 3
SSDSC2BB016T6K,G201CS01
ST20000NM007D-3DJ103,SN03
WUH722222ALE6L4,LNGNW730

M.2 drive models found: 2
SAMSUNG MZ1L23T8HBLA-00A07,GDC7302Q
Seagate IronWolf ZP2000NM30002-2XW302,SU9SC017

M.2 PCIe card models found: 1
E10M20-T1

No Expansion Units found

Added SSDSC2BB016T6K to ds2419+_host_v7.db
Added ST20000NM007D-3DJ103 to ds2419+_host_v7.db
Added WUH722222ALE6L4 to ds2419+_host_v7.db
Added SAMSUNG MZ1L23T8HBLA-00A07 to ds2419+_host_v7.db
Added SAMSUNG MZ1L23T8HBLA-00A07 to ds2419+_e10m20-t1_v7.db
Backed up ds2419+_e10m20-t1_v7.db.new
Added SAMSUNG MZ1L23T8HBLA-00A07 to ds2419+_e10m20-t1_v7.db.new
Added Seagate IronWolf ZP2000NM30002-2XW302 to ds2419+_host_v7.db
Added Seagate IronWolf ZP2000NM30002-2XW302 to ds2419+_e10m20-t1_v7.db
Added Seagate IronWolf ZP2000NM30002-2XW302 to ds2419+_e10m20-t1_v7.db.new

Backed up /usr/syno/etc.defaults/adapter_cards.conf
Backed up /usr/syno/etc/adapter_cards.conf
E10M20-T1 NIC already enabled for DS2419+
E10M20-T1 NVMe already enabled for DS2419+

Backed up synoinfo.conf

Support disk compatibility already enabled.

Max memory is set to 32 GB.

NVMe support already enabled.

Enabled M.2 volume support.

Drive db auto updates already enabled.

Backed up storage_panel.js
Enabled creating pool on drives in M.2 adaptor card.

DSM successfully checked disk compatibility.

You may need to reboot the Synology to see the changes.
DS:DiskStation[/volume1/homes/leonpano/Synology_HDD_db]# cat /proc/meminfo
MemTotal:       65821000 kB
MemFree:         1532932 kB
MemAvailable:   60273456 kB
Buffers:          105112 kB
Cached:         50251232 kB
SwapCached:       126752 kB
Active:         11286472 kB
Inactive:       41579032 kB
Active(anon):    1715528 kB
Inactive(anon):  1152780 kB
Active(file):    9570944 kB
Inactive(file): 40426252 kB
Unevictable:      111348 kB
Mlocked:          111348 kB
SwapTotal:      41590700 kB
SwapFree:       41264244 kB
Dirty:              1404 kB
Writeback:             0 kB
AnonPages:       2572272 kB
Mapped:           815772 kB
Shmem:            277616 kB
Slab:            9575892 kB
SReclaimable:    9270668 kB
SUnreclaim:       305224 kB
KernelStack:       36416 kB
PageTables:        66884 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    74501200 kB
Committed_AS:   17190836 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
DirectMap4k:       10504 kB
DirectMap2M:     1957888 kB
DirectMap1G:    67108864 kB
007revad commented 5 months ago

It should have set it to 64 GB if the setting in synoinfo.conf was set to less than 65536 MB.

To get the amount of installed memory I originally used cat /proc/meminfo but because older versions of DSM 6 did not have /proc/meminfo I changed to using dmidecode.

I just noticed this line:

if [[ $dsm -gt "6" ]]; then  # DSM 6 as has no /proc/meminfo

but then the script uses dmidecode -t memory instead of cat /proc/meminfo

The comment should say "DSM 6 as has no dmidecode"

What does this command return? dmidecode -t memory | grep -E "[Ss]ize: [0-9]+ [MG]{1}[B]{1}$"

leonpano2006 commented 5 months ago
DS:DiskStation[~]$ dmidecode -t memory | grep -E "[Ss]ize: [0-9]+ [MG]{1}[B]{1}$"
/sys/firmware/dmi/tables/smbios_entry_point: Permission denied
/dev/mem: Permission denied
DS:DiskStation[~]$ sudo su
Password: 
Sorry, try again.
Password: 
DS:DiskStation[/volume1/homes/leonpano]# dmidecode -t memory | grep -E "[Ss]ize: [0-9]+ [MG]{1}[B]{1}$"
    Size: 1 MB
    Size: 1 MB
leonpano2006 commented 5 months ago

idk how to fix this false 1MB shit it think 1 stick of 32GB as 1 stick 1MB this also cause i have issue to use vm station image image

007revad commented 5 months ago

Max memory is set to 32 GB.

I see why it said that. It's thinks you only have 1 MB of memory(!) so the script is saying the max_memory setting is already greater than the amount the NAS thinks is installed.

32 GB is the default max_memory setting for a DS2419+

Obviously DSM uses dmidecode to work out how much memory is installed because DSM thinks you only have 1 MB.

The specs for the DS2419+ say: Memory 4 GB DDR4 Non-ECC SO-DIMM1 (expandable up to 32 GB with 16 GB ECC SO-DIMM x 2)

Have you tried it with just 1 x 32 GB?

leonpano2006 commented 5 months ago

I tried 1*32GB then it will show 1MB total ram installed

But htop shows correct size of ram Also neofetch

leonpano2006 commented 5 months ago

Max memory is set to 32 GB.

I see why it said that. It's thinks you only have 1 MB of memory(!) so the script is saying the max_memory setting is already greater than the amount the NAS thinks is installed.

32 GB is the default max_memory setting for a DS2419+

Obviously DSM uses dmidecode to work out how much memory is installed because DSM thinks you only have 1 MB.

The specs for the DS2419+ say:

Memory 4 GB DDR4 Non-ECC SO-DIMM1 (expandable up to 32 GB with 16 GB ECC SO-DIMM x 2)

Have you tried it with just 1 x 32 GB?

And I also don't know why Intel say this cpu support up to 256GB I wonder what device need weak cpu but large ram

007revad commented 5 months ago

Yep. Intel says:

Max Memory Size (dependent on memory type) 256 GB Memory Types DDR4: 2133

But they don't specify if memory type means dual or single rank, speed, ECC or not.

While the Intel Atom C3538 supports 256 GB the DS2429+ chipset may not support more than 32 GB total, with 16 GB per slot.

leonpano2006 commented 5 months ago

Yep. Intel says:

Max Memory Size (dependent on memory type) 256 GB

Memory Types DDR4: 2133

But they don't specify if memory type means dual or single rank, speed, ECC or not.

While the Intel Atom C3538 supports 256 GB the DS2429+ chipset may not support more than 32 GB total, with 16 GB per slot.

If is chipset doesn't support it then I believe it won't boot up at all And this is SoC chip(it is atom), I don't it have chipset like normal Intel CPUs And question before just ask what is this cpu made for

But is there any fix can be done?

leonpano2006 commented 5 months ago
DS:DiskStation[/volume1/homes/leonpano/Synology_HDD_db]# dmidecode
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
34 structures occupying 1652 bytes.
Table at 0x784A3000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: Insyde
    Version: M.309
    Release Date: 2019/11/01
    Address: 0xE0000
    Runtime Size: 128 kB
    ROM Size: 8192 kB
    Characteristics:
        PCI is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        Boot from CD is supported
        Selectable boot is supported
        EDD is supported
        Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
        Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
        5.25"/360 kB floppy services are supported (int 13h)
        5.25"/1.2 MB floppy services are supported (int 13h)
        3.5"/720 kB floppy services are supported (int 13h)
        3.5"/2.88 MB floppy services are supported (int 13h)
        8042 keyboard services are supported (int 9h)
        CGA/mono video services are supported (int 10h)
        ACPI is supported
        USB legacy is supported
        BIOS boot specification is supported
        Targeted content distribution is supported
        UEFI is supported
    BIOS Revision: 5.4

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: Synology Inc.
    Product Name: DS2419+
    Version: 1.0
    Serial Number: 123456789
    UUID: 12345678-1234-5678-90ab-cddeefaabbcc
    Wake-up Type: Power Switch
    SKU Number: Type1Sku0
    Family: RackStation

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
    Manufacturer: Type2 - Board Vendor Name1
    Product Name: Type2 - Board Product Name1
    Version: Type2 - Board Version
    Serial Number: Type2 - Board Serial Number
    Asset Tag: Type2 - Board Asset Tag
    Features:
        Board is a hosting board
        Board is replaceable
    Location In Chassis: Type2 - Board Chassis Location
    Chassis Handle: 0x0003
    Type: Motherboard
    Contained Object Handles: 0

Handle 0x0003, DMI type 3, 22 bytes
Chassis Information
    Manufacturer: Chassis Manufacturer
    Type: Other
    Lock: Not Present
    Version: Chassis Version
    Serial Number: Chassis Serial Number
    Asset Tag: Chassis Asset Tag
    Boot-up State: Safe
    Power Supply State: Safe
    Thermal State: Safe
    Security Status: None
    OEM Information: 0x00000000
    Height: Unspecified
    Number Of Power Cords: 1
    Contained Elements: 0
    SKU Number: SKU Number

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
    Socket Designation: CPU0
    Type: Central Processor
    Family: Atom
    Manufacturer: Intel(R) Corporation
    ID: F1 06 05 00 FF FB EB BF
    Signature: Type 0, Family 6, Model 95, Stepping 1
    Flags:
        FPU (Floating-point unit on-chip)
        VME (Virtual mode extension)
        DE (Debugging extension)
        PSE (Page size extension)
        TSC (Time stamp counter)
        MSR (Model specific registers)
        PAE (Physical address extension)
        MCE (Machine check exception)
        CX8 (CMPXCHG8 instruction supported)
        APIC (On-chip APIC hardware supported)
        SEP (Fast system call)
        MTRR (Memory type range registers)
        PGE (Page global enable)
        MCA (Machine check architecture)
        CMOV (Conditional move instruction supported)
        PAT (Page attribute table)
        PSE-36 (36-bit page size extension)
        CLFSH (CLFLUSH instruction supported)
        DS (Debug store)
        ACPI (ACPI supported)
        MMX (MMX technology supported)
        FXSR (FXSAVE and FXSTOR instructions supported)
        SSE (Streaming SIMD extensions)
        SSE2 (Streaming SIMD extensions 2)
        SS (Self-snoop)
        HTT (Multi-threading)
        TM (Thermal monitor supported)
        PBE (Pending break enabled)
    Version: Intel(R) Atom(TM) CPU C3538 @ 2.10GHz
    Voltage: 1.6 V
    External Clock: 100 MHz
    Max Speed: 3800 MHz
    Current Speed: 2100 MHz
    Status: Populated, Enabled
    Upgrade: Socket LGA775
    L1 Cache Handle: 0x0005
    L2 Cache Handle: 0x0006
    L3 Cache Handle: Not Provided
    Serial Number: Not Specified
    Asset Tag: UNKNOWN
    Part Number: Not Specified
    Core Count: 4
    Core Enabled: 4
    Thread Count: 4
    Characteristics:
        64-bit capable
        Multi-Core
        Hardware Thread
        Execute Protection
        Enhanced Virtualization
        Power/Performance Control

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L1-Cache
    Configuration: Enabled, Not Socketed, Level 1
    Operational Mode: Write Back
    Location: Internal
    Installed Size: 224 kB
    Maximum Size: 224 kB
    Supported SRAM Types:
        Synchronous
    Installed SRAM Type: Synchronous
    Speed: Unknown
    Error Correction Type: Single-bit ECC
    System Type: Instruction
    Associativity: 8-way Set-associative

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L2-Cache
    Configuration: Enabled, Not Socketed, Level 2
    Operational Mode: Write Back
    Location: Internal
    Installed Size: 4096 kB
    Maximum Size: 4096 kB
    Supported SRAM Types:
        Synchronous
    Installed SRAM Type: Synchronous
    Speed: Unknown
    Error Correction Type: Single-bit ECC
    System Type: Unified
    Associativity: 16-way Set-associative

Handle 0x0007, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: EC5
    Internal Connector Type: None
    External Reference Designator: USB
    External Connector Type: Access Bus (USB)
    Port Type: USB

Handle 0x0008, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: EC6
    Internal Connector Type: None
    External Reference Designator: USB
    External Connector Type: Access Bus (USB)
    Port Type: USB

Handle 0x0009, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: LAN1
    Internal Connector Type: None
    External Reference Designator: 1G Network
    External Connector Type: RJ-45
    Port Type: Network Port

Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: LAN1
    Internal Connector Type: None
    External Reference Designator: 1G Network
    External Connector Type: RJ-45
    Port Type: Network Port

Handle 0x000B, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: 10GLAN1
    Internal Connector Type: None
    External Reference Designator: 10G Network
    External Connector Type: RJ-45
    Port Type: Network Port

Handle 0x000C, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: 10GLAN2
    Internal Connector Type: None
    External Reference Designator: 10G Network
    External Connector Type: RJ-45
    Port Type: Network Port

Handle 0x000D, DMI type 9, 17 bytes
System Slot Information
    Designation: J1B2
    Type: x8 PCI Express 3 x8
    Current Usage: In Use
    Length: Other
    ID: 1
    Characteristics:
        PME signal is supported
        Hot-plug devices are supported
    Bus Address: 0000:00:09.0

Handle 0x000E, DMI type 9, 17 bytes
System Slot Information
    Designation: J2B1
    Type: x4 PCI Express 3 x4
    Current Usage: In Use
    Length: Other
    ID: 2
    Characteristics:
        PME signal is supported
        Hot-plug devices are supported
    Bus Address: 0000:00:0e.0

Handle 0x000F, DMI type 9, 17 bytes
System Slot Information
    Designation: J3B1
    Type: x4 PCI Express 3 x4
    Current Usage: In Use
    Length: Other
    ID: 3
    Characteristics:
        PME signal is supported
        Hot-plug devices are supported
    Bus Address: 0000:00:10.0

Handle 0x0010, DMI type 11, 5 bytes
OEM Strings
    String 1: OemString1
    String 2: OemString2
    String 3: OemString3

Handle 0x0011, DMI type 12, 5 bytes
System Configuration Options
    Option 1: ConfigOptions1
    Option 2: ConfigOptions2
    Option 3: ConfigOptions3

Handle 0x0012, DMI type 13, 22 bytes
BIOS Language Information
    Language Description Format: Long
    Installable Languages: 4
        en|US|iso8859-1,0
        fr|CA|iso8859-1,0
        zh|TW|unicode,0
        ja|JP|unicode,0
    Currently Installed Language: en|US|iso8859-1,0

Handle 0x0013, DMI type 15, 29 bytes
System Event Log
    Area Length: 0 bytes
    Header Start Offset: 0x0000
    Header Length: 8192 bytes
    Data Start Offset: 0x2000
    Access Method: General-purpose non-volatile data functions
    Access Address: 0x0000
    Status: Valid, Not Full
    Change Token: 0x12345678
    Header Format: OEM-specific
    Supported Log Type Descriptors: 3
    Descriptor 1: POST memory resize
    Data Format 1: None
    Descriptor 2: POST error
    Data Format 2: POST results bitmap
    Descriptor 3: Log area reset/cleared
    Data Format 3: None

Handle 0x0014, DMI type 16, 23 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: Single-bit ECC
    Maximum Capacity: 32 GB
    Error Information Handle: No Error
    Number Of Devices: 2

Handle 0x0015, DMI type 17, 40 bytes
Memory Device
    Array Handle: 0x0014
    Error Information Handle: No Error
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 1 MB
    Form Factor: SODIMM
    Set: None
    Locator: DIMM0
    Bank Locator: BANK 1
    Type: DDR4
    Type Detail: Synchronous
    Speed: 3200 MT/s
    Manufacturer: Micron
    Serial Number: 37E8369C
    Asset Tag: 01
    Part Number: 18ASF4G72HZ-3G2B2   
    Rank: 2
    Configured Memory Speed: 2133 MT/s
    Minimum Voltage: 1.2 V
    Maximum Voltage: 1.2 V
    Configured Voltage: 1.2 V

Handle 0x0016, DMI type 17, 40 bytes
Memory Device
    Array Handle: 0x0014
    Error Information Handle: No Error
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 1 MB
    Form Factor: SODIMM
    Set: None
    Locator: DIMM1
    Bank Locator: BANK 0
    Type: DDR4
    Type Detail: Synchronous
    Speed: 3200 MT/s
    Manufacturer: Micron
    Serial Number: 37E81EA1
    Asset Tag: 02
    Part Number: 18ASF4G72HZ-3G2B2   
    Rank: 2
    Configured Memory Speed: 2133 MT/s
    Minimum Voltage: 1.2 V
    Maximum Voltage: 1.2 V
    Configured Voltage: 1.2 V

Handle 0x0017, DMI type 19, 31 bytes
Memory Array Mapped Address
    Starting Address: 0x00000000000
    Ending Address: 0x00FFFFFFFFF
    Range Size: 64 GB
    Physical Array Handle: 0x0014
    Partition Width: 2

Handle 0x0018, DMI type 20, 35 bytes
Memory Device Mapped Address
    Starting Address: 0x00000000000
    Ending Address: 0x007FFFFFFFF
    Range Size: 32 GB
    Physical Device Handle: 0x0015
    Memory Array Mapped Address Handle: 0x0017
    Partition Row Position: Unknown

Handle 0x0019, DMI type 20, 35 bytes
Memory Device Mapped Address
    Starting Address: 0x00800000000
    Ending Address: 0x00FFFFFFFFF
    Range Size: 32 GB
    Physical Device Handle: 0x0016
    Memory Array Mapped Address Handle: 0x0017
    Partition Row Position: Unknown

Handle 0x001A, DMI type 32, 11 bytes
System Boot Information
    Status: No errors detected

Handle 0x001B, DMI type 39, 22 bytes
System Power Supply
    Location: OEM Define 0
    Name: OEM Define 1
    Manufacturer: OEM Define 2
    Serial Number: OEM Define 3
    Asset Tag: OEM Define 4
    Model Part Number: OEM Define 5
    Revision: OEM Define 6
    Max Power Capacity: 75 W
    Status: Not Present
    Type: Regulator
    Input Voltage Range Switching: Auto-switch
    Plugged: No
    Hot Replaceable: No

Handle 0x001C, DMI type 40, 17 bytes
Additional Information 1
    Referenced Handle: 0x000c
    Referenced Offset: 0x05
    String: PCIExpressx16
    Value: 0xaa
Additional Information 2
    Referenced Handle: 0x0000
    Referenced Offset: 0x05
    String: Compiler Version: VC 9.0
    Value: 0x00

Handle 0x001D, DMI type 128, 8 bytes
OEM-specific Type
    Header and Data:
        80 08 1D 00 55 AA 55 AA
    Strings:
        Oem Type 128 Test 1
        Oem Type 128 Test 2

Handle 0x001E, DMI type 129, 8 bytes
OEM-specific Type
    Header and Data:
        81 08 1E 00 01 01 02 01
    Strings:
        Insyde_ASF_001
        Insyde_ASF_002

Handle 0x001F, DMI type 130, 20 bytes
OEM-specific Type
    Header and Data:
        82 14 1F 00 24 41 4D 54 01 01 01 01 01 A5 1F 02
        00 00 00 00

Handle 0x0020, DMI type 136, 6 bytes
OEM-specific Type
    Header and Data:
        88 06 20 00 FF FF

Handle 0xFEFF, DMI type 127, 4 bytes
End Of Table

007revad commented 2 days ago

Is this still an issue in the latest version of syno_hdd_db?

leonpano2006 commented 4 hours ago

I will test that