On Wed, 2021-10-27 at 14:57 +0200, David Hildenbrand wrote: > On 27.10.21 14:48, Joakim Tjernlund wrote: > > Using a fairly minimal kernel I get a big difference in Reserved memory, using: > > qemu-system-aarch64 -machine virt -kernel arch/arm64/boot/Image -cpu cortex-a53 -nographic -m 32M > > > > I get this: > > Linux version 5.11.0 > > Memory: 24052K/32768K available (3520K kernel code, 684K rwdata, 548K rodata, 320K init, 245K bss, 8716K reserved, 0K cma-reserved) > > > > Versus: > > > > Linux version 5.10.75 > > Memory: 11836K/32768K available (3518K kernel code, 684K rwdata, 540K rodata, 320K init, 244K bss, 20932K reserved, 0K cma-reserved) > > > > Reserving 20 MB RAM on a 32 MB is way too much, even 8Mb is a bit much for us. > > Are you using comparable kernel configs? Can you share them? > > Further, can you share /proc/meminfo and /proc/zoneinfo of both instances? > > (eventually, memblock=debug could be helpful as well, but it generates a > lot of data) > Attaching configs, they are very similar I think. Dumps from meminfo etc. is a bit harder as I only have initramfs ATM and that has a huge impact on reserved memory, would that still be usable? (numbers above is without initramfs, kernel never gets to init) Need to figure out how to mount a FS from a JFFS2 img or similar as we have no SDA/HDA here Jocke