On 2016-11-24 7:04 PM, Nathan Froyd wrote:
> On Wed, Nov 23, 2016 at 4:31 PM, Mike Hommey <m...@glandium.org> wrote:
>> I know OSX can be bad with I/O, but that seems unusually bad. IIRC gps
>> found that there's a relatively low limit to the number of files or
>> inodes that can be in cache, and a working tree of m-c alone is close
>> to the limit, so changing that configuration could help.
> 
> Is this the ken.maxvnodes sysctl setting?  You can change it for your
> current session with:
> 
> sudo sysctl kern.maxvnodes=$((512*1024))
> 
> You may want to experiment with higher settings depending on RAM, etc.
> You can change it permanently with:
> 
> echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf
> 
> (settings per 
> https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md#Improving-performance-of)
> 
> I've found on my (several years old) Mac that changing this setting
> does indeed make a significant performance difference.

Thank you!

Doing this reduced the "reading moz.build files" stage of build-backend
down to about 14s, reliably every time.  That seems to suggest that
everything now fits into the cache (I'm now experimenting with a higher
value since I have tons of unused RAM.)

The entire runtime of build-backend now on an unchanged tree is about
25-28s, which is much higher than I would like...  :(
_______________________________________________
dev-builds mailing list
dev-builds@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to