How much milled off heads to raise compression

that's at full throttle but what about at idle when you go to turn it off and it goes knock knock knock....
And I thought you were a smart guy. Run on or dieseling can be caused by hot spots like detonation happens but not by low octane gas. Your idle can be too high causing it to diesel. What are "anti dieseling solenoids" for? How about detonation sensors on newer engines that retard the timing to prevent engine ping?