OK, you made me go look, because I thought one (barking) was a symptom of the other (surge)
According to Garrett.
Surge is the left hand boundary of the compressor map. Operation to the left of this line represents a region of flow instability. This region is characterized by mild flutter to wildly fluctuating boost and “barking” from the compressor. Continued operation within this region can lead to premature turbo failure due to heavy thrust loading.
Surge is most commonly experienced when one of two situations exist. The first and most damaging is surge under load. It can be an indication that your compressor is too large. Surge is also commonly experienced when the throttle is quickly closed after boosting. This occurs because mass flow is drastically reduced as the throttle is closed, but the turbo is still spinning and generating boost. This immediately drives the operating point to the far left of the compressor map, right into surge.
Surge will decay once the turbo speed finally slows enough to reduce the boost and move the operating point back into the stable region. This situation is commonly addressed by using a Blow-Off Valves (BOV) or bypass valve. A BOV functions to vent intake pressure to atmosphere so that the mass flow ramps down smoothly, keeping the compressor out of surge. In the case of a recirculating bypass valve, the airflow is recirculated back to the compressor inlet.