jdk8 build times
Pete Brunet
peter.brunet at oracle.com
Fri Sep 13 15:48:09 UTC 2013
Hi, After trying the following with no significant improvement
- remove Norton 360 anti-virus
- defrag hard file
- upgrade cygwin and java boot jre
- remove the search index attribute from all files on the entire hard file
- turned off some processes that seemed to be using disk cycles: Acronis
True Image, Firefox, Skype.
I installed an SSD. Things are much better.
WinSat disk:
> Average Read Time with Sequential Writes 0.313 ms
> Latency: 95th Percentile 0.410 ms
> Average Read Time with Random Writes 0.438 ms
Numbers from before: 22.161 ms, 123.878 ms, 20.880 ms
Make clean now takes about a minute, before it was anywhere from 15 to
30 minutes.
Make all now runs in 49 min. Here is the build time summary:
00:01:12 corba
00:03:41 demos
00:05:11 docs
00:05:35 hotspot
00:05:39 images
00:01:04 jaxp
00:04:28 jaxws
00:19:38 jdk
00:01:58 langtools
00:00:37 nashorn
00:49:16 TOTAL
This is with Norton 360 real time virus checking on, though configured
so most build related directories are ignored during real time
checking. Disabling real time checking lowered build time by about
another 4 min. Turning off Process Explorer (which I use for
cpu/memory/disk monitoring) and Norton 360's performance checking
lowered the build time by only another minute.
Before make all was taking anywhere from a little over an hour to up to
2.5 hours. Here are the prior build times using the prior disk
(probably with Norton 360 disabled):
00:01:43 corba
00:05:55 demos
00:12:40 docs
00:07:52 hotspot
00:10:50 images
00:02:23 jaxp
00:05:28 jaxws
00:45:09 jdk
00:02:27 langtools
00:01:06 nashorn
01:35:49 TOTAL
Observation: The 2 cores are now usually fully saturated during the
build (thanks to not being as IO bound) so will start thinking about a 4
core machine :-)
Some things I learned about SSDs:
- Leave 25-30% unallocated (non-partitioned) so the technology can work
properly.
- Make sure Win 7 has TRIM enabled. In my case Win7 did enable it so
shouldn't be an issue. See:
http://www.ghacks.net/2010/09/14/verify-that-trim-is-enabled-in-windows-7/
- This looks like a good site for SSD info:
http://www.thessdreview.com
Some things I noticed along the way in the process of trying to fix this:
- native Fedora on the same hardware runs much faster
- Fedora in a VirtualBox VM on Win7 runs about as slow as the cygwin
Pete
More information about the build-dev
mailing list