Skip to content

Instantly share code, notes, and snippets.

@indygreg
indygreg / gist:95c4fbfec3ef1f1de141
Created May 15, 2015 00:38
packfile chain depth for gecko-dev
$ time git verify-pack -s objects/pack/pack-f72ba52fb32fecd2c676012d66c71433c657adfd.pack
non delta: 850066 objects
chain length = 1: 430167 objects
chain length = 2: 353206 objects
chain length = 3: 242783 objects
chain length = 4: 201341 objects
chain length = 5: 173916 objects
chain length = 6: 147088 objects
chain length = 7: 128371 objects
chain length = 8: 113223 objects
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31130 gitolite 20 0 14.2g 10g 3.4g S 1703.3 18.1 148:59.53 git
@indygreg
indygreg / gist:6b2ce94a0faa60448ef4
Created May 8, 2015 01:00
git server process overload
root 15909 0.0 0.0 177536 4028 ? Ss May07 0:11 /usr/sbin/httpd
apache 10651 0.0 0.0 183644 9280 ? S May07 0:06 \_ /usr/sbin/httpd
2351 14050 0.0 0.0 38868 5716 ? S May07 0:00 | \_ /usr/bin/perl /usr/share/gitolite3/gitolite-shell
2351 15821 0.0 0.0 18364 1048 ? S May07 0:00 | \_ git http-backend
2351 15869 0.0 0.0 17420 1156 ? S May07 0:00 | \_ git-http-backend
2351 16007 0.0 0.0 18364 1052 ? S May07 0:00 | \_ git upload-pack --stateless-rpc .
2351 16093 0.0 0.0 1219344 3376 ? S May07 0:06 | \_ git-upload-pack --stateless-rpc .
2351 16264 0.4 8.7 9085004 5392312 ? S May07 1:34 | \_ git pack-objects --revs --thin --stdout --delta-base-offset
apache 4841 0.4 0.0 180792 6640 ? S May07 0:16 \_ /usr/sbin/httpd
2351 14882 0.0 0.0 38868 5716 ? S 00:59 0:0
@indygreg
indygreg / OS X .app sizes in KB
Created May 30, 2014 00:26
Firefox install sizes by release
25848 Firefox 1.0.app
25540 Firefox 1.0.8.app
47632 Firefox 1.5.0.12.app
51392 Firefox 2.0.app
48876 Firefox 2.0.0.20.app
46612 Firefox 3.0.app
46592 Firefox 3.0.18.app
51912 Firefox 3.5.app
51864 Firefox 3.5.9.app
54012 Firefox 3.6.9.app
@indygreg
indygreg / README.rst
Last active August 29, 2015 13:58
Firefox source repository metrics
@indygreg
indygreg / builbot-slave-efficiency.py
Last active December 21, 2015 20:09
Obtain efficiency of buildbot slaves.
# The mozautomation package can be found at https://hg.mozilla.org/users/gszorc_mozilla.com/hgext-gecko-dev/
# Usage: python this_script.py 2013-08-25 4
import datetime
import sys
import time
from mozautomation.buildbotdata import BuildbotDump
start, count = sys.argv[1:]
@indygreg
indygreg / Dockerfile
Created May 19, 2013 18:37
Dockerfile for Firefox development
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Create a build and development environment for Firefox.
FROM ubuntu:12.10
MAINTAINER Gregory Szorc "gps@mozilla.com"
RUN apt-get update
@indygreg
indygreg / monthly.tsv
Created May 6, 2013 18:33
Mozilla Automation Load
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 3 columns, instead of 1. in line 1.
Month Jobs Total Seconds
2009-10 86282 145708647
2009-11 73745 104793047
2009-12 106958 140034276
2010-01 129051 139464570
2010-02 127558 127330968
2010-03 154582 240207284
2010-04 129628 165059589
2010-05 153820 234477436
2010-06 233934 366909207
@indygreg
indygreg / hgrc
Last active December 16, 2015 23:09
Mercurial config
[extensions]
color =
graphlog =
histedit =
mq =
pager =
progress =
purge =
rebase =
transplant =
@indygreg
indygreg / requirements.txt
Last active December 16, 2015 20:10
Gecko session recording
For the *current* session, FHR needs the following:
c1) The UTC day the session started
c2) The current total length of the session in seconds
c3) {main, firstPaint, sessionRestored} times (from nsIAppStartup or equivalent)
c4) User activity for this session. Currently this is recorded as a count of the number of user-interaction-active observers that were fired.
For *previous* sessions, FHR needs:
p1) All of the above