Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
1d5d128
Custom profiling commands & flamegraphs
oschaaf Apr 15, 2020
70b6e52
Docker linting, fix TODO
oschaaf Apr 16, 2020
93da236
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 16, 2020
81d4d7a
Docker lint tweak
oschaaf Apr 16, 2020
ee62a80
Add perf label to flamegraph filename
oschaaf Apr 16, 2020
689021b
Deduplicate redundant functionality
oschaaf Apr 16, 2020
a3f5587
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 17, 2020
bffad09
Dockerfile.perf linting: pin package versions
oschaaf Apr 17, 2020
6425935
bash linting: double quote arg
oschaaf Apr 17, 2020
81f4d4d
Add licence / copyright banner
oschaaf Apr 17, 2020
b37cea8
Python whitespace linting fix
oschaaf Apr 17, 2020
d5d5d59
Markdown linting fixes
oschaaf Apr 17, 2020
4871583
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 18, 2020
eb6090f
Move profiling thread start into function
oschaaf Apr 20, 2020
6730880
Python linting fix
oschaaf Apr 20, 2020
5e5ce41
Small fixes
oschaaf Apr 27, 2020
f265cfd
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 27, 2020
9e9320a
lint whitespace
oschaaf Apr 27, 2020
4dda5a9
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 27, 2020
1377ee3
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 28, 2020
2886e04
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 29, 2020
fa42cab
Sync up with the latest changes
oschaaf Apr 29, 2020
680b10c
linting fixes + fix in fortio.yaml
oschaaf Apr 29, 2020
30342ff
Changes ot minimize the diff
oschaaf Apr 29, 2020
0b9e851
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf Apr 30, 2020
2fccdd6
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf May 3, 2020
83a8e40
Tweak flamegraph file naming
oschaaf May 3, 2020
94f6120
Fix NH-mode --ingress option
oschaaf May 3, 2020
7f28c4c
Lint fix
oschaaf May 4, 2020
e274665
Small enhancenments/fixes
oschaaf May 4, 2020
b96687e
Fix hang, improve error handling. Doc enhancements.
oschaaf May 5, 2020
17d136a
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf May 5, 2020
aae1f19
Lint change in runner.py
oschaaf May 5, 2020
fdfe910
Flag for allowing short runs. Doc pagefault flamgraphing.
oschaaf May 5, 2020
47c63f5
runner.py: add --envoy_profiler option
oschaaf May 8, 2020
b2aa8f0
Lint fixes
oschaaf May 8, 2020
1c5a3dd
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf May 8, 2020
b19423b
Markdown lint fixes
oschaaf May 8, 2020
70e8f5a
Add scrape annotations for prom. node exporter
oschaaf May 13, 2020
e641309
network flakes in Ci: Add hard coded single retry per test execution
oschaaf May 13, 2020
2d71dd1
Remove line of code for debugging
oschaaf May 13, 2020
bce6a4f
Tweaks for bleeding edge istio
oschaaf May 13, 2020
50a2a63
Merge remote-tracking branch 'upstream/master' into profiling
oschaaf May 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tweaks for bleeding edge istio
Signed-off-by: Otto van der Schaaf <[email protected]>
  • Loading branch information
oschaaf committed May 13, 2020
commit bce6a4f97bc98ced31ff89e482d8b338feb57d8b
2 changes: 1 addition & 1 deletion perf/benchmark/flame/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ file system as well as priviliges to install new packages for the sidecar contai
command (re)configures istio to satisfy these requirements:

```bash
istioctl manifest apply --set "values.global.proxy.privileged=true,values.global.proxy.enableCoreDump=true"
istioctl manifest apply --set "values.global.proxy.enableCoreDump=true" --set "values.global.proxy.privileged=true"
```

After doing so `runner.py` can be run with `--envoy_profiler [heapprofiler|cpuprofiler]`. This will start/stop
Expand Down
4 changes: 2 additions & 2 deletions perf/benchmark/runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def run_envoy_profiler(self, exec_cmd, podname, profile_name, envoy_profiler, la
script = script + " go get -u github.com/google/pprof"
print(getoutput("{exec_cmd} \"{script}\"".format(exec_cmd=exec_cmd_on_pod, script=script)))

script = "rm -r /tmp/envoy; cp -r /var/log/envoy/ /tmp/envoy; cp -r /lib/x86_64-linux-gnu /tmp/envoy/lib; cp /usr/local/bin/envoy /tmp/envoy/lib/envoy"
script = "rm -r /tmp/envoy; cp -r /var/lib/istio/data/ /tmp/envoy; cp -r /lib/x86_64-linux-gnu /tmp/envoy/lib; cp /usr/local/bin/envoy /tmp/envoy/lib/envoy"
print(getoutput("{exec_cmd} \"{script}\"".format(exec_cmd=exec_cmd_on_pod, script=script)))
output_name = "tmp.svg"

Expand Down Expand Up @@ -343,7 +343,7 @@ def maybe_start_profiling_threads(self, labels, perf_label):
namespace=os.environ.get("NAMESPACE", "twopods"),
podname=pod
)
script = "set -euo pipefail; sudo rm -rf {dir} || true; sudo mkdir -p {dir}; sudo chmod 777 {dir};".format(dir="/var/log/envoy")
script = "set -euo pipefail; sudo rm -rf {dir}/* || true; sudo mkdir -p {dir}; sudo chmod 777 {dir};".format(dir="/var/lib/istio/data/")
print(getoutput("{exec_cmd} \"{script}\"".format(exec_cmd=exec_cmd_on_pod, script=script)))
threads.append(Thread(target=self.run_envoy_profiler, args=[
exec_cmd_on_pod, pod, "envoy-" + self.envoy_profiler, self.envoy_profiler, labels + perf_label]))
Expand Down