rr icon indicating copy to clipboard operation
rr copied to clipboard

full RAM size is not showing on DSM

Open aarpro opened this issue 2 years ago • 83 comments

  • Advantech ASMB-260I-21A1
  • Atom C3558
  • RAM 4x16

Arpl version: 23.9.1 DSM model: DS3622 DSM version: DSM 7.2-64570 Update 3

DSM not showing full RAM size (64GB)

When viewing from the terminal - 64GB 2023-09-12_012419

When viewing from DSM - only 32GB 2023-09-12_015405

and incomprehensible size of reserved memory 2023-09-12_025437

I tried changing in the settings file /etc/synoinfo.conf & /etc.defaults/synoinfo.conf my old values

mem_max_mb="49152"
mem_min_mb="16384"

my new values

mem_max_mb="65536"
mem_min_mb="16384"

The result is negative

I didn't think it might be a loaders problem, but to me gave advice to change loader to ARC. xpenology.com/forum I have no physical access to my server now, and I can't try another loader

I also found advice to add to cmdline menu, parameter disable_mtrr_trim with null value. but I not sure that this will not break loading of the NAS

aarpro avatar Sep 12 '23 20:09 aarpro

i add in cmdline menu, disable_mtrr_trim with null value. and direct boot set to true

result is negative - nothing has changed :(

aarpro avatar Sep 12 '23 21:09 aarpro

image image

我没有做任何修改,但似乎不能复现你的问题.

wjz304 avatar Sep 13 '23 20:09 wjz304

物理机?

wjz304 avatar Sep 13 '23 20:09 wjz304

物理机?

yes But I no have physical access yet. A few days later I can check RAM and check BIOS settings

aarpro avatar Sep 13 '23 21:09 aarpro

物理机?

When loading, I see 64GB RAM, I think this is no problem of memory modules, its soft problems

2023-09-14_011941

aarpro avatar Sep 13 '23 22:09 aarpro

Have you made any progress?

wjz304 avatar Sep 15 '23 20:09 wjz304

Have you made any progress?

no - I no have physical access to the server yet but i see BIOS 64GB RAM, loaders 64GB RAM - DCM detected only 32GB, and reserved -32GB RAM so i thunk its is soft problems

In what direction I need to look for?

aarpro avatar Sep 15 '23 20:09 aarpro

I don't know, just a little skeptical. Is it a swap?

wjz304 avatar Sep 15 '23 20:09 wjz304

swap

What settings can I change to change swap size or over swap parameters ?

aarpro avatar Sep 15 '23 20:09 aarpro

What does dmesg say about your memory?

dmesg | grep -i memory

Does it look something similar to this?...

dmesg | grep -i memory [ 0.000000] WARNING: BIOS bug: CPU MTRRs don't cover all of memory, losing 29440MB of RAM. [ 0.000000] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/mtrr/cleanup.c:972 mtrr_trim_uncached_memory+0x458/0x47f() [ 0.000000] [<ffffffff8190368c>] mtrr_trim_uncached_memory+0x458/0x47f

If so disable_mtrr_trim will fix it.

zak-forsyth avatar Sep 19 '23 19:09 zak-forsyth

dmesg | grep -i memory

root@DS3622:~# dmesg | grep -i memory
[    0.000000] Base memory trampoline at [ffff880000096000] 96000 size 28672
[    0.000000] Early memory node ranges
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff]
[    0.000000] PM: Registered nosave memory: [mem 0x00100000-0x00100fff]
[    0.000000] PM: Registered nosave memory: [mem 0x00102000-0x00102fff]
[    0.000000] PM: Registered nosave memory: [mem 0x76d35000-0x76d44fff]
[    0.000000] PM: Registered nosave memory: [mem 0x7d63c000-0x7d6dbfff]
[    0.000000] PM: Registered nosave memory: [mem 0x7d7b1000-0x7db06fff]
[    0.000000] PM: Registered nosave memory: [mem 0x7db07000-0x7f442fff]
[    0.000000] PM: Registered nosave memory: [mem 0x7f800000-0x7fffffff]
[    0.000000] PM: Registered nosave memory: [mem 0x80000000-0xdfffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xe0000000-0xefffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xf0000000-0xfcffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfd000000-0xfe7fffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfe800000-0xfeffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xff000000-0xffffffff]
[    0.000000] Memory: 65752288K/67070324K available (5633K kernel code, 882K rwdata, 1776K rodata, 936K init, 1568K bss, 1318036K reserved, 0K cma-reserved)
[    0.008644] Initializing cgroup subsys memory
[    0.020242] Freeing SMP alternatives memory: 24K
[    3.938591] Freeing initrd memory: 59804K
[    5.856347] Freeing unused kernel memory: 936K
[    5.857378] Freeing unused kernel memory: 500K
[    5.858645] Freeing unused kernel memory: 272K
[    7.024694] mpt2sas_cm0: Allocated physical memory: size(7579 kB)

This is what I see

aarpro avatar Sep 22 '23 01:09 aarpro

加上试试,

wjz304 avatar Sep 23 '23 02:09 wjz304

If so disable_mtrr_trim will fix it.

加上试试,

I can't understand how to do it :(

aarpro avatar Sep 23 '23 02:09 aarpro

image

wjz304 avatar Sep 23 '23 04:09 wjz304

加上试试,

2023-09-24_004644

2023-09-24_005011

unchanged - does not work as it should

aarpro avatar Sep 23 '23 21:09 aarpro

'value' does not need to be filled in

wjz304 avatar Sep 23 '23 21:09 wjz304

What they said. No value for mtrr trim.

zak-forsyth avatar Sep 23 '23 22:09 zak-forsyth

'value' does not need to be filled in

2023-09-24_011925

all the same

2023-09-24_012331

aarpro avatar Sep 23 '23 22:09 aarpro

in dsm shell:

free -m
cat /proc/meminfo

wjz304 avatar Sep 23 '23 22:09 wjz304

in dsm shell:

free -m
cat /proc/meminfo
root@DS3622:~# free -m
              total        used        free      shared  buff/cache   available
Mem:          64335        1838       60532         112        1964       61868
Swap:         40651           0       40651
root@DS3622:~# cat /proc/meminfo
MemTotal:       65879776 kB
MemFree:        61985320 kB
MemAvailable:   63353380 kB
Buffers:           23000 kB
Cached:          1495004 kB
SwapCached:            0 kB
Active:          1877448 kB
Inactive:         887124 kB
Active(anon):    1264320 kB
Inactive(anon):    98948 kB
Active(file):     613128 kB
Inactive(file):   788176 kB
Unevictable:        1676 kB
Mlocked:            1676 kB
SwapTotal:      41627564 kB
SwapFree:       41627564 kB
Dirty:               144 kB
Writeback:             0 kB
AnonPages:       1248292 kB
Mapped:           296724 kB
Shmem:            115044 kB
Slab:             572576 kB
SReclaimable:     493764 kB
SUnreclaim:        78812 kB
KernelStack:       10080 kB
PageTables:        15480 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    74567452 kB
Committed_AS:    3154760 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
DirectMap4k:       17144 kB
DirectMap2M:     3090432 kB
DirectMap1G:    66060288 kB
root@DS3622:~#

aarpro avatar Sep 23 '23 22:09 aarpro

There doesn't seem to be anything unusual, it's just 32G displayed

wjz304 avatar Sep 23 '23 23:09 wjz304

There doesn't seem to be anything unusual, it's just 32G displayed

I understand correctly that displayed Reserved -32325344KB (minus!) This is only a display in DSM

I just don't pay attention to it?

aarpro avatar Sep 24 '23 00:09 aarpro

try to add a fake mac2 to enable netif_num is 2

wjz304 avatar Sep 24 '23 01:09 wjz304

try to add a fake mac2 to enable netif_num is 2

I have a valid sn/mac and this is added, I see my server on account.synology.com and QuickConnect is work... on my mb is one GbE Lan

or I have to add the second MAC in any case ? Does this have any relation with the quantity RAM?

aarpro avatar Sep 24 '23 01:09 aarpro

try to add a fake mac2 to enable netif_num is 2

I have a valid sn/mac and this is added, I see my server on account.synology.com and QuickConnect is work... on my mb is one GbE Lan

or I have to add the second MAC in any case ? Does this have any relation with the quantity RAM?

I'm not sure,

It's just that I just found someone on a Chinese forum with a similar situation, and after adding a PCIe network card, this situation disappeared

wjz304 avatar Sep 24 '23 01:09 wjz304

I'm not sure...

2023-09-25_015413

no, It did not help, all the same

2023-09-25_015813

aarpro avatar Sep 24 '23 23:09 aarpro

Okay, if it doesn't affect usage, don't attention to it first

wjz304 avatar Sep 25 '23 01:09 wjz304

try to add "crashkernel" "192M" to cmdline in addition to "disable_mtrr_trim" "0" and report again please

AuxXxilium avatar Sep 25 '23 18:09 AuxXxilium

try to add "crashkernel" "192M" to cmdline in addition to "disable_mtrr_trim" "0" and report again please

2023-09-26_045718

unchanged :(

2023-09-26_050231

2023-09-26_050134

root@DS3622:~# free -m
              total        used        free      shared  buff/cache   available
Mem:          64143        1828       60398         112        1916       61686
Swap:         40535           0       40535
root@DS3622:~# cat /proc/meminfo
MemTotal:       65683168 kB
MemFree:        61831956 kB
MemAvailable:   63168568 kB
Buffers:           23184 kB
Cached:          1462380 kB
SwapCached:            0 kB
Active:          1840156 kB
Inactive:         879244 kB
Active(anon):    1251832 kB
Inactive(anon):    98556 kB
Active(file):     588324 kB
Inactive(file):   780688 kB
Unevictable:        1676 kB
Mlocked:            1676 kB
SwapTotal:      41508780 kB
SwapFree:       41508780 kB
Dirty:              1416 kB
Writeback:             0 kB
AnonPages:       1235520 kB
Mapped:           296596 kB
Shmem:            114896 kB
Slab:             573616 kB
SReclaimable:     494608 kB
SUnreclaim:        79008 kB
KernelStack:       10384 kB
PageTables:        15828 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    74350364 kB
Committed_AS:    3236336 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
DirectMap4k:       17144 kB
DirectMap2M:     3090432 kB
DirectMap1G:    66060288 kB
root@DS3622:~#

aarpro avatar Sep 26 '23 02:09 aarpro

do you have tried to force reinstall dsm?

AuxXxilium avatar Sep 26 '23 10:09 AuxXxilium