A method and system of managing resource allocation in a non-uniform
resource access computer system is disclosed. A method comprises
determining access costs between resources in a computer system having
non-uniform access costs between the resources. The method also includes
constructing a hierarchical data structure comprising the access costs.
The hierarchical data structure is traversed to manage a set of the
resources.