Make sure that jobs cannot allocate more memory than available so we don't trigger the OOM killer. Fixes: #178