From 50b0088db2d4c4e762befd900b5a5c50100b0240 Mon Sep 17 00:00:00 2001
From: Mikhail Khalilov <mikhail.khalilov@inf.ethz.ch>
Date: Tue, 21 May 2024 17:39:21 +0200
Subject: [PATCH] update Dockerfile

---
 Dockerfile | 3 ++-
 README.md  | 7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 055f087..073e456 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:latest
+FROM ubuntu:22.04
 
 SHELL ["/bin/bash", "-c"]
 
@@ -9,6 +9,7 @@ RUN apt update -y && \
     make autoconf g++ flex bison ccache libgoogle-perftools-dev numactl \
     perl-doc libfl2 libfl-dev zlib1g zlib1g-dev gawk libncurses5 help2man
 
+RUN ln -s /usr/bin/python2 /usr/bin/python
 RUN pip3 install seaborn pandas numpy
 
 # Build latest Verilator from sources
diff --git a/README.md b/README.md
index 56b025d..c97770e 100644
--- a/README.md
+++ b/README.md
@@ -67,9 +67,10 @@ The experiment pipeline contains the following steps:
 - We recommend to use this experiment to go through basic functionality of the experiment pipeline (e.g., _AE kick-the-tires stage_).
 - The experiment demonstrates that the OSMOSIS WLBVT scheduler achieves fair share of SmartNIC compute engine between two tenants when compared to the Round Robin scheduler (e.g., see Figure 9 and Figure 4 in the paper).
 
-1. `osmosis-ae # nohup bash ./scripts/run_hpu_contention.sh $(pwd)/traces/ $(pwd)/logs/ &`
-2. `osmosis-ae # python3 ./scripts/postprocess_hpu_contention.py $(pwd)/logs`
-3. `osmosis-ae # python3 ./scripts/plot_hpu_contention.py`- produces `figures/hpu_occupation.pdf`
+1. `osmosis-ae # make SPIN_APP_NAME=hpu_contention osmosis`
+2. `osmosis-ae # nohup bash ./scripts/run_hpu_contention.sh $(pwd)/traces/ $(pwd)/logs/ &`
+3. `osmosis-ae # python3 ./scripts/postprocess_hpu_contention.py $(pwd)/logs`
+4. `osmosis-ae # python3 ./scripts/plot_hpu_contention.py`- produces `figures/hpu_occupation.pdf`
 
 ### Experiment 2: DMA engine contention with fragmentation
 
-- 
GitLab