-
Notifications
You must be signed in to change notification settings - Fork 1
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
Evaluation on docker stats #5
base: master
Are you sure you want to change the base?
Conversation
…utomatically removed 2. Added a shell script collect_stats.sh that will collect docker container stats when you run start_training.sh
…ontinue with implementing comparison between the two implementations
…ced implementation in the same plot for CPU %. Need to fix for memory usage
…now investigate other plot alternatives
… for three workers with graphs showing accumulated values over time
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.
Good job! Several comments in the code.
@@ -0,0 +1,5 @@ | |||
while true; |
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.
Is this file still needed?
@@ -23,6 +23,9 @@ fi | |||
|
|||
if [ "$SCENARIO" == "local" ]; | |||
then | |||
cd performance | |||
./collect_stats.sh & | |||
cd - |
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.
(1/2) How about replacing these 3 lines with 1 line sh ./performance/collect_stats.sh &
, and also make a small change in collect_stats.sh
, see (2/2)
performance/collect_stats.sh
Outdated
@@ -0,0 +1,5 @@ | |||
while true; | |||
do | |||
docker stats --format "table {{.Name}},{{.CPUPerc}},{{.MemUsage}},{{.MemPerc}}" --no-stream >> stats.csv |
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.
(2/2) Follow comment (1/2), change this line to **** >> performance/stats.csv
performance/eval_stats.py
Outdated
blue = mpatches.Patch(color='blue', label='Original implementation') | ||
plt.legend(handles=[red, blue]) | ||
plt.title('Accumulated Sum of Workers Memory Usage') | ||
plt.show() |
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.
Nice plots and handling the data with Pandas!
A small suggestion: wrapping repeated code blocks into reusable functions, time-saving and easier for future maintenance.
…e time and remove sleep
…al_stats.py has been updated to handle the new format of the csv file
…the original data
…workers instead of three and three runs for each implementation
DO NOT MERGE
This branch can be used for collecting stats from our enhanced implementation and make evaluation on collected stats with data using three workers on the original implementation and enhanced implementation.
Collect stats:
start_training.sh
you will automatically collect data every 0.5sps aux | grep start_training
which will generate two outputs containing ID in the second column. Runkill <ID>
where the ID can be found in the second column in one of the two outputs from previousEvaluate stats:
eval_stats.py
inperformance folder
start_training.sh
andcollect_stats.sh
in a folder namnedperformance
in Felix's master branch (do not push) in the same way it's implemented in this branchFuture work:
Graphs that I got can be found here