Statistics for On-chip memory space partitioning for chip multiprocessors using polyhedral algebra