better average_mem in overall graph