core: plumbing to support numa aware scheduling (#18681)

* core: plumbing to support numa aware scheduling

* core: apply node resources compatibility upon fsm rstore

Handle the case where an upgraded server dequeus an evaluation before
a client triggers a new fingerprint - which would be needed to cause
the compatibility fix to run. By running the compat fix on restore the
server will immediately have the compatible pseudo topology to use.

* lint: learn how to spell pseudo
This commit is contained in:
Seth Hoenig
2023-10-19 15:09:30 -05:00
committed by GitHub
parent 0410b8acea
commit 83720740f5
56 changed files with 1299 additions and 1487 deletions

View File

@@ -1163,7 +1163,7 @@ func (tr *TaskRunner) buildTaskConfig() *drivers.TaskConfig {
MemoryLimitBytes: memoryLimit * 1024 * 1024,
CPUShares: taskResources.Cpu.CpuShares,
CpusetCpus: strings.Join(cpusetCpus, ","),
PercentTicks: float64(taskResources.Cpu.CpuShares) / float64(tr.clientConfig.Node.NodeResources.Cpu.CpuShares),
PercentTicks: float64(taskResources.Cpu.CpuShares) / float64(tr.clientConfig.Node.NodeResources.Processors.Topology.UsableCompute()),
},
Ports: &ports,
},