Will a HDD slow down my AOSP builds? - Android Q&A, Help & Troubleshooting

Hi!
I just recently decided to switch my AOSP build server because my old one was getting way too slow at building AOSP (it would take around 3~4 hours to build 6.0.1 with ccache). I upgraded from this:
Intel Core I3 2350M (4 cores, 4 threads)
8GB RAM
5400RPM HDD
To this:
Intel Core I7 6700HQ (4 cores, 8 threads)
16GB DDR4 RAM
5400RPM HDD
Unfortunately, after trying to freshly build CM13 for the oneplus one on my new system, it STILL took 3~4 hours to complete and I feel like this 5400RPM drive is completely bottlenecking my CPU. I wasn't hoping for any miracles to happen but I was aiming for a build time of around 1 hour...
Is this drive really destroying my CPU's performance?
Thanks for your feedback!

noahvt said:
Hi!
I just recently decided to switch my AOSP build server because my old one was getting way too slow at building AOSP (it would take around 3~4 hours to build 6.0.1 with ccache). I upgraded from this:
Intel Core I3 2350M (4 cores, 4 threads)
8GB RAM
5400RPM HDD
To this:
Intel Core I7 6700HQ (4 cores, 8 threads)
16GB DDR4 RAM
5400RPM HDD
Unfortunately, after trying to freshly build CM13 for the oneplus one on my new system, it STILL took 3~4 hours to complete and I feel like this 5400RPM drive is completely bottlenecking my CPU. I wasn't hoping for any miracles to happen but I was aiming for a build time of around 1 hour...
Is this drive really destroying my CPU's performance?
Thanks for your feedback!
Click to expand...
Click to collapse
Yes
Sent from my GT-S7580 using Tapatalk

Related

[Q] Android Compiling System Requirements

Hi,
I'm looking at building a new PC that will be dedicated to android development (ICS).
I only have a couple of questions:
1) is there much difference between compiling android on a i5 2500 or Phenom X4 or X6
2) How much hard drive space is recommend? i.e. is a 120GB SSD enough
3) Is 16GB of ram enough
Thanks,
Minooch
minooch said:
Hi,
I'm looking at building a new PC that will be dedicated to android development (ICS).
I only have a couple of questions:
1) is there much difference between compiling android on a i5 2500 or Phenom X4 or X6
2) How much hard drive space is recommend? i.e. is a 120GB SSD enough
3) Is 16GB of ram enough
Thanks,
Minooch
Click to expand...
Click to collapse
More cores are better. Here are the requirements to build it from source:
- 6GB of download.
- 25GB disk space to do a single build.
- 80GB disk space to build all AOSP configs at the same time.
- 16GB RAM recommended, more preferred, anything less will measurably benefit from using an SSD.
- 5+ hours of CPU time for a single build, 25+ minutes of wall time, as measured on a workstation (dual-E5620 i.e. 2x quad-core 2.4GHz HT, with 24GB of RAM, no SSD).
Thanks for the answer - Just thought I would update on my experiences.
I use a Ubuntu 10.04 in VirtualBox (Windows 7 x64)
Core i5 750 @ 3.6Ghz
5GB Ram (for the Virtual - 8GB in total) DDR3 @ 1800mhz approx
4x 1TB Seagate HDDs in RAID 10
Takes about 1Hr 30min to build 4.0.3 using make -j4
It also uses less than 25GB for a single build

[Q] what pc config is needed for compiling

Hi Guys! I read somewhere that compiling need 4Gb Ram! ! ! ! Is it true? I have very old hardware so I'm going to buy a new hardware for start compiling....
thanks
No but it will take alot longer
I compile with 4gigs ram. A little less than 2 hours for full lunch build for 1 device. That's 2 .zips and kernel pieces on Linux Mint 12 no windows. I think those crazy big numbers are needed when you use a virtual machine.
if you dont know linux well id reccomend using ubuntu 10.04 too otherwise you have to mess around with things to get it to build unless they fixed the problems with newer gcc.
Just install Ubuntu 12.04 and build.
The "needs octo-core processor" and "needs infinite RAM" is all just bull****.
But 64-bits is better for building, as 32 - bits needs more packages to install etc etc. And 64-bits means you have more RAM.
Sent from my Galaxy Nexus using Tapatalk 2
I'm building on these specs:
Intel Core 2 Duo @ 2.2ghz
2gb RAM
Ubuntu 10.04 LTS
It takes around 3 hours to do a fresh build off of a make clobber but to do a rebuild on top on another one it takes around half an hour.
The more ram you have the less time for compilation..plus it also depends on architecture...i.e. i7...
compiling-time mostly depends on the processor.
sent mobile
Ubuntu 12.04 LTS
6GB RAM
2.5Ghz Quad Core.
64bit
Compiling for one device (supersonic) takes about 30-45mins for me.
Sent from my PC36100 using xda premium
I'm using a laptop with an Intel Pentium Dual Core T4200 with 4 GB of RAM. It takes a little over 3 hours to compile 4.0.4_r2.1 maguro (Galaxy Nexus GSM).
Same build time in Ubuntu 10.04 and Kubuntu 12.04. I just get more errors in 12.04 and had to do more tweaks in the makefiles.
GalaxyNexusPH said:
I'm using a laptop with an Intel Pentium Dual Core T4200 with 4 GB of RAM. It takes a little over 3 hours to compile 4.0.4_r2.1 maguro (Galaxy Nexus GSM).
Same build time in Ubuntu 10.04 and Kubuntu 12.04. I just get more errors in 12.04 and had to do more tweaks in the makefiles.
Click to expand...
Click to collapse
A 2.5 quad? I think your slightly exaggerating. When I had a 3.5 quad it was slightly over an hour by a few minutes. You should run time with your build command after a make clobber.
Sent from my Nexus S 4G using xda premium
Quad-Core i5 8GB RAM here, ~47 minutes from a make clobber.
lithid-cm said:
A 2.5 quad? I think your slightly exaggerating. When I had a 3.5 quad it was slightly over an hour by a few minutes. You should run time with your build command after a make clobber.
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
Pentium Dual Core T4200
Its only dual core 2.0 GHZ 800MHZ FSB. Its not even Core I3. Its a low end processor.
$time make CC=gcc-4.4 CXX=g++.4.4 -j4 otapackage
real 167m21.740s
user 283m46.792s
sys 18m27.609
GalaxyNexusPH said:
Pentium Dual Core T4200
Its only dual core 2.0 GHZ 800MHZ FSB. Its not even Core I3. Its a low end processor.
$time make CC=gcc-4.4 CXX=g++.4.4 -j4 otapackage
real 167m21.740s
user 283m46.792s
sys 18m27.609
Click to expand...
Click to collapse
I think he meant me there.
Sent from my PC36100 using xda premium

Is my laptop up to snuff to cook ROMs?

Lenovo think pad x120e
4GB ram
320 GB HDD
1.6GHz AMD E-350 dual core CPU
Or do I need to sell it and pay more money?
Sent from my One X using xda premium
mmapcpro said:
Lenovo think pad x120e
4GB ram
320 GB HDD
1.6GHz AMD E-350 dual core CPU
Or do I need to sell it and pay more money?
Sent from my One X using xda premium
Click to expand...
Click to collapse
Should be fine with the 4 gigs of ram, use ccache some decent swap, and you might need to shrink the java emulator size, also be sure to use 64 bit ics+
Here is a commit to help with the java emulator while building
https://github.com/CyanogenMod/android_build/commit/28573da93e0332a9b2cbeeb1d204ef9673172b2a
How about 2 gigs of ram ?? Will it work? Thanks in advance.
sent from my Galaxy W using XDA .
UltimHero said:
How about 2 gigs of ram ?? Will it work? Thanks in advance.
sent from my Galaxy W using XDA .
Click to expand...
Click to collapse
It might work. But very less chance of working in machines less than 4gigs of ram. 4gigs of ram would be the minimum configuration.
Sent from my Xperia Mini using xda app-developers app
I can go up to 8 gigs on this box. You think it would be worth throwing another 4gig stick in?
Sent from my One X using xda premium
mmapcpro said:
I can go up to 8 gigs on this box. You think it would be worth throwing another 4gig stick in?
Sent from my One X using xda premium
Click to expand...
Click to collapse
It's always worth maxing your memory you'll notice good performance gains and will speed up compile times significantly. 4 GB should be no more then $20-$40 so it's a great upgrade for the money
Sent from my SCH-I535 using xda premium
Thanks.
sent from my Galaxy W using XDA .
More RAM?
It should he just about enough to make a ROM, but I think you should install more RAM to your laptop, just in case.
RAM should be fairly easy to install...
Good luck on making your ROM!
2 GB RAM
Core i3 2.20 Ghz
500 GB
Win7 and andLinux installed
It should be no problem.
You see i am running Linux on my win7
Sent from my E15i using xda app-developers app
mpoendi said:
2 GB RAM
Core i3 2.20 Ghz
500 GB
Win7 and andLinux installed
It should be no problem.
You see i am running Linux on my win7
Sent from my E15i using xda app-developers app
Click to expand...
Click to collapse
You haven't got any problems cooking roms?
sent from my Galaxy W using XDA .
I have a 3Gb memory,250Gb hard drive Toshiba satellite laptop with home vista windows premium is this laptop good enough to build ROMs,kernels,apps,etc. Thanks in advance!!!
Sent from my HTC Sensation using xda app-developers app
Mesaman2012 said:
I have a 3Gb memory,250Gb hard drive Toshiba satellite laptop with home vista windows premium is this laptop good enough to build ROMs,kernels,apps,etc. Thanks in advance!!!
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
In order to compile ROM's (AOSP from source) and kernels (From source) you will need to use a UNIX based operating system such as OSX or Linux, personally I would recommend dual booting your laptop with Ubuntu 11.10 to maximize compatibility for compiling ROM's and kernels. For making apps you can use either Linux or Windows, and I would recommend using the IDE Eclipse for Android app development. As far as actually building your hard drive is a little small and could run out of space if you intend on building a bunch of different ROM's and kernels (A full set of AOSP builds is 80+ GB), and with 3 GB of memory compile times, will be pretty slow (For example to compile an AOSP build of Android 4.2 for the Nexus 4 would probably take around 5-8 hours, kernels will take anywhere from 1-2 hours probably) also if your laptop only has a single or dual core processor this will also effect compile times.
O.k. thanks for your reply sir.so could you recommend a Linux computer that I should buy as long as what specs should I get as far as how much memory,hard drive,etc.and out of curiosity what would a computer like this cost me.I want to thank you for your time and expertise. Take care!!!
Sent from my HTC Sensation using xda app-developers app
Mesaman2012 said:
O.k. thanks for your reply sir.so could you recommend a Linux computer that I should buy as long as what specs should I get as far as how much memory,hard drive,etc.and out of curiosity what would a computer like this cost me.I want to thank you for your time and expertise. Take care!!!
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
If your going to buy a pre-built computer with Linux pre-installed your options are limited in regards to what manufactures/boutique builders make desktops and laptops with Linux pre-installed. Here are a couple different configurations I came up with from System76 and ZaReason
Desktops
System76
Wild Dog Performance (wilp9)
Ubuntu 12.10 64 bit
5 Free GB of Ubuntu One Online Storage and Sync
3rd Generation Intel Core i5 3570K ( 3.40GHz - 6MB cache - 4 Cores )
16 GB – 4 x 4 GB - Crucial Sport Dual Channel DDR3
1 GB nVidia GeForce GTX 650
2.0 TB SATA III 6 Gb/s 64 MB Cache
2.0 TB SATA III 6 Gb/s 64 MB Cache
CD-RW / DVD-RW Dual Layer
Internal SD, Memory Stick, Compact Flash Card Reader
Internal PCI Express 802.11 bgn Wifi Card
1 Yr. Ltd. Warranty and 1 Yr. Technical Support
Total Cost: $1350
ZaReason
Limbo 5660
Linux Version: Ubuntu 12.04 LTS
CPU: i5-3570K 3.4 GHz
Desktop Memory: 8 GB DDR3-1600
Desktop Hard Drive Bay1: 500GB 7200rpm
Desktop Hard Drive Bay2: 500 GB 7200rpm
Optical Drive: CD-RW/DVD-RW
Sound Card: Intel HD Audio
PCI Networking: Gigabit Ethernet
Video card: Nvidia GT 630
Power Supply: 350 watts
Warranty: 1 year
Total Cost: $1,100
Laptop
ZaReason
Verix 530
Linux Version: Ubuntu 12.04 LTS - Most Popular
Ivy Bridge Processor: i7-3630QM 2.4-3.4 GHz, 4 cores, 8 threads 2.4-3.4 GHz GHz
Laptop Memory: 8 GB DDR3-1600
Video Card: Nvidia GT 650M 2GB
Laptop HD: 750GB, 7200 RPM
Optical Drive: CD-RW / DVD-RW
WiFi #ZWF: Intel® Centrino® Wireless-N
1st Battery: 6-cell
AC Adapters: 1
Card Reader: MMC/SD/MS
Bluetooth: Included
Webcam: 1.3 megapixels
Warranty: 1 year
System76
Lemur Ultra (lemu4)
Ubuntu 12.10 64 bit
5 Free GB of Ubuntu One Online Storage and Sync
14.1" 720p High Definition LED Backlit Display ( 1366 x 768 )
Intel HD Graphics 4000
3rd Generation Intel Core i7-3630QM Processor ( 2.40GHz 6MB L3 Cache - 4 Cores plus Hyperthreading )
8 GB Dual Channel DDR3 SDRAM at 1600MHz
750 GB 7200 RPM SATA II
United States Keyboard Layout
8X DVD±R/RW/4X +DL Super-Multi Drive
Intel Centrino Advanced-N 6235 - 802.11A/B/G/N Wireless LAN + Bluetooth Combo Module +$20.00
1 Yr. Ltd. Warranty and 1 Yr. Technical Support
Total Cost: $840
Now if your want to build your own linux desktop here is a recommended configuration:
PCPartPicker part list / Price breakdown by merchant / Benchmarks
CPU: Intel Core i7-3770K 3.5GHz Quad-Core Processor ($319.99 @ Newegg)
CPU Cooler: Cooler Master Hyper 212 EVO 82.9 CFM Sleeve Bearing CPU Cooler ($25.99 @ Newegg)
Motherboard: Asus Maximus V Gene Micro ATX LGA1155 Motherboard ($199.99 @ Newegg)
Memory: Corsair Vengeance LP 32GB (4 x 8GB) DDR3-1600 Memory ($149.99 @ Newegg)
Storage: Western Digital Caviar Blue 1TB 3.5" 7200RPM Internal Hard Drive ($86.98 @ Newegg)
Storage: Western Digital Caviar Blue 1TB 3.5" 7200RPM Internal Hard Drive ($86.98 @ Newegg)
Video Card: Gigabyte GeForce GTX 660 2GB Video Card ($217.55 @ Newegg)
Case: Antec DF-35 ATX Mid Tower Case
Power Supply: Corsair Builder 750W 80 PLUS Bronze Certified ATX12V / EPS12V Power Supply ($73.98 @ Newegg)
Optical Drive: Asus DRW-24B3ST/BLK/G/AS DVD/CD Writer ($29.98 @ Newegg)
Total: $1191.43
(Prices include shipping, taxes, and discounts when available.)
(Generated by PCPartPicker 2012-11-27 17:49 EST-0500)
With Ubuntu 12.04 LTS 64-bit (Make sure to select 64-bit from the download list). Let me know if you have any more questions.
Hey if I just wanted to build kernels my laptop would be alright wouldn't it.and are there any books,etc that you could recommend on building kernels.I want to start with small things like kernels and maybe apps. Thanks
Sent from my HTC Sensation using xda app-developers app
Mesaman2012 said:
Hey if I just wanted to build kernels my laptop would be alright wouldn't it.and are there any books,etc that you could recommend on building kernels.I want to start with small things like kernels and maybe apps. Thanks
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
If your just building kernels and some apps then yes, your laptop should be fine. For kernel development it's important to at least have a solid understanding of C, the Linux Kernel, and embedded development for that I would recommend the following books:
Practical C Programming: 3rd Edition
Understanding the Linux Kernel Third Edition
Embedded Linux Primer: A Practical Real-World Approach (2nd Edition)
As far as book for app building goes make sure you understand Java and XML, I would check out these books:
Professional Android 4 Application Development
Head First Java (3rd Edition)
gouthamthemostwanted said:
It might work. But very less chance of working in machines less than 4gigs of ram. 4gigs of ram would be the minimum configuration.
Sent from my Xperia Mini using xda app-developers app
Click to expand...
Click to collapse
I do it with 1 gig of RAM and 18 gigs of SWAP. No joke
Enviado desde mi XT912

Question: How to increase the use of RAM during compiling building.

Hi,
After compiling different ROMS I notices that during the proces, my 8 cores do max out, but my computerram 16GB in total is not used to it's full potential, it stays around 3 / 4 GB. Is this because we compile with / for 32 bit Android? I run a hard machine with dualboot ubuntu/windows 3770K processor, 256 SSD and 1 x 3 TB and 3 1TB harddrives.
ccache is also enabled and working, so i was just wondering why it would not use more computer RAM. while compiling a ROM.
Thanks

suggestion. me what pc/laptop Maximum hardware requirements for custom rom building

i know everything all how to make build i already pc but very old i,m thinking buy new lappy:laugh: anyone plz...suggestion. me what pc/laptop hardware requirements for custom rom building (ADV.. Thank You)
As much ram as possible, the more the better. Not sure of processor but the faster the better. As large a hard drive as possible. Compiling for use a lot of space. You'll need good cooling as well.
Sent from my POCO F1 using XDA Labs
I've played with 16GB of RAM and it uses around half of it. Eight logical cores on I7 SkyLake fully utilized so more cores is more power. Also it eats almost whole 256GB SSD drive when using 50GB CCACHE. SSD is must have.
Also good Internet connection is helpful as it download almost 40GB of files on first repo sync.
P.S. all on Linux.
guhvanoh said:
As much ram as possible, the more the better. Not sure of processor but the faster the better. As large a hard drive as possible. Compiling for use a lot of space. You'll need good cooling as well.
Sent from my POCO F1 using XDA Labs
Click to expand...
Click to collapse
thank you very much for info...
crow6 said:
I've played with 16GB of RAM and it uses around half of it. Eight logical cores on I7 SkyLake fully utilized so more cores is more power. Also it eats almost whole 256GB SSD drive when using 50GB CCACHE. SSD is must have.
Also good Internet connection is helpful as it download almost 40GB of files on first repo sync.
P.S. all on Linux.
Click to expand...
Click to collapse
Thank you very much for info...

Categories

Resources