On Thu, Jun 02, 2022 at 07:24:23PM +0000, Joakim Tjernlund wrote: > We have this small embedded target(aarch64) with 32 MB of RAM where the kernel consumes 14420K: > Memory: 22444K/36864K available (3584K kernel code, 698K rwdata, 936K rodata, 320K init, 255K bss, 14420K reserved, 0K cma-reserved) > > I want to track down were most of this RAM is consumed so I can trim away some MBs > but I am having a hard time finding may way. > Is there some tool/kernel config that can help me with that? You may find this series of articles interesting: https://lwn.net/Articles/741494/ https://lwn.net/Articles/744507/ https://lwn.net/Articles/746780/ https://lwn.net/Articles/748198/ While they're a little old and they're targetting a much smaller system than yours, they may give you some ideas of things you can try and tools you can use.