-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YQ-3561 add features for FQ-run (#14826)
- Loading branch information
1 parent
fe62452
commit 3ee5135
Showing
20 changed files
with
351 additions
and
132 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
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
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 |
---|---|---|
|
@@ -5,3 +5,5 @@ sync_dir | |
*.conf | ||
*.parquet | ||
*.json | ||
*.svg | ||
*.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Executor { | ||
Type: BASIC | ||
Threads: 1 | ||
SpinThreshold: 10 | ||
Name: "System" | ||
} | ||
Executor { | ||
Type: BASIC | ||
Threads: 6 | ||
SpinThreshold: 1 | ||
Name: "User" | ||
} | ||
Executor { | ||
Type: BASIC | ||
Threads: 1 | ||
SpinThreshold: 1 | ||
Name: "Batch" | ||
} | ||
Executor { | ||
Type: IO | ||
Threads: 1 | ||
Name: "IO" | ||
} | ||
Executor { | ||
Type: BASIC | ||
Threads: 2 | ||
SpinThreshold: 10 | ||
Name: "IC" | ||
TimePerMailboxMicroSecs: 100 | ||
} | ||
|
||
Scheduler { | ||
Resolution: 64 | ||
SpinThreshold: 0 | ||
ProgressThreshold: 10000 | ||
} | ||
|
||
SysExecutor: 0 | ||
UserExecutor: 1 | ||
IoExecutor: 3 | ||
BatchExecutor: 2 | ||
|
||
ServiceExecutor { | ||
ServiceName: "Interconnect" | ||
ExecutorId: 4 | ||
} |
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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
function cleanup { | ||
sudo rm ./profdata | ||
rm ./profdata.txt | ||
} | ||
trap cleanup EXIT | ||
|
||
if [ $# -gt 1 ]; then | ||
echo "Too many arguments" | ||
exit -1 | ||
fi | ||
|
||
fqrun_pid=$(pgrep -u $USER fqrun) | ||
|
||
sudo perf record -F 50 --call-graph dwarf -g --proc-map-timeout=10000 --pid $fqrun_pid -v -o profdata -- sleep ${1:-'30'} | ||
sudo perf script -i profdata > profdata.txt | ||
|
||
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd) | ||
|
||
flame_graph_tool="$SCRIPT_DIR/../../../../contrib/tools/flame-graph/" | ||
|
||
${flame_graph_tool}/stackcollapse-perf.pl profdata.txt | ${flame_graph_tool}/flamegraph.pl > profdata.svg |
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
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.