On linux we can make a cpu core offline by the command :
echo 0 > /sys/devices/system/cpu/<core num>/online.
This causes the processes running on that core to be migrated to other cores. What I need to do is to measure the time it takes to migrate a process from one core to another. How should I do this ?