Przeglądaj źródła

Update the EPC cutoffs to meach the new (lower) EPC memory requirements

Ian Goldberg 11 miesięcy temu
rodzic
commit
c781321dd7
1 zmienionych plików z 9 dodań i 9 usunięć
  1. 9 9
      run_all_experiments.py

+ 9 - 9
run_all_experiments.py

@@ -39,19 +39,18 @@ B = 256
 N_MAX = 1<<20
 M_MAX = 72
 
-# Typical EPC sizes are slightly less than a power of 2.
-# For 1<<20 clients and 72 servers, we need 4.25 GiB of EPC and 20 GiB
+# For 1<<20 clients and 72 servers, we need 3.65 GiB of EPC and 20 GiB
 # of free RAM.
 # If we don't have that, abort, unless the SHRINK_TO_MEM env var is set
 # to 1, in which case perform smaller experiments that should fit in the
 # available resources.
-if epc_gib < 4.25 or free_gib < 20:
+if epc_gib < 3.65 or free_gib < 20:
     shrink_to_mem = \
         os.getenv("SHRINK_TO_MEM", '0').lower() in ('true', '1', 't')
     if not shrink_to_mem:
-        if epc_gib < 4.25:
+        if epc_gib < 3.65:
             print(f"""
-*** Available EPC appears to be {epc_gib:.2f} GiB; 4.25 GiB is
+*** Available EPC appears to be {epc_gib:.2f} GiB; 3.65 GiB is
 *** needed to run the full set of experiments.
 """)
         if free_gib < 20:
@@ -64,12 +63,13 @@ if epc_gib < 4.25 or free_gib < 20:
 *** experiments that should fit in the available resources.
 """)
         sys.exit(1)
-    if epc_gib > 3.9 and free_gib > 14:
+    # Typical EPC sizes are slightly less than a power of 2.
+    if epc_gib > 1.9 and free_gib > 14:
         N_MAX = 1<<19
-        M_MAX = 72
-    elif epc_gib > 1.9 and free_gib > 7.5:
-        N_MAX = 1<<18
         M_MAX = 64
+    elif epc_gib > 0.9 and free_gib > 7.5:
+        N_MAX = 1<<18
+        M_MAX = 36
     elif epc_gib > 0.9 and free_gib > 4.2:
         N_MAX = 1<<17
         M_MAX = 48