Skip to content

Commit befc712

Browse files
committed
fix bugs of cache analysis
1 parent ece590a commit befc712

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/basic_performance/scripts/batch/200_cache_heatmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
job_id: 200 # enum class JobId : uint32_t @ src/core/system_define.h
22
test_type: 0 # 0: measure access latency, 1: measure flush latency
33
repeat: 32
4-
use_flush: 1 # 0: no flush, 1: use flush after one round of access
4+
use_flush: 0 # 0: no flush, 1: use flush after one round of access
55
core_id: [0, 20] # two cores on the different sockets
66
node_id: [2] # access memory on node_id
77
flush_type: [0] # 0: clflush, 1: clflushopt, 2: clwb

benchmark/basic_performance/src/machine/x86/pointer_chasing/pointer_chasing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static int pointer_chasing_thread(void *data)
386386
base_addr_virt = phys_to_virt(base_addr_phys);
387387
}
388388
else if (node_id == cxl_mem_node) {
389-
base_addr_phys = cxl_start_addr_phys;
389+
base_addr_phys = cxl_start_addr_phys + (1ULL<<30ULL);
390390
base_addr_virt = phys_to_virt(base_addr_phys);
391391
}
392392
else {

0 commit comments

Comments
 (0)