Thanks for all your reply ,
i will try to find if there is any command like "SetProcessWorkingSetSize" under linux ,
and check my program if there is any memory leaks .