Build AOSP impossible with CPU stuck at 300% or more

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Build AOSP impossible with CPU stuck at 300% or more

Fabien Brisset
Hi, 

I'm working on Linux Mint with a Dell computer with an Intel Core i5-7200 and 16 Go of RAM. I downloaded AOSP into my external SSD drive and working on it but when I tried the codelab for AOSP website, when I launch "m" command for build with eoither -j1 or -j4 options, the process "soong_build" consumes up to 300% of my CPU and froze my computer. I'm in no capability to retrieve my interface or my terminal and then forced to hard reset the computer. I have been searching through the web without success and the page about hardware requirements does not speak about processor. 

Can someone help me ? or give me some hints to be able to build AOSP ? 

Thanks and regards

Fabien Brisset

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/1e165646-ef14-4534-9c7e-02a45f572f51n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Build AOSP impossible with CPU stuck at 300% or more

Andrii Chepurnyi
Hello,

Please check swap on your system (is it enabled or not?). If it is not enabled create it with RAMx2 size.
You should be able to build it with -j2 or -j4 (but it will take a lot of time with such CPU).

Regards,

среда, 20 января 2021 г. в 17:37:06 UTC+2, [hidden email]:
Hi, 

I'm working on Linux Mint with a Dell computer with an Intel Core i5-7200 and 16 Go of RAM. I downloaded AOSP into my external SSD drive and working on it but when I tried the codelab for AOSP website, when I launch "m" command for build with eoither -j1 or -j4 options, the process "soong_build" consumes up to 300% of my CPU and froze my computer. I'm in no capability to retrieve my interface or my terminal and then forced to hard reset the computer. I have been searching through the web without success and the page about hardware requirements does not speak about processor. 

Can someone help me ? or give me some hints to be able to build AOSP ? 

Thanks and regards

Fabien Brisset

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/80dfcaa5-e9bc-4e82-9f55-a178bc914b07n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Build AOSP impossible with CPU stuck at 300% or more

Kevin Keller
In reply to this post by Fabien Brisset
That computer should be able to build Android in about 8 to 12 hours. Do it overnight or rent a server.

From: [hidden email] <[hidden email]> on behalf of Fabien Brisset <[hidden email]>
Sent: Friday, January 15, 2021 12:01 PM
To: Android Building <[hidden email]>
Subject: [android-building] Build AOSP impossible with CPU stuck at 300% or more
 
*** This is an EXTERNAL email. It was sent from outside of u-blox. ***
Hi, 

I'm working on Linux Mint with a Dell computer with an Intel Core i5-7200 and 16 Go of RAM. I downloaded AOSP into my external SSD drive and working on it but when I tried the codelab for AOSP website, when I launch "m" command for build with eoither -j1 or -j4 options, the process "soong_build" consumes up to 300% of my CPU and froze my computer. I'm in no capability to retrieve my interface or my terminal and then forced to hard reset the computer. I have been searching through the web without success and the page about hardware requirements does not speak about processor. 

Can someone help me ? or give me some hints to be able to build AOSP ? 

Thanks and regards

Fabien Brisset

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/1e165646-ef14-4534-9c7e-02a45f572f51n%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/sig.06556a5a2b.CWXP265MB13978913509E781800743178BCA10%40CWXP265MB1397.GBRP265.PROD.OUTLOOK.COM.
Reply | Threaded
Open this post in threaded view
|

Re: Build AOSP impossible with CPU stuck at 300% or more

Shubham Tomar
In reply to this post by Fabien Brisset
Hi,

Software builds are typically bottlenecked by link time(disk bound)
and not compile time(processor bound).
I've successfully complied AOSP on intel i5-4210(hyper-threaded dual
core) @1.7 GHz and 8GB of RAM(and a large swap space of course),
I don't think there is any issue with your hardware.

I would suggest moving the source code to an SSD that is connected to
the MotherBoard of the computer via SATA interface or (NVMe M.2 if
possible) instead of using an external SSD , reason being there is lot
of linking involved while building AOSP(or any project for that
matter).

I'm assuming your external SSD is connected to your PC via USB 3.0
interface or USB-C interface , either of which would be slower than
SATA/NVMe M.2 and would require more processor time to perform
linking, that might be a reason why your CPU usage is so outrageous!
:P

Thanks and Regards,
Shubham Tomar

On Wed, 20 Jan 2021 at 21:07, Fabien Brisset <[hidden email]> wrote:

>
> Hi,
>
> I'm working on Linux Mint with a Dell computer with an Intel Core i5-7200 and 16 Go of RAM. I downloaded AOSP into my external SSD drive and working on it but when I tried the codelab for AOSP website, when I launch "m" command for build with eoither -j1 or -j4 options, the process "soong_build" consumes up to 300% of my CPU and froze my computer. I'm in no capability to retrieve my interface or my terminal and then forced to hard reset the computer. I have been searching through the web without success and the page about hardware requirements does not speak about processor.
>
> Can someone help me ? or give me some hints to be able to build AOSP ?
>
> Thanks and regards
>
> Fabien Brisset
>
> --
> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to [hidden email]
> To unsubscribe from this group, send email to
> [hidden email]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/1e165646-ef14-4534-9c7e-02a45f572f51n%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAA_oxT89zcADQFLJM2HArWmR%3DCVQtQq%3DLz3%2BaktdGMjm6BPyGw%40mail.gmail.com.