Skip to content

Instantly share code, notes, and snippets.

View oschaaf's full-sized avatar

Otto van der Schaaf oschaaf

View GitHub Profile
@oschaaf
oschaaf / explore-merge-1.24-into-maistra-2.3.sh
Last active November 3, 2022 11:58
explore merging 1.24. into maistra-2.3
#!/bin/bash
# docker run --rm -it -v $(pwd):/work -v \
# /home/oschaaf/.cache/bazel:/home/user/.cache/bazel \
# -u $(id -u):$(id -g)
# --entrypoint bash \
# quay.io/maistra-dev/maistra-builder:2.4
# git log --cherry-pick --right-only --oneline oschaaf-tmp...envoy/release/v1.24
@oschaaf
oschaaf / tmp.diff
Last active June 9, 2022 21:50
conditionally patch v8 repo
diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl
index 8a7999b03e..2fac858114 100644
--- a/bazel/repositories.bzl
+++ b/bazel/repositories.bzl
@@ -210,6 +210,7 @@ def envoy_dependencies(skip_targets = []):
_com_github_curl()
_com_github_envoyproxy_sqlparser()
_com_googlesource_chromium_v8()
+ _com_googlesource_chromium_v8_ppc()
_com_github_google_quiche()
@oschaaf
oschaaf / ci.log
Created April 1, 2022 08:39
sample log maistra/istio/proxy failure - build --test_env=HEAPCHECK=minimal stripped
This file has been truncated, but you can view the full file.
+ source /opt/rh/gcc-toolset-9/enable
++ export PATH=/opt/rh/gcc-toolset-9/root/usr/bin:/usr/local/google-cloud-sdk/bin:/rust/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/opt/rh/gcc-toolset-9/root/usr/bin:/usr/local/google-cloud-sdk/bin:/rust/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ export MANPATH=/opt/rh/gcc-toolset-9/root/usr/share/man:
++ MANPATH=/opt/rh/gcc-toolset-9/root/usr/share/man:
++ export INFOPATH=/opt/rh/gcc-toolset-9/root/usr/share/info
++ INFOPATH=/opt/rh/gcc-toolset-9/root/usr/share/info
++ export PCP_DIR=/opt/rh/gcc-toolset-9/root
++ PCP_DIR=/opt/rh/gcc-toolset-9/root
+++ rpm --eval '%{_libdir}'
@oschaaf
oschaaf / tmp.cc
Created August 29, 2020 18:36
envoy log macros
// use "clang -lstdc++ xxx.cc && ./a.out" to run & test
#include <unistd.h>
#include <atomic>
#include <chrono>
#include <iostream>
using namespace std::chrono_literals;
@oschaaf
oschaaf / 1-exploration.md
Last active May 17, 2020 19:09
istio/envoy v8 flags

exploring profiling wasm/v8

local repo paths

  1. istio/proxy: /home/oschaaf/code/istio/proxy
  2. istio/envoy: /home/oschaaf/code/istio/envoy -- ^^ uses this, overriden in userbazelrc
  3. v8: /home/oschaaf/code/v8/v8 -> for code exploration only. not build/linked

Build istio envoy & wasm plugins with the diffs supplied below

@oschaaf
oschaaf / RELEASE_NOTES.md
Last active November 26, 2019 22:31
Apache Pagespeed (incubating) release notes
@oschaaf
oschaaf / profile.md
Last active October 8, 2019 12:57
shared_ptr pprof peek

Envoy / --concurrency 1

      File: nighthawk_test_server
Type: cpu
Active filters:
   focus=shared_ptr
Showing nodes accounting for 1.37s, 5.13% of 26.73s total
----------------------------------------------------------+-------------
      flat  flat%   sum%        cum   cum%   calls calls% + context 	 	 
@oschaaf
oschaaf / Flamegraphs.md
Last active December 8, 2021 17:31
Profiling Envoy with Flame-graphs
@oschaaf
oschaaf / ng.yaml
Last active September 5, 2019 22:30
NH yaml sample
results:
- name: worker_0
statistics:
- count: 19
id: benchmark_http_client.queue_to_connect
percentiles:
- percentile: 0
count: 1
duration: 0.000011357s
- percentile: 0.1
@oschaaf
oschaaf / fortio.md
Last active April 16, 2019 15:00
reproduction

Fortio

taskset -c 0 fortio load -qps 1000 -c 100 -t 60s http://127.0.0.1 &&\
    taskset -c 0 fortio load -qps 1000 -c 100 -t 60s http://127.0.0.1:10000

Direct