Skip to content
2 changes: 2 additions & 0 deletions configs-npb-gapbs/gapbs_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def parse_options():

print("Before warm-up ************************************************ \n")
m5.stats.reset()
print("After reset ************************************************ \n")
exit_event = m5.simulate(100000000000)
print("After sim ************************************************ \n")
m5.stats.dump()
print("End of warm-up ************************************************ \n")

Expand Down
39 changes: 32 additions & 7 deletions configs-npb-gapbs/system/ruby_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def createMemoryControllersDDR3(self):
def _createMemoryControllers(self, num, cls):

self.mem_ctrl = PolicyManager(range=self.mem_ranges[0], kvm_map=False)
self.mem_ctrl.loc_mem_policy = 'Rambus'

# FOR DDR4
# self.mem_ctrl.tRP = '14.16ns'
Expand All @@ -173,10 +174,28 @@ def _createMemoryControllers(self, num, cls):
self.mem_ctrl.tRCD_RD = '12ns'
self.mem_ctrl.tRL = '18ns'

# Rambus HBM2 cache
self.loc_mem_ctrl = MemCtrl()
self.loc_mem_ctrl.dram = HBM_2000_4H_1x64_Rambus(range=self.mem_ranges[0], in_addr_map=False, kvm_map=False)

# self.loc_mem_ctrl.oldest_write_age_threshold = 5000
# self.loc_mem_ctrl.min_reads_per_switch = 32
# self.loc_mem_ctrl.min_writes_per_switch = 32
# self.loc_mem_ctrl.mem_sched_policy = 'fcfs'


self.loc_mem_ctrl.dram.device_rowbuffer_size = "512B"
self.loc_mem_ctrl.dram.banks_per_rank = 32
self.loc_mem_ctrl.dram.bank_groups_per_rank = 8
self.loc_mem_ctrl.dram.page_policy = 'close'
self.loc_mem_ctrl.dram.burst_length = 8
self.loc_mem_ctrl.dram.tCCD_L = "4ns"
self.loc_mem_ctrl.dram.tBURST = "4ns"

# HBM2 cache
self.loc_mem_ctrl = HBMCtrl()
self.loc_mem_ctrl.dram = HBM_2000_4H_1x64(range=AddrRange(start = '0', end = '3GiB', masks = [1 << 6], intlvMatch = 0), in_addr_map=False, kvm_map=False, null=True)
self.loc_mem_ctrl.dram_2 = HBM_2000_4H_1x64(range=AddrRange(start = '0', end = '3GiB', masks = [1 << 6], intlvMatch = 1), in_addr_map=False, kvm_map=False, null=True)
# self.loc_mem_ctrl = HBMCtrl()
# self.loc_mem_ctrl.dram = HBM_2000_4H_1x64(range=AddrRange(start = '0', end = '3GiB', masks = [1 << 6], intlvMatch = 0), in_addr_map=False, kvm_map=False, null=True)
# self.loc_mem_ctrl.dram_2 = HBM_2000_4H_1x64(range=AddrRange(start = '0', end = '3GiB', masks = [1 << 6], intlvMatch = 1), in_addr_map=False, kvm_map=False, null=True)

# DDR4 cache
# self.loc_mem_ctrl = MemCtrl()
Expand All @@ -196,10 +215,10 @@ def _createMemoryControllers(self, num, cls):
self.mem_ctrl.orb_max_size = 128
self.mem_ctrl.dram_cache_size = "128MiB"

self.loc_mem_ctrl.dram.read_buffer_size = 32
self.loc_mem_ctrl.dram.write_buffer_size = 32
self.loc_mem_ctrl.dram_2.read_buffer_size = 32
self.loc_mem_ctrl.dram_2.write_buffer_size = 32
self.loc_mem_ctrl.dram.read_buffer_size = 64
self.loc_mem_ctrl.dram.write_buffer_size = 64
# self.loc_mem_ctrl.dram_2.read_buffer_size = 32
# self.loc_mem_ctrl.dram_2.write_buffer_size = 32

self.far_mem_ctrl.dram.read_buffer_size = 64
self.far_mem_ctrl.dram.write_buffer_size = 64
Expand All @@ -219,6 +238,12 @@ def _createMemoryControllers(self, num, cls):
# self.mem_ctrl.dram_2.read_buffer_size = 32
# self.mem_ctrl.dram_2.write_buffer_size = 32

# HBM2 no cache
# self.mem_ctrl = MemCtrl()
# self.mem_ctrl.dram = HBM_2000_4H_1x64_Rambus(range=self.mem_ranges[0], kvm_map=False)
# self.mem_ctrl.dram.read_buffer_size = 64
# self.mem_ctrl.dram.write_buffer_size = 64


def initFS(self, cpus):
self.pc = Pc()
Expand Down
20 changes: 14 additions & 6 deletions gapbs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/GAPBS/1/bc_22 configs-npb-gapbs/gapbs_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level bc 1 22 ../../cptTest/GAPBS/cpt_100ms_22/bc_22/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/GAPBS/1/bfs_22 configs-npb-gapbs/gapbs_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level bfs 1 22 ../../cptTest/GAPBS/cpt_100ms_22/bfs_22/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/GAPBS/1/cc_22 configs-npb-gapbs/gapbs_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level cc 1 22 ../../cptTest/GAPBS/cpt_100ms_22/cc_22/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/GAPBS/1/pr_22 configs-npb-gapbs/gapbs_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level pr 1 22 ../../cptTest/GAPBS/cpt_100ms_22/pr_22/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/GAPBS/1/tc_22 configs-npb-gapbs/gapbs_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level tc 1 22 ../../cptTest/GAPBS/cpt_100ms_22/tc_22/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/GAPBS/1/sssp_22 configs-npb-gapbs/gapbs_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level sssp 1 22 ../../cptTest/GAPBS/cpt_100ms_22/sssp_22/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/GAPBS/bc_22 configs-npb-gapbs/gapbs_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level bc 1 22
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/GAPBS/bfs_22 configs-npb-gapbs/gapbs_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level bfs 1 22
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/GAPBS/cc_22 configs-npb-gapbs/gapbs_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level cc 1 22
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/GAPBS/pr_22 configs-npb-gapbs/gapbs_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level pr 1 22
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/GAPBS/tc_22 configs-npb-gapbs/gapbs_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level tc 1 22
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/GAPBS/sssp_22 configs-npb-gapbs/gapbs_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level sssp 1 22


build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/GAPBS/bc_22 configs-npb-gapbs/gapbs_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level bc 1 22 /home/babaie/projects/ispass2023/runs/results/cptTest/GAPBS_Cas/cpt_100ms_22/bc_22/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/GAPBS/bfs_22 configs-npb-gapbs/gapbs_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level bfs 1 22 /home/babaie/projects/ispass2023/runs/results/cptTest/GAPBS_Cas/cpt_100ms_22/bfs_22/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/GAPBS/cc_22 configs-npb-gapbs/gapbs_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level cc 1 22 /home/babaie/projects/ispass2023/runs/results/cptTest/GAPBS_Cas/cpt_100ms_22/cc_22/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/GAPBS/pr_22 configs-npb-gapbs/gapbs_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level pr 1 22 /home/babaie/projects/ispass2023/runs/results/cptTest/GAPBS_Cas/cpt_100ms_22/pr_22/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/GAPBS/tc_22 configs-npb-gapbs/gapbs_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level tc 1 22 /home/babaie/projects/ispass2023/runs/results/cptTest/GAPBS_Cas/cpt_100ms_22/tc_22/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/GAPBS/sssp_22 configs-npb-gapbs/gapbs_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-gapbs timing 8 MESI_Two_Level sssp 1 22 /home/babaie/projects/ispass2023/runs/results/cptTest/GAPBS_Cas/cpt_100ms_22/sssp_22/cpt
20 changes: 14 additions & 6 deletions npb.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/NPB/bt_C_x configs-npb-gapbs/npb_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level bt.C.x 8
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/NPB/cg_C_x configs-npb-gapbs/npb_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level cg.C.x 8
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/NPB/is_C_x configs-npb-gapbs/npb_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level is.C.x 8
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/NPB/lu_C_x configs-npb-gapbs/npb_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level lu.C.x 8
# build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/NPB/mg_C_x configs-npb-gapbs/npb_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level mg.C.x 8
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/NPB/sp_C_x configs-npb-gapbs/npb_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level sp.C.x 8
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/chkpt_feb20/NPB/ep_C_x configs-npb-gapbs/npb_checkpoint.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level ep.C.x 8

build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/NPB/1/bt_C_x configs-npb-gapbs/npb_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-npb timing MESI_Two_Level bt.C.x 8 ../../cptTest/NPB/cpt_100ms/bt_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/NPB/1/cg_C_x configs-npb-gapbs/npb_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-npb timing MESI_Two_Level cg.C.x 8 ../../cptTest/NPB/cpt_100ms/cg_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/NPB/1/is_C_x configs-npb-gapbs/npb_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-npb timing MESI_Two_Level is.C.x 8 ../../cptTest/NPB/cpt_100ms/is_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/NPB/1/lu_C_x configs-npb-gapbs/npb_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-npb timing MESI_Two_Level lu.C.x 8 ../../cptTest/NPB/cpt_100ms/lu_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt --outdir=../../results/link/NPB/1/sp_C_x configs-npb-gapbs/npb_restore.py ../../fullSystemDisksKernel/x86-linux-kernel-4.19.83 ../../fullSystemDisksKernel/x86-npb timing MESI_Two_Level sp.C.x 8 ../../cptTest/NPB/cpt_100ms/sp_C_x/cpt

build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/NPB/bt_C_x configs-npb-gapbs/npb_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level bt.C.x 8 /home/babaie/projects/ispass2023/runs/results/cptTest/NPB_Cas/cpt_100ms/bt_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/NPB/cg_C_x configs-npb-gapbs/npb_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level cg.C.x 8 /home/babaie/projects/ispass2023/runs/results/cptTest/NPB_Cas/cpt_100ms/cg_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/NPB/is_C_x configs-npb-gapbs/npb_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level is.C.x 8 /home/babaie/projects/ispass2023/runs/results/cptTest/NPB_Cas/cpt_100ms/is_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/NPB/lu_C_x configs-npb-gapbs/npb_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level lu.C.x 8 /home/babaie/projects/ispass2023/runs/results/cptTest/NPB_Cas/cpt_100ms/lu_C_x/cpt
# build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/NPB/mg_C_x configs-npb-gapbs/npb_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level mg.C.x 8 /home/babaie/projects/ispass2023/runs/results/cptTest/NPB_Cas/cpt_100ms/mg_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/NPB/sp_C_x configs-npb-gapbs/npb_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level sp.C.x 8 /home/babaie/projects/ispass2023/runs/results/cptTest/NPB_Cas/cpt_100ms/sp_C_x/cpt
build/X86_MESI_Two_Level/gem5.opt -re --outdir=../results/rstr_feb20/NPB/ep_C_x configs-npb-gapbs/npb_restore.py /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-linux-kernel-4.19.83 /home/babaie/projects/ispass2023/runs/hbmCtrlrTest/dramCacheController/fullSystemDisksKernel/x86-npb timing MESI_Two_Level ep.C.x 8 /home/babaie/projects/ispass2023/runs/results/cptTest/NPB_Cas/cpt_100ms/ep_C_x/cpt
Loading