calculate memory by max value per process per moment