def getArch(rec):
    """Return arch type (intel/amd/arm).
    """
    info = rec["product"]["attributes"]
    if info["physicalProcessor"].startswith("Intel "):
        return "intel"
    if info["physicalProcessor"].startswith("High Frequency Intel "):
        return "intel"
    if info["physicalProcessor"].startswith("AMD EPYC "):
        return "amd"
    if info["physicalProcessor"].startswith("AWS Graviton"):
        return "arm"
    if info["physicalProcessor"].startswith("Variable"):
        return "intel"
    raise Exception("unknown cpu: %s" % info["physicalProcessor"])