Re: [android-building] Build AOSP impossible with CPU stuck at 300% or more

2021-01-23 Thread Shubham Tomar
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  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 android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> 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 android-building+unsubscr...@googlegroups.com.
> 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 android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
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 android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CAA_oxT89zcADQFLJM2HArWmR%3DCVQtQq%3DLz3%2BaktdGMjm6BPyGw%40mail.gmail.com.


Re: [android-building] Build AOSP impossible with CPU stuck at 300% or more

2021-01-21 Thread 'Kevin Keller' via Android Building
That computer should be able to build Android in about 8 to 12 hours. Do it 
overnight or rent a server.

From: android-building@googlegroups.com  on 
behalf of Fabien Brisset 
Sent: Friday, January 15, 2021 12:01 PM
To: Android Building 
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 android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
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 
android-building+unsubscr...@googlegroups.com.
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 android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
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 android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/sig.06556a5a2b.CWXP265MB13978913509E781800743178BCA10%40CWXP265MB1397.GBRP265.PROD.OUTLOOK.COM.