-
Notifications
You must be signed in to change notification settings - Fork 694
YQ-3561 add features for FQ-run #14826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
513e116
0e4e79c
f6a6332
887af1f
2c93408
0e05cf9
a62b16e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ sync_dir | |
*.conf | ||
*.parquet | ||
*.json | ||
*.svg | ||
*.txt |
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 | ||
} |
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'} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. А нужно ли тут There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Иногда без sudo у меня perf ругался, оставил чтобы работало скорее всегда (если прав на sudo нет, что редко, можно в ручную убрать). Это ведь не засоряет лишними файлами fs для супер пользователя? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Хорошее замечание, поправлю в следующем PR |
||
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ SRCS( | |
PEERDIR( | ||
library/cpp/colorizer | ||
library/cpp/testing/unittest | ||
util | ||
ydb/core/fq/libs/config/protos | ||
ydb/core/fq/libs/control_plane_proxy/events | ||
ydb/core/fq/libs/init | ||
|
@@ -20,6 +19,7 @@ PEERDIR( | |
ydb/library/security | ||
ydb/library/yql/providers/pq/provider | ||
ydb/tests/tools/kqprun/runlib | ||
yql/essentials/minikql | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. рекомендую сортировать списки. util лучше убери, он всегда неявно подключается There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Я стараюсь везде сортировать список PEERDIR по возрастанию, где тут нарушился порядок? С ходу не видно There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ну вот ты добавил строчку не по алфавиту There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. util тоже не по алфавиту был |
||
|
||
YQL_LAST_ABI_VERSION() | ||
|
Uh oh!
There was an error while loading. Please reload this page.