1. A method comprising: for each task of a plurality of tasks to be run on a plurality of processors of a system, determining a resident set size of the task specifying an amount of physical memory allocated to the task, and determining locational information of the amount of physical memory allocated to the task with respect to the plurality of processors; assigning each task one processor of the plurality of processors on which to be run, based on the resident set size of the task and the locational information of the amount of physical memory allocated to the task, each task attempted to be assigned to the one processor that is closest to a largest portion of the amount of physical memory allocated to the task.