This could be a crack on the exhaust pipes that is causing this resonating sound. All BMW's (e46's at least) have this sound, very lightly, like a thumping, and is normal. Actual knocking, as in hoarse metallic sounds is probably the lifters in the engine.
2001 325i ZCW, ZPP
Titansilber Metallic, Black Interior
The 160,000 mile, clean daily driver