Popping or rumbling is usually sediment baked onto the bottom of a tank. A high-pitched whine on a tankless unit can be scale or a restricted heat exchanger. Crackling right after a new install can be normal expansion. Ongoing rumbling means the unit should be flushed or replaced.