For the past two years - after start-up - my Yanmar 1 GM has been running like a purring kitten (as much as a diesel engine can). Recently a knocking sound has started that seems to be getting progressively worse. Is this a valve adjustment issue?
Loose valves make a ticking noise; I would look at the oil filter. If you find bearing material there the problem could be with a worn bearing. When a bearing starts to fail it gets more and more play resulting in a (quickly) worsening knocking sound.