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 <[email protected]> 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAA_oxT89zcADQFLJM2HArWmR%3DCVQtQq%3DLz3%2BaktdGMjm6BPyGw%40mail.gmail.com.
