increase the memory used for building

185 views
Skip to first unread message

Kbc K

unread,
Jul 21, 2020, 10:32:36 AM7/21/20
to Android Building
Hi all,

I have a question about AOSP build system memory usage.

Does the the build system take the full advantage of the available memory in the building machine?
Lets say I have 64Gb RAM does it use all the memory?

If there is a limit how I can change it? is there an option to increase it?

BR
K

Glenn Kasten

unread,
Jul 21, 2020, 10:45:00 AM7/21/20
to Android Building
> Does the the build system take the full advantage of the available memory in the building machine?
Yes, by default.

> Lets say I have 64Gb RAM does it use all the memory?
Yes, if that much is needed, except for memory used by the host OS/kernel and other processes running on same machine.

> If there is a limit how I can change it? is there an option to increase it?
There is no overall limit or option for the build, but specific build tools may have limits and options.
Generally it is not necessary to configure these.

The host OS may have facilities for limits ...
for example Linux has cgroups, and bash has the ulimit command.
But you will usually not need to use these.
Reply all
Reply to author
Forward
0 new messages