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

Side by Side Diff: docs/ios/build_instructions.md

Issue 2876983004: [Docs] Update the Mac and iOS docs for `git status` perf improvements. (Closed)
Patch Set: is -> ends with Created 3 years, 7 months 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 | docs/mac_build_instructions.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Checking out and building Chromium for iOS 1 # Checking out and building Chromium for iOS
2 2
3 There are instructions for other platforms linked from the 3 There are instructions for other platforms linked from the
4 [get the code](../get_the_code.md) page. 4 [get the code](../get_the_code.md) page.
5 5
6 ## Instructions for Google Employees 6 ## Instructions for Google Employees
7 7
8 Are you a Google employee? See 8 Are you a Google employee? See
9 [go/building-chrome](https://goto.google.com/building-chrome) instead. 9 [go/building-chrome](https://goto.google.com/building-chrome) instead.
10 10
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 ## Tips, tricks, and troubleshooting 254 ## Tips, tricks, and troubleshooting
255 255
256 If you have problems building, join us in `#chromium` on `irc.freenode.net` and 256 If you have problems building, join us in `#chromium` on `irc.freenode.net` and
257 ask there. As mentioned above, be sure that the 257 ask there. As mentioned above, be sure that the
258 [waterfall](https://build.chromium.org/buildbot/waterfall/) is green and the tre e 258 [waterfall](https://build.chromium.org/buildbot/waterfall/) is green and the tre e
259 is open before checking out. This will increase your chances of success. 259 is open before checking out. This will increase your chances of success.
260 260
261 ### Improving performance of `git status` 261 ### Improving performance of `git status`
262 262
263 #### Increase the vnode cache size
264
263 `git status` is used frequently to determine the status of your checkout. Due 265 `git status` is used frequently to determine the status of your checkout. Due
264 to the large number of files in Chromium's checkout, `git status` performance 266 to the large number of files in Chromium's checkout, `git status` performance
265 can be quite variable. Increasing the system's vnode cache appears to help. 267 can be quite variable. Increasing the system's vnode cache appears to help.
266 By default, this command: 268 By default, this command:
267 269
268 ```shell 270 ```shell
269 $ sysctl -a | egrep kern\..*vnodes 271 $ sysctl -a | egrep kern\..*vnodes
270 ``` 272 ```
271 273
272 Outputs `kern.maxvnodes: 263168` (263168 is 257 * 1024). To increase this 274 Outputs `kern.maxvnodes: 263168` (263168 is 257 * 1024). To increase this
273 setting: 275 setting:
274 276
275 ```shell 277 ```shell
276 $ sudo sysctl kern.maxvnodes=$((512*1024)) 278 $ sudo sysctl kern.maxvnodes=$((512*1024))
277 ``` 279 ```
278 280
279 Higher values may be appropriate if you routinely move between different 281 Higher values may be appropriate if you routinely move between different
280 Chromium checkouts. This setting will reset on reboot, the startup setting can 282 Chromium checkouts. This setting will reset on reboot, the startup setting can
281 be set in `/etc/sysctl.conf`: 283 be set in `/etc/sysctl.conf`:
282 284
283 ```shell 285 ```shell
284 $ echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf 286 $ echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf
285 ``` 287 ```
286 288
287 Or edit the file directly. 289 Or edit the file directly.
288 290
289 If `git --version` reports 2.6 or higher, the following may also improve 291 #### Configure git to use an untracked cache
290 performance of `git status`: 292
293 If `git --version` reports 2.8 or higher, try running
294
295 ```shell
296 $ git update-index --test-untracked-cache
297 ```
298
299 If the output ends with `OK`, then the following may also improve performance of
300 `git status`:
301
302 ```shell
303 $ git config core.untrackedCache true
304 ```
305
306 If `git --version` reports 2.6 or higher, but below 2.8, you can instead run
291 307
292 ```shell 308 ```shell
293 $ git update-index --untracked-cache 309 $ git update-index --untracked-cache
294 ``` 310 ```
295 311
296 ### Xcode license agreement 312 ### Xcode license agreement
297 313
298 If you're getting the error 314 If you're getting the error
299 315
300 > Agreeing to the Xcode/iOS license requires admin privileges, please re-run as 316 > Agreeing to the Xcode/iOS license requires admin privileges, please re-run as
301 > root via sudo. 317 > root via sudo.
302 318
303 the Xcode license hasn't been accepted yet which (contrary to the message) any 319 the Xcode license hasn't been accepted yet which (contrary to the message) any
304 user can do by running: 320 user can do by running:
305 321
306 ```shell 322 ```shell
307 $ xcodebuild -license 323 $ xcodebuild -license
308 ``` 324 ```
309 325
310 Only accepting for all users of the machine requires root: 326 Only accepting for all users of the machine requires root:
311 327
312 ```shell 328 ```shell
313 $ sudo xcodebuild -license 329 $ sudo xcodebuild -license
314 ``` 330 ```
OLDNEW
« no previous file with comments | « no previous file | docs/mac_build_instructions.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698