diff --git a/docs/rapports_pan2/module_hardware/benchmark/Dockerfile b/docs/rapports_pan2/module_hardware/benchmark/Dockerfile new file mode 100644 index 0000000..e06433b --- /dev/null +++ b/docs/rapports_pan2/module_hardware/benchmark/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:latest +RUN apk add --no-cache sysbench +WORKDIR /app +COPY benchmark_script.sh /app/benchmark_script.sh +CMD ["sh","benchmark_script.sh"] \ No newline at end of file diff --git a/docs/rapports_pan2/module_hardware/benchmark/benchmark_script.sh b/docs/rapports_pan2/module_hardware/benchmark/benchmark_script.sh new file mode 100644 index 0000000..55a7630 --- /dev/null +++ b/docs/rapports_pan2/module_hardware/benchmark/benchmark_script.sh @@ -0,0 +1,6 @@ +sysbench --test=cpu run >>sysbench.log +sysbench --test=memory run >>sysbench.log +sysbench --test=fileio --file-test-mode=rndrw prepare +sysbench --test=fileio --file-test-mode=rndrw run + +sysbench --test=fileio cleanup \ No newline at end of file diff --git a/docs/rapports_pan2/module_hardware/rapport.md b/docs/rapports_pan2/module_hardware/rapport.md index e07a65f..05587ac 100644 --- a/docs/rapports_pan2/module_hardware/rapport.md +++ b/docs/rapports_pan2/module_hardware/rapport.md @@ -4,11 +4,12 @@ * * Création d'un docker compose avec les services dont on aura besoin de faire tourner simultanément * RQ : on a pas mis la reco audio, jsute reco d'image parce que les 2 ne tourneront pas en même temps et reco image >> reco audio en ressources - * 30fps pour la camera en 640x480, ~pareil pour pour les update d'effets + * 30fps pour la camera en 640x480 pour le stream sur le navigateur + * Detection meidapipehands et communication des résultats avec le navigateur a 15fps * autres UI web sont tjr utilisables : 5ms de latence pour un GET sur l'api - * utilisation moyenne cpu 200% (sur 400%) : laisse un peu de marge - * Reco video : 50% CPU - * firefox : 30% CPU + * utilisation moyenne cpu 270% (sur 400%) : laisse peu de marge + * Reco video : 70% CPU + * firefox : 70-80% CPU * RAM : ~2Go/4Go utilisé * mysql : 10% * firefox : 10%