On Mon, Aug 26, 2024 at 10:57:22AM +0200, Jiri Slaby wrote: > On 22. 08. 24, 17:24, Arnaldo Carvalho de Melo wrote: > > On Thu, Aug 22, 2024 at 11:55:05AM +0800, Shung-Hsi Yu wrote: > > I stumbled on this limitation as well when trying to build the kernel on > > a Libre Computer rk3399-pc board with only 4GiB of RAM, there I just > > created a swapfile and it managed to proceed, a bit slowly, but worked > > as well. > > Here, it hits the VM space limit (3 G). > > > Please let me know if what is in the 'next' branch of: > > > > https://git.kernel.org/pub/scm/devel/pahole/pahole.git > > > > Works for you, that will be extra motivation to move it to the master > > branch and cut 1.28. > > on 64bit (-j1): > * master: 3.706 GB > (* master + my changes: 3.559 GB) > * next: 3.157 GB > > > on 32bit: > * master-j1: 2.445 GB > * master-j16: 2.608 GB > * master-j32: 2.811 GB > * next-j1: 2.256 GB > * next-j16: 2.401 GB > * next-j32: 2.613 GB > > It's definitely better. So I think it could work now, if the thread count > was limited to 1 on 32bit. As building with -j10, -j20 randomly fails on > random machines (32bit processes only of course). Unlike -j1. Great! I'm now processing a patch by Alan Maguire that should help with parallel loading, I'll add it o the next branch, together with his work on distilled BTF. If you could test it, it would be great to see how much it helps with teh serial case and if it allows for at least some parallel processing on 32-bit architectures. Thanks for all your effort on this, appreciated. - Arnaldo