Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3276)

Unified Diff: docs/mac_build_instructions.md

Issue 1419083009: [doc] System settings to improve OSX git-status performance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/mac_build_instructions.md
diff --git a/docs/mac_build_instructions.md b/docs/mac_build_instructions.md
index 9837e4f08eb54a7022a35b29cec133f4c69d62ce..10c9e5d44d9b06241569022a7bf2aad44177c4fa 100644
--- a/docs/mac_build_instructions.md
+++ b/docs/mac_build_instructions.md
@@ -207,3 +207,30 @@ open -nWa /Applications/Emacs.app/Contents/MacOS/Emacs --args --no-desktop \
and in your `.bashrc` or similar,
export EDITOR=$HOME/bin/EmacsEditor
+
+## Improving performance of `git status`
+
+`git status` is used frequently to determine the status of your checkout. Due
+to the number of files in Chromium's checkout, `git status` performance can be
+quite variable. Increasing the system's vnode cache appears to help. By
+default, this command:
+
+ sysctl -a | egrep kern\..*vnodes
+
+Outputs `kern.maxvnodes: 263168` (263168 is 257 * 1024). To increase this
+setting:
+
+ sudo sysctl kern.maxvnodes=$((512*1024))
+
+Higher values may be appropriate if you routinely move between different
+Chromium checkouts. This setting will reset on reboot, the startup setting can
+be set in `/etc/sysctl.conf`:
+
+ echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf
+
+Or edit the file directly.
+
+If your `git --version` reports 2.6 or higher, the following may also improve
+performance of `git status`:
+
+ git update-index --untracked-cache
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698