Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netstack-exp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Cai
netstack-exp
Commits
9cf212aa
Commit
9cf212aa
authored
2 years ago
by
Peter Cai
Browse files
Options
Downloads
Patches
Plain Diff
Add perf stat support
parent
362591fb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configs/5.15.79-peter.sh
+1
-0
1 addition, 0 deletions
configs/5.15.79-peter.sh
configs/base.sh
+1
-0
1 addition, 0 deletions
configs/base.sh
experiments/memcached.shared.sh
+4
-0
4 additions, 0 deletions
experiments/memcached.shared.sh
experiments/perf.shared.sh
+8
-0
8 additions, 0 deletions
experiments/perf.shared.sh
with
14 additions
and
0 deletions
configs/5.15.79-peter.sh
+
1
−
0
View file @
9cf212aa
...
...
@@ -2,4 +2,5 @@ IS_CUSTOM_KERNEL=true
KERNEL_SRC
=
/home/p5cai/workspace/linux
CPUPOWER
=
$KERNEL_SRC
/tools/power/cpupower/cpupower
X86_ENERGY_PERF_POLICY
=
$KERNEL_SRC
/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy
PERF
=
$KERNEL_SRC
/tools/perf/perf
export
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
"
:
"
$KERNEL_SRC
/tools/power/cpupower"
This diff is collapsed.
Click to expand it.
configs/base.sh
+
1
−
0
View file @
9cf212aa
IS_CUSTOM_KERNEL
=
false
CPUPOWER
=
cpupower
X86_ENERGY_PERF_POLICY
=
x86_energy_perf_policy
PERF
=
perf
# Execute all SSH commands under this user
# so that we don't need ssh keys for root
...
...
This diff is collapsed.
Click to expand it.
experiments/memcached.shared.sh
+
4
−
0
View file @
9cf212aa
source
"
$EXP_ROOT
/experiments/perf.shared.sh"
CONNS
=
160
# per agent thread
load_config
()
{
...
...
@@ -37,7 +39,9 @@ warmup() {
run_mutilate
()
{
echo
"Running mutilate with
$CONNS
connections per agent (core) and QPS =
$QPS
"
perf_stat_start
"
$1
"
sudo
-u
$SSH_USER
$MUTILATE
--noload
-c
$CONNS
$MUTCLIENTS
-t30
-u
0
-q
$QPS
|
tee
$DATA_OUT
/
$1
.txt
perf_stat_stop
}
memcached_pre_start
()
{
...
...
This diff is collapsed.
Click to expand it.
experiments/perf.shared.sh
0 → 100644
+
8
−
0
View file @
9cf212aa
perf_stat_start
()
{
$PERF
stat
-C
0-
$((
THREADS
-
1
))
-e
LLC-load-misses:u,LLC-load-misses:k,mem_load_uops_retired.llc_miss,mem_uops_retired.all_loads,cycles,cycles:u,cycles:k,instructions,instructions:u,instructions:k,stalled-cycles-frontend,stalled-cycles-backend
-o
"
$DATA_OUT
/stat_
$1
.txt"
&
PERF_STAT_PID
=
$!
}
perf_stat_stop
()
{
kill
-INT
"
$PERF_STAT_PID
"
||
true
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment