--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Can you update the public build/workflow instructions to mention this?
On Wed, Oct 21, 2015 at 2:02 PM, Levi Weintraub <le...@chromium.org> wrote:
+1Slow git status/diff/whatever was driving me crazy on Mac. Making this change on my Mac desktop and Laptop made things far more usable.
On Wed, Oct 21, 2015 at 1:39 PM, Scott Hess <sh...@chromium.org> wrote:
If you're like me, you say "git status" about a thousand times per day. With the recent repo merge, I found it frequently was very slow, often up to 40 seconds, even on a beefy machine with SSD. Debugging it leads me to believe it's mostly lstat() calls.This seems to increase the cache backing the info lstat references:sudo sysctl kern.maxvnodes=$((512*1024))The default setting is 263168 (257*1024). Running git-status after reboot sends kern.num_vnodes from ~21k directly to the max of 263168. After the above change to increase the max kern.num_vnodes will go a bit higher but then be more stable.To make it take effect after reboot:echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.confOr edit the file, of course.My understanding is that the default setting is derived from amount of physical memory, but I get 263168 on both 16GB machines and 64GB machines, so maybe it gets capped. I expect it to be safe enough to set it even higher than this, but it probably only makes sense to do so if you routinely bounce between multiple repos (I have such a setup via git-new-workdir).If you are running git 2.6 or higher, this might also help, by reducing the number of lstat calls required in the first place:git update-index --untracked-cache-scott
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
>>>> an email to chromium-dev+unsubscribe@chromium.org.
On Windows (Z840, SSD) I see git status taking ~1.3 s with --no-untracked-cache and 2.0 s with --untracked-cacheThat surprised me. I didn't expect --untracked-cache to be a pessimization on Windows, but the results are pretty consistent. I also didn't expect Windows to be faster than OSX!