Skip to content

Commit

Permalink
YQ kqprun fixed AS pools and added validations (ydb-platform#9030)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzhastik committed Oct 21, 2024
1 parent 20fd222 commit 42929ed
Show file tree
Hide file tree
Showing 9 changed files with 399 additions and 73 deletions.
73 changes: 39 additions & 34 deletions ydb/core/testlib/test_client.cpp

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ydb/core/testlib/test_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ namespace Tests {
TServer& operator =(TServer&& server) = default;
virtual ~TServer();

void EnableGRpc(const NYdbGrpc::TServerOptions& options);
void EnableGRpc(ui16 port);
void EnableGRpc(const NYdbGrpc::TServerOptions& options, ui32 grpcServiceNodeId = 0);
void EnableGRpc(ui16 port, ui32 grpcServiceNodeId = 0);
void SetupRootStoragePools(const TActorId sender) const;

void SetupDefaultProfiles();
Expand Down
2 changes: 2 additions & 0 deletions ydb/tests/tools/kqprun/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ udfs
*.sql
*.bin
*.txt
*.svg
*.old
50 changes: 50 additions & 0 deletions ydb/tests/tools/kqprun/configuration/app_config.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
ActorSystemConfig {
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
}
}

ColumnShardConfig {
DisabledOnSchemeShard: false
}

FeatureFlags {
EnableExternalDataSources: true
EnableScriptExecutionOperations: true
Expand Down
11 changes: 11 additions & 0 deletions ydb/tests/tools/kqprun/flame_graph.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# For svg graph download https://github.com/brendangregg/FlameGraph
# and run `FlameGraph/stackcollapse-perf.pl profdata.txt | FlameGraph/flamegraph.pl > profdata.svg`

pid=$(pgrep -u $USER kqprun)

echo "Target process id: ${pid}"

sudo perf record -F 50 --call-graph dwarf -g --proc-map-timeout=10000 --pid $pid -v -o profdata -- sleep 30
sudo perf script -i profdata > profdata.txt
Loading

0 comments on commit 42929ed

Please sign in to comment.