Framework to manage memory affinity in large scale hierarchical shared memory multi-core platforms