Prevent RAM overselling

Issue: altai-106
Change-Id: I93116105938fba0e04edb86751cb194711cbc55b