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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Mac Build Instructions 1 # Mac Build Instructions
2 2
3 [TOC] 3 [TOC]
4 4
5 ## Prerequisites 5 ## Prerequisites
6 6
7 * A Mac running 10.9+. 7 * A Mac running 10.9+.
8 * http://developer.apple.com/tools/xcode/XCode, 5+ 8 * http://developer.apple.com/tools/xcode/XCode, 5+
9 * Install 9 * Install
10 [gclient](http://dev.chromium.org/developers/how-tos/install-depot-tools), 10 [gclient](http://dev.chromium.org/developers/how-tos/install-depot-tools),
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 ((++i)) 200 ((++i))
201 done 201 done
202 202
203 open -nWa /Applications/Emacs.app/Contents/MacOS/Emacs --args --no-desktop \ 203 open -nWa /Applications/Emacs.app/Contents/MacOS/Emacs --args --no-desktop \
204 "${full_paths[@]}" 204 "${full_paths[@]}"
205 ``` 205 ```
206 206
207 and in your `.bashrc` or similar, 207 and in your `.bashrc` or similar,
208 208
209 export EDITOR=$HOME/bin/EmacsEditor 209 export EDITOR=$HOME/bin/EmacsEditor
210
211 ## Improving performance of `git status`
212
213 `git status` is used frequently to determine the status of your checkout. Due
214 to the number of files in Chromium's checkout, `git status` performance can be
215 quite variable. Increasing the system's vnode cache appears to help. By
216 default, this command:
217
218 sysctl -a | egrep kern\..*vnodes
219
220 Outputs `kern.maxvnodes: 263168` (263168 is 257 * 1024). To increase this
221 setting:
222
223 sudo sysctl kern.maxvnodes=$((512*1024))
224
225 Higher values may be appropriate if you routinely move between different
226 Chromium checkouts. This setting will reset on reboot, the startup setting can
227 be set in `/etc/sysctl.conf`:
228
229 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf
230
231 Or edit the file directly.
232
233 If your `git --version` reports 2.6 or higher, the following may also improve
234 performance of `git status`:
235
236 git update-index --untracked-cache
OLDNEW
« 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