-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2022.11.01-22:36 2022.11.01-22:56 2022.11.01-23:02 2022.11.01-23:06 2022.11.01-23:09 2022.11.01-23:13 2022.11.01-23:14 2022.11.01-23:16 2022.11.01-23:19 2022.11.01-23:22 2022.11.04-00:24 2022.11.04-01:12 2022.11.04-01:12 2022.11.04-01:13 2022.11.04-02:40 2022.11.04-06:58 2022.11.04-07:02 2022.11.08-09:15 2022.11.09-00:20 go mod 2022.11.09-00:21 2022.11.09-00:22 2022.11.09-00:32 2022.11.09-00:35 2022.11.09-00:42 2022.11.09-08:53 2022.11.09-09:01 2022.11.09-10:00 2022.11.11-13:46 2022.11.11-13:50 2022.11.11-14:09 2022.11.10-22:35 2022.11.10-23:32 performance log DEV 2022.11.11-13:43 2022.11.11-13:58 2022.11.11-14:11 2022.11.11-23:22
- Loading branch information
Showing
14 changed files
with
233 additions
and
85 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
maxIpfixMessageLen: 100 | ||
timerFinishedDrainSeconds: 1 | ||
timerForceDrainSeconds: 30 | ||
timerTemplateFlushSeconds: 60 | ||
timerFinishedDrainSeconds: 10000 | ||
timerForceDrainSeconds: 10 | ||
timerTemplateFlushSeconds: 100000 | ||
outputs: | ||
- log: | ||
file: /tmp/flowlog.json | ||
hooks: | ||
- name: hostname addition | ||
command: ./misc/hook_command_example_dummy.sh | ||
- name: shell to resolve hostname | ||
shell: | | ||
#!/bin/sh | ||
echo `cat` | jq --arg hostname $(hostname) '. + {hostname: $hostname}' | ||
- name: shell to resolve ifname from ifindex | ||
shell: | | ||
#!/bin/sh | ||
IN=$(cat) | ||
I_IDX=$(echo $IN | jq .ingressIfindex -r) | ||
E_IDX=$(echo $IN | jq .egressIfindex -r ) | ||
I_NAME=$(ip -n ns0 -j link | jq --argjson idx $I_IDX '.[] | select(.ifindex == $idx) | .ifname' -r) | ||
E_NAME=$(ip -n ns0 -j link | jq --argjson idx $E_IDX '.[] | select(.ifindex == $idx) | .ifname' -r) | ||
echo $IN | jq --arg i_name $I_NAME --arg e_name $E_NAME '. + {ingressIfname: $i_name, egressIfname: $e_name}' | ||
# - command: /var/run/flowctl/hookbatch_all1.sh | ||
- command: /var/run/flowctl/hookbatch_all2.sh | ||
# - shell: | | ||
# #!/bin/sh | ||
# jq '[.[] | . + {foo1:"foo1"}]' \ | ||
# | jq '[.[] | . + {foo2:"foo2"}]' \ | ||
# | jq '[.[] | . + {foo3:"foo3"}]' \ | ||
# | jq '[.[] | . + {foo4:"foo4"}]' \ | ||
# | jq '[.[] | . + {foo5:"foo5"}]' \ | ||
# | jq '[.[] | . + {foo6:"foo6"}]' \ | ||
# | jq '[.[] | . + {foo7:"foo7"}]' \ | ||
# | jq '[.[] | . + {foo8:"foo8"}]' | ||
# - shell: | | ||
# #!/bin/sh | ||
# jq '[.[] | . + {foo1:"foo1",foo2:"foo2",foo3:"foo3",foo4:"foo4",foo5:"foo5",foo6:"foo6",foo7:"foo7",foo8:"foo8"}]' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python3 | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
||
labels = ['34', '66', '130', '258'] | ||
nobatch_many_jq = [2087720, 4070806, 7964851, 15761758] | ||
nobatch_one_jq = [1075662, 2096756, 4110590, 8167249] | ||
batch_many_jq = [(69832+74551+70318)/3, | ||
(75263+78929+78031)/3, | ||
(99978+96594+95671)/3, | ||
(130711+127055+129459)/3] | ||
batch_one_jq = [(36970+38420+34403)/3, | ||
(40202+39713+39580)/3, | ||
(44911+45686+47030)/3, | ||
(52168+56735+51616)/3] | ||
|
||
x = np.arange(len(labels)) | ||
width = 0.2 | ||
fig, ax = plt.subplots() | ||
rects1 = ax.bar(x - 1.5*width/1, nobatch_many_jq, width, label='nobatch-1shell-8jq') | ||
rects2 = ax.bar(x - width/2, nobatch_one_jq, width, label='nobatch-1shell-1jq') | ||
rects3 = ax.bar(x + width/2, batch_many_jq, width, label='batch-1shell-8jq') | ||
rects4 = ax.bar(x + 1.5*width/1, batch_one_jq, width, label='batch-1shell-1jq') | ||
|
||
ax.set_ylabel('latency [usec]') | ||
ax.set_xticks(x, labels) | ||
ax.set_title('#Flows Performance') | ||
ax.legend() | ||
|
||
ax.bar_label(rects1, padding=3) | ||
ax.bar_label(rects2, padding=3) | ||
ax.bar_label(rects3, padding=3) | ||
ax.bar_label(rects4, padding=3) | ||
fig.tight_layout() | ||
plt.savefig("n_flow_performance.png") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python3 | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
||
labels = ['nothing', '1 hook', '2 hooks', '8 hooks'] | ||
shell_means = [5772, 8335522, 16449901, 65299620] | ||
command_means = [5772, 8111420, 16282779, 64994027] | ||
|
||
x = np.arange(len(labels)) | ||
width = 0.35 | ||
fig, ax = plt.subplots() | ||
rects1 = ax.bar(x - width/2, shell_means, width, label='shell') | ||
rects2 = ax.bar(x + width/2, command_means, width, label='command') | ||
|
||
ax.set_ylabel('latency [usec]') | ||
ax.set_xticks(x, labels) | ||
ax.set_title('#Hooks Performance') | ||
ax.legend() | ||
|
||
ax.bar_label(rects1, padding=3) | ||
ax.bar_label(rects2, padding=3) | ||
fig.tight_layout() | ||
plt.savefig("n_hook_performance.png") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python3 | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
||
labels = ['(shell-1jq)x8', '(shell-8jq)x1', '(shell-1jq)x1'] | ||
shell_means = [65299620, 15761758, 8167249] | ||
|
||
x = np.arange(len(labels)) | ||
width = 0.35 | ||
fig, ax = plt.subplots() | ||
rects1 = ax.bar(x, shell_means, width, label='shell') | ||
|
||
ax.set_ylabel('latency [usec]') | ||
ax.set_xticks(x, labels) | ||
ax.set_title('Optimize Shell Hooks') | ||
ax.legend() | ||
|
||
ax.bar_label(rects1, padding=3) | ||
#ax.bar_label(rects2, padding=3) | ||
fig.tight_layout() | ||
plt.savefig("optimization.png") |
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
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
Oops, something went wrong.