# ======================================== # ============= EXPERIMENTATION 1 ======== # Compute the tasks response time by # the CPU utilization parameter # and with the different coefference # case # Load fonctions from fonction.sh . ../../scripts/fonction.sh #************************ #***** parameters ******* # number of tasks NT=32 # quality threshold THRESHOLD=2 # percentage of LO tasks PLO=50 # number of iteration, means number of file ITER=1000 # Type of recovery mode protocol # 0: no protocol # 1: idle time protocol # 2: FTP protocol # 3: Bailout protocol # 4: Bailout protocol with quality protocols=(1 2) # Define name of the file to create FILE="generated_taskset/protocol" #************************ # Define path repository DIRECTORY="generated_taskset" # Check if the repository exist if [ -d "$DIRECTORY" ]; then # Check if the repository is empty if [ "$(ls -A "$DIRECTORY")" ]; then echo "Le répertoire '$DIRECTORY' contient des fichiers. Suppression en cours..." # Supprimer tout le contenu du répertoire rm -rf "$DIRECTORY"/* echo "Tous les fichiers dans '$DIRECTORY' ont été supprimés." else echo "Le répertoire '$DIRECTORY' est vide. Génération des fichiers xml..." # generate files for protocol 1 for NT in 8 12 16 20 24 28 32; do ../../../trunk/src/generate_amc_monocore $NT $THRESHOLD $PLO $ITER 1 $FILE done # Change the protocol into the files for TCU in 90; do for NT in 8 12 16 20 24 28 32; do # iteration for ((iter=1; iter<=1000; ++iter)); do if (( iter < 10 )) then var='0'$iter # copy the model architecture to adapt him into anytime model cp generated_taskset/"protocol1_coef_50_cpu_${TCU}_PLO${PLO}_iter${var}.xmlv3" generated_taskset/"protocol2_coef_50_cpu_${TCU}_PLO${PLO}_iter${var}.xmlv3" # change the scheduling protocol sed -i "s/values_eu>1212