Skip to content

Commit

Permalink
Add memory tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoshin committed Feb 14, 2022
1 parent 12ba91b commit 539291c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/memory/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.csv
*.csv
.docker.meminfo
3 changes: 3 additions & 0 deletions benchmarks/memory/scripts/docker-start
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ DOCKER_ID=$(\
| head -c 12 \
)

sleep 1
docker exec $DOCKER_ID bash -c "/usr/src/app/scripts/docker-write-memory &"

echo "\nStarted container id ${DOCKER_ID} with ${MEMORY_LIMIT} of memory! Run \`yarn docker:connect\` to connect to the container.\n"
4 changes: 4 additions & 0 deletions benchmarks/memory/scripts/docker-write-memory
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
while true; do
sleep .2
cp /proc/meminfo /usr/src/app/.docker.meminfo
done

0 comments on commit 539291c

Please sign in to comment.