init the MemLoop,as the same with haloop