Inprove the performance of kerner_queue