sql view with free memory on server