Android soong_build eat all memory

272 views
Skip to first unread message

程洋

unread,
Jan 12, 2023, 8:02:18 PM1/12/23
to Android Building
Recently We found our Android T compile spped become drastically slow.
After some debugging, we found our build.ninja file is 22G, and AOSP build.ninjs is 6G.
and during the generation process of build.ninja, soong_build quickly eat all memory and start to use swap, which makes the process slow.

Apparently it's not Google's problem. But i wish someone could tell me how to debug it and find the root cause (maybe someone write a bad Android.bp)?


1.png
2.png
Reply all
Reply to author
Forward
0 new messages