implemented total available memory statistic and checking