Skip to content

Instantly share code, notes, and snippets.

@cyyself
Last active April 13, 2024 11:41
Show Gist options
  • Save cyyself/7c76d58c4e847dcbca37e6942baca644 to your computer and use it in GitHub Desktop.
Save cyyself/7c76d58c4e847dcbca37e6942baca644 to your computer and use it in GitHub Desktop.
#!/bin/zsh
numactl --physcpubind=0,1,2,3,4,5,6,7,8 ./mcf_s_peak.mytest-m64 inp.in &
pid=$!
echo $pid | tee /sys/fs/resctrl/mon_groups/group0/tasks
while ps -p $pid > /dev/null; do
sleep 1;
cat /sys/fs/resctrl/mon_groups/group0/mon_data/mon_L3_00/llc_occupancy >> llc_occupancy
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment