Jump to content

Recommended Posts

Posted (edited)

Is it a way to reduce the amount of reserved memory on sunxi64 devices?

 

Trying to remove all useless for my case features (video/audio/wireless) to free up memory/resources for other tasks.

 

The amount of total (413M) vs real (512M) memory is quite low:

# grep -e Mem -e Cma /proc/meminfo
MemTotal:         422416 kB
MemFree:           49620 kB
MemAvailable:     314396 kB
CmaTotal:              0 kB
CmaFree:               0 kB

# dmesg | grep Memory:
[    0.000000] Memory: 407924K/524288K available (14144K kernel code, 1456K rwdata, 8700K rodata, 3072K init, 521K bss, 116364K reserved, 0K cma-reserved)

# grep extraargs /boot/armbianEnv.txt
extraargs=cma=0 sunxi_no_mali_mem_reserve sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16

# uname -a
Linux pi160 6.6.65-current-sunxi64 #1 SMP Wed Dec 11 19:13:43 +04 2024 aarch64 GNU/Linux

 

The tricks which works for `sunxi` (e.g. `orangepizero`) does not work for `sunxi64`  boards:

https://linux-sunxi.org/Kernel_arguments

 

Attempt to specify that extraargs in /boot/armbianEnv.txt have no effect (also their defaults are absent in /boot/boot.cmd, while present in orangepizero's version), except for `cma=0` with is not directly related to total available memory.

Custom kernel with `CONFIG_CMA=n` also changes nothing.

Edited by vmspike
<

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines