Probably have a rod bearing or crank bearing causing the knocking. When the oil gets hot and thins out, it flows better so the knocking gets quieter. I just did a total overhaul of mine (pistons, rings, bearings) and it cost me around $500 for parts and machine work. Good luck.