If the engine is making a knocking noise, it could be because of 2 things. First, it could be an igndition knock due to poor spark or detonation. Second, it could have an internal engine problem. If you clean out the oil and get the ignition straightened out, you can narrow down the problem. Feel free to ask more questions if needed.