modified benchmarks to match lmbench
the memory map benchmark performs a write to the newly-mapped page
@@ -255,7 +255,6 @@ fn do_spawn_inner(overhead_ct: u64, th: usize, nr: usize, child_core: u8) -> Res
for _ in 0..ITERATIONS{
start_hpet = hpet.get_counter();
let child = spawn::new_application_task_builder(app_path.clone(), None)?
- .pin_on_core(child_core)
.spawn()?;
child.join()?;
@@ -433,6 +432,8 @@ fn do_memory_map_inner(overhead_ct: u64, th: usize, nr: usize) -> Result<u64, &'
for _ in 0..ITERATIONS{
let mapping = create_mapping(MAPPING_SIZE, EntryFlags::WRITABLE)?;
+ // write 0xFF to the first byte as lmbench does
+ unsafe{ *(mapping.start_address().value() as *mut u8) = 0xFF; }
drop(mapping);
}
