add support to set MemorySwap Upstream-commit: 748b7459b3268c014e781d93fa9b374fe742b811 Component: engine