I was just thinking about this and never thought to look into how much bandwidth my VMs use.
Seems the backend exists, works for me anyways (amd epyc).
mount -t resctrl resctrl /sys/fs/resctrl
mkdir /sys/fs/resctrl/mon_groups/mbw
#PID of a virtual machine
echo 3908 > /sys/fs/resctrl/mon_groups/mbw/tasks
#Total memory bandwidth (includes cache)
cat /sys/fs/resctrl/mon_groups/mbw/mon_data/mon_L3_00/mbm_total_bytes
#DRAM bandwidth
cat /sys/fs/resctrl/mon_groups/mbw/mon_data/mon_L3_00/mbm_local_bytes
Seems the backend exists, works for me anyways (amd epyc).
mount -t resctrl resctrl /sys/fs/resctrl
mkdir /sys/fs/resctrl/mon_groups/mbw
#PID of a virtual machine
echo 3908 > /sys/fs/resctrl/mon_groups/mbw/tasks
#Total memory bandwidth (includes cache)
cat /sys/fs/resctrl/mon_groups/mbw/mon_data/mon_L3_00/mbm_total_bytes
#DRAM bandwidth
cat /sys/fs/resctrl/mon_groups/mbw/mon_data/mon_L3_00/mbm_local_bytes