-
Notifications
You must be signed in to change notification settings - Fork 234
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
[WIP] Estimate system requirement by using Intel perfspect for CI/CD and Documents #1492
base: main
Are you sure you want to change the base?
Conversation
Dependency Review✅ No vulnerabilities or license issues found.Scanned Files |
Some comments for this feature:
|
# get used disk | ||
list="$(./perfspect/perfspect report --filesystem 2>&1)" | ||
list=$( for i in ` echo $list `; do [[ $i =~ json ]] && echo $i ; done ) | ||
used_disk_before="$(python parse_perfspect.py $list 2>&1)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 181 to line 186 could be part of parse_perfspect.py
, since it's common used for all examples.
if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi | ||
start_time=$(date +%s) | ||
start_services | ||
end_time=$(date +%s) | ||
duration=$((end_time-start_time)) | ||
echo "Mega service start duration is $duration s" && sleep 1s | ||
|
||
# trace max used memory | ||
list="$(./perfspect/perfspect telemetry --duration 10 2>&1)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 196 to line 198 could be part of parse_perfspect.py
, since it's common used for all examples.
# get used disk | ||
list="$(./perfspect/perfspect report --filesystem 2>&1)" | ||
list=$( for i in ` echo $list `; do [[ $i =~ json ]] && echo $i ; done ) | ||
used_disk_after="$(python parse_perfspect.py $list 2>&1)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here.
@@ -0,0 +1,47 @@ | |||
# Copyright (C) 2025 Intel Corporation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a common used scripts, it's better to be in the first project level.
@@ -193,6 +206,16 @@ function main() { | |||
# validate_frontend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use another megaservice_stress
test to record the memory usage, which can cover the max running memory I mentioned. We can have a mode=perfspect
for this condition.
Description
Integrate system requirement check with Intel PerfSpect Tool in CI/CD test scripts to get minimum system requirement for ChatQnA and then other samples as next step
https://github.com/intel/PerfSpect
Issues
n/a
.Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
Intel PerfSpect
Tests