Skip to content
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

Profile hardware counters #85

Closed
wants to merge 40 commits into from

Conversation

NiuJ1ao
Copy link
Contributor

@NiuJ1ao NiuJ1ao commented Jan 8, 2021

A benchmark that bursts many requests per second to stress hardware resources. It collects user-defined hardware counters and plots charts of these counters.

@NiuJ1ao NiuJ1ao requested a review from ustiugov January 8, 2021 07:42
Copy link
Member

@ustiugov ustiugov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a minor change, the rest look good

.github/workflows/go.yml Outdated Show resolved Hide resolved
.github/workflows/go.yml Outdated Show resolved Hide resolved
Copy link
Member

@ustiugov ustiugov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is fine but you need to rebase vs current master. Also, there are figures' changes in this PR for some reason.

Copy link
Member

@ustiugov ustiugov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash two last commits in one, using rebase, as an exercise.

We should wait for the data before merging the PR.

.github/workflows/go.yml Outdated Show resolved Hide resolved
@ustiugov
Copy link
Member

also, please add a clear PR description and sign off in it too.

Copy link
Member

@ustiugov ustiugov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a minor modification to avoid problems in testing on a self-hosted runner.

perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
@ustiugov
Copy link
Member

also, please remove the created files or folders in the Makefile like in other bench tests.

@ustiugov
Copy link
Member

please rebase

@ustiugov
Copy link
Member

Please squash the last two commits into one using git rebase.

Copy link
Member

@ustiugov ustiugov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code quality needs improvement. Some of the latest changes compromised it.

perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Show resolved Hide resolved
@NiuJ1ao NiuJ1ao marked this pull request as ready for review January 17, 2021 13:36
perf_bench_test.go Outdated Show resolved Hide resolved
@NiuJ1ao NiuJ1ao requested a review from ustiugov January 17, 2021 13:44
Copy link
Member

@ustiugov ustiugov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are issues to be fixed.

.github/workflows/unit_tests.yml Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Show resolved Hide resolved
profile/perf.go Show resolved Hide resolved
profile/perf.go Show resolved Hide resolved
profile/perf.go Show resolved Hide resolved
profile/perf_metics.go Outdated Show resolved Hide resolved
profile/perf_metics.go Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
perf_bench_test.go Outdated Show resolved Hide resolved
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
1. Move main function from perf_profile.go to perf_bench_test.go and plot function to plotter.go
2. Minor fix of perf implementation

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
User can choose profile duration and time interval, the script will omitting warmup and teardown periods and report the averages of left stats.

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
…perf_bench_test.go and perf.go

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
…once

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>

minor fix git actions' naming and response validation check

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>

minor fix test expected value

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
…le name

the output images will be stored under the file path, with input file.

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
…eces to achieve different logic flow

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
…ot corresponding charts

note: compatible with Intel Broadwell

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
…on function

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
…alculation functions

add more metrics

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
@NiuJ1ao NiuJ1ao marked this pull request as draft January 22, 2021 19:05
…ults

Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
Signed-off-by: NiuJ1ao <26167136+NiuJ1ao@users.noreply.github.com>
@NiuJ1ao NiuJ1ao closed this Feb 4, 2021
HermioneKT pushed a commit that referenced this pull request Jan 31, 2024
# This is the 1st commit message:

refactor

# This is the commit message #2:

modify powerNodeSelector

# This is the commit message #3:

modify powerNodeSelector

# This is the commit message #4:

modify powerNodeSelector

# This is the commit message #5:

modify namespace

# This is the commit message #6:

modify namespace

# This is the commit message #7:

add namespace

# This is the commit message #8:

init power manager script

# This is the commit message #9:

add go code

# This is the commit message #10:

test

# This is the commit message #11:

test

# This is the commit message #12:

test

# This is the commit message #13:

test

# This is the commit message #14:

go.sum

# This is the commit message #15:

go sum

# This is the commit message #16:

go mod tidy

# This is the commit message #17:

test

# This is the commit message #18:

test

# This is the commit message #19:

test

# This is the commit message #20:

test

# This is the commit message #21:

test

# This is the commit message #22:

test

# This is the commit message #23:

test

# This is the commit message #24:

test

# This is the commit message #25:

test

# This is the commit message #26:

test

# This is the commit message #27:

test

# This is the commit message #28:

test

# This is the commit message #29:

print output

# This is the commit message #30:

test

# This is the commit message #31:

test

# This is the commit message #32:

test

# This is the commit message #33:

test

# This is the commit message #34:

test

# This is the commit message #35:

test

# This is the commit message #36:

test

# This is the commit message #37:

test

# This is the commit message #38:

test

# This is the commit message #39:

test

# This is the commit message #40:

refactor

# This is the commit message #41:

change val

# This is the commit message #42:

test

# This is the commit message #43:

test

# This is the commit message #44:

test

# This is the commit message #45:

exp1

# This is the commit message #46:

add url

# This is the commit message #47:

test

# This is the commit message #48:

test

# This is the commit message #49:

test auth

# This is the commit message #50:

test

# This is the commit message #51:

test

# This is the commit message #52:

test

# This is the commit message #53:

test

# This is the commit message #54:

test

# This is the commit message #55:

fix bug

# This is the commit message #56:

remove log

# This is the commit message #57:

test

# This is the commit message #58:

test

# This is the commit message #59:

test

# This is the commit message #60:

fix loop

# This is the commit message #61:

increase invocation

# This is the commit message #62:

test

# This is the commit message #63:

test

# This is the commit message #64:

test

# This is the commit message #65:

test

# This is the commit message #66:

test

# This is the commit message #67:

test

# This is the commit message #68:

test

# This is the commit message #69:

Test

# This is the commit message #70:

test

# This is the commit message #71:

test

# This is the commit message #72:

test

# This is the commit message #73:

test

# This is the commit message #74:

test

# This is the commit message #75:

test

# This is the commit message #76:

test

# This is the commit message #77:

test

# This is the commit message #78:

test

# This is the commit message #79:

test

# This is the commit message #80:

test

# This is the commit message #81:

test

# This is the commit message #82:

test

# This is the commit message #83:

test

# This is the commit message #84:

test

# This is the commit message #85:

test

# This is the commit message #86:

test

# This is the commit message #87:

test

# This is the commit message #88:

test

# This is the commit message #89:

test

# This is the commit message #90:

test1

# This is the commit message #91:

test

# This is the commit message #92:

test

# This is the commit message #93:

test

# This is the commit message #94:

test

# This is the commit message #95:

test

# This is the commit message #96:

test

# This is the commit message #97:

test

# This is the commit message #98:

test

# This is the commit message #99:

test

# This is the commit message #100:

test

# This is the commit message #101:

test

# This is the commit message #102:

test

# This is the commit message #103:

test

# This is the commit message #104:

test

# This is the commit message #105:

test

# This is the commit message #106:

test

# This is the commit message #107:

test

# This is the commit message #108:

test

# This is the commit message #109:

test1

# This is the commit message #110:

test

# This is the commit message #111:

test

# This is the commit message #112:

Test

# This is the commit message #113:

test

# This is the commit message #114:

test

# This is the commit message #115:

test

# This is the commit message #116:

test

# This is the commit message #117:

test

# This is the commit message #118:

test

# This is the commit message #119:

Test

# This is the commit message #120:

Test

# This is the commit message #121:

test

# This is the commit message #122:

test

# This is the commit message #123:

Test

# This is the commit message #124:

test

# This is the commit message #125:

test

# This is the commit message #126:

test

# This is the commit message #127:

test

# This is the commit message #128:

test

# This is the commit message #129:

test

# This is the commit message #130:

test

# This is the commit message #131:

test

# This is the commit message #132:

test

# This is the commit message #133:

test

# This is the commit message #134:

test

# This is the commit message #135:

test

# This is the commit message #136:

test

# This is the commit message #137:

test

# This is the commit message #138:

test

# This is the commit message #139:

test

# This is the commit message #140:

test

# This is the commit message #141:

test

# This is the commit message #142:

test

# This is the commit message #143:

Test

# This is the commit message #144:

Test

# This is the commit message #145:

Test

# This is the commit message #146:

Test

# This is the commit message #147:

test

# This is the commit message #148:

test

# This is the commit message #149:

test

# This is the commit message #150:

test

# This is the commit message #151:

test

# This is the commit message #152:

test

# This is the commit message #153:

test

# This is the commit message #154:

Test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants