This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
___ Begin jemalloc statistics ___ | |
Version: 4.0.4-0-g91010a9e2ebfc84b1ac1ed7fdde3bfed4f65f180 | |
Assertions disabled | |
Run-time option settings: | |
opt.abort: false | |
opt.lg_chunk: 21 | |
opt.dss: "secondary" | |
opt.narenas: 1 | |
opt.lg_dirty_mult: 3 (arenas.lg_dirty_mult: 3) | |
opt.stats_print: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[==========] Running 23 tests from 1 test case. | |
[----------] Global test environment set-up. | |
[----------] 23 tests from SubdocPerfTest | |
[ RUN ] SubdocPerfTest.Array5k_PushFirst | |
[ OK ] SubdocPerfTest.Array5k_PushFirst (218 ms) | |
[ RUN ] SubdocPerfTest.Array5k_PushLast | |
[ OK ] SubdocPerfTest.Array5k_PushLast (371 ms) | |
[ RUN ] SubdocPerfTest.Array5k_AddUnique | |
[ OK ] SubdocPerfTest.Array5k_AddUnique (525 ms) | |
[ RUN ] SubdocPerfTest.Array5k_RemoveBaseline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sed -i -e 's/mirror.centos.org\/centos/vault.centos.org/' /etc/yum.repos.d/CentOS-Base.repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote fetch="git://github.com/daverigby/" name="daverigby"/> | |
<!-- <remove-project name="build" /> --> | |
<project name="build" path="djr-cbbuild" remote="daverigby" revision="watson" groups="kv" /> | |
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
‡ git show --stat 7c8aa164|grep \| | cut -f 2 -d ' ' | xargs -n1 git blame -M -C | grep 7c8aa164 | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 138) src/dcp/dcpconnmap.cc | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 169) src/tapconnmap.cc | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 198) src/dcp/dcpconnmap.cc | |
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 225) src/tapconnmap.cc | |
7c8aa164 src/backfill.h (Daniel Owen 2016-03-02 15:31:34 +0000 34) #include "tapconnmap.h" | |
7c8aa164 src/checkpoint_remover.cc (Daniel Owen 2016-03-02 15:31:34 +0000 21) #include "dcp/dcpconnmap.h" | |
7c8aa164 src/checkpoint_remover.cc (Daniel Owen 2016-03-02 15:31:34 +0000 26) #include "tapconnmap.h" | |
7c8aa164 src/connmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 38) * A Callback task for connection notifier | |
7c8aa164 src/connmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 18) #pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perf report -g 'graph,0.5,caller' | |
# graph: Absoute overhead rates | |
# 0.5: | |
# caller: inverted caller based call graph | |
From: https://www.youtube.com/watch?v=nXaxk27zwlk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (label == "windows") { | |
// Skip running unit tests on Windows due to CBD-1740 | |
return [ "SKIP_UNIT_TESTS": 1 ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Overall container usage: | |
docker stats $(docker ps --format="{{.Names}}") | |
# Inside a given container: | |
docker exec ubuntu12-cv-02 ps aux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ubuntu 16.04: | |
sud apt-get install -y libc++-dev libc++abi-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <netinet/in.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
void die(const char *f) | |
{ | |
printf("%s: %s\n", f, strerror(errno)); |