parameters: (self)
docstring: Return a default configuration mode.
docstring_summary: Return a default configuration mode.
docstring_tokens: Return a default configuration mode .
function: def _get_def_mode(self):
          """
          Return a default configuration mode.
          """
          # if the only disks we are tuning are NVMe disks - return the MQ mode
          non_nvme_disks, non_nvme_irqs = self.__disks_info_by_type(DiskPerfTuner.SupportedDiskTypes.non_nvme)
          if not non_nvme_disks:
              return PerfTunerBase.SupportedModes.mq
  
          num_cores = int(run_hwloc_calc(['--restrict', self.args.cpu_mask, '--number-of', 'core', 'machine:0']))
          num_PUs = int(run_hwloc_calc(['--restrict', self.args.cpu_mask, '--number-of', 'PU', 'machine:0']))
          if num_PUs <= 4:
              return PerfTunerBase.SupportedModes.mq
          elif num_cores <= 4:
              return PerfTunerBase.SupportedModes.sq
          else:
              return PerfTunerBase.SupportedModes.sq_split
function_tokens: def _get_def_mode ( self ) : # if the only disks we are tuning are NVMe disks - return the MQ mode non_nvme_disks , non_nvme_irqs = self . __disks_info_by_type ( DiskPerfTuner . SupportedDiskTypes . non_nvme ) if not non_nvme_disks : return PerfTunerBase . SupportedModes . mq num_cores = int ( run_hwloc_calc ( [ '--restrict' , self . args . cpu_mask , '--number-of' , 'core' , 'machine:0' ] ) ) num_PUs = int ( run_hwloc_calc ( [ '--restrict' , self . args . cpu_mask , '--number-of' , 'PU' , 'machine:0' ] ) ) if num_PUs <= 4 : return PerfTunerBase . SupportedModes . mq elif num_cores <= 4 : return PerfTunerBase . SupportedModes . sq else : return PerfTunerBase . SupportedModes . sq_split