mpstat implementation