Eng-6361: pass two extra parameters from engine to frontend

All right. But there should be a test cases that the peak memory is higher than the current memory. 

Can you add a test case for that cases?