private Severity getSpillSeverity(double ratioSpills) {

    long normalizedSpillRatio = 0;
    //Normalize the ratio to integer.
    normalizedSpillRatio = (long) (ratioSpills * THRESHOLD_SPILL_FACTOR);

    return Severity.getSeverityAscending(
        normalizedSpillRatio, spillLimits[0], spillLimits[1], spillLimits[2], spillLimits[3]);
  }
Analyzes mapper task data spill rates
app/com/linkedin/drelephant/tez/heuristics/MapperSpillHeuristic.java