I used to hear pinging quite regularly on snowmobile engines...just before they made a loud "SCRRRIIITTTCH" sound, and locked up. Once in a while a guy could choke them down and save his engine, but not often. I used to run sleds without any cowlings over the engine just for that purpose...stuff my chopper in the carb bell to flood the engine with cold gas when it was locking up.
I've heard it on motorcycles, too. More often on warm days and when hill climbing, just before powering out. Yamahas seemed the worst, but all of them do it. Good reason to switch to four stroke hondas. I used to be able to dyno 40 hp regularly out of bored and stroked XL-350's, set up for flattrack racing. Beat the stuffing out of Yamaha TT500's.
Sorry for the side trip. I've never heard a modern chain saw ping or knock, but then most of them made in the last 20 years run pretty fast. maybe on a 6 cube saw, pulling a long bar through sappy pine. Probably also a death rattle, like the snowmobile thing.