Ill put it this way, not possible.
as much as it would be a great and friendly idea, there's no real way of implementing such a thing without it creating a massive amount of issues, its a *maximum usage* anyway so you just set it to 2GB or 4GB if you have enough spare ram and never worry about...