Skip to content

Commit

Permalink
update bench.py script
Browse files Browse the repository at this point in the history
Signed-off-by: Reto Achermann <[email protected]>
  • Loading branch information
achreto committed Sep 8, 2024
1 parent 0391d6c commit fc1b14d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions benchmarks/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def count_cores_per_numa_node():
SECONDS = 60

MODES=[
'fill'
# , 'interleave' -- disable for speeding up SOSP'24 artifact evaluation
'fill',
'interleave'
]
CORES_PER_NODE = count_cores_per_numa_node()
NODES = count_numa_nodes()
MAX_THREADS = NODES * CORES_PER_NODE
N_THREADS = [MAX_THREADS, 4] + [i * (CORES_PER_NODE // 4) for i in range(1, NODES * 4)]
print(f"Used Threads: {N_THREADS}")

NR_BENCHES = ['cargo run --release --bin vspace']
#READS_PCT = [100, 95, 50, 0, 90]
Expand All @@ -47,13 +49,6 @@ def count_cores_per_numa_node():

TRANSPARENT_HUGEPAGES = True

def reorder(l):
if len(l) < 2:
return l
p = len(l) // 2
return [l[p]] + reorder(l[p+1:] + l[:p])
N_THREADS = [MAX_THREADS, 4] + reorder(list(range(12, MAX_THREADS, 12)))


def combine_data_files():
filepaths = glob.glob('nr_benchmarks*.json')
Expand Down

0 comments on commit fc1b14d

Please sign in to comment.