numa: enable numa topology detection (#18146)

* client: refactor cgroups management in client

* client: fingerprint numa topology

* client: plumb numa and cgroups changes to drivers

* client: cleanup task resource accounting

* client: numa client and config plumbing

* lib: add a stack implementation

* tools: remove ec2info tool

* plugins: fixup testing for cgroups / numa changes

* build: update makefile and package tests and cl
This commit is contained in:
Seth Hoenig
2023-08-10 17:05:30 -05:00
committed by GitHub
parent 5bc49e5208
commit a4cc76bd3e
149 changed files with 3677 additions and 5395 deletions

View File

@@ -22,18 +22,13 @@ type ExecutorConfig struct {
// FSIsolation if set will use an executor implementation that support
// filesystem isolation
FSIsolation bool
// cpuTotalTicks is the total CPU compute. It should be given as Cores * MHz
// (2 Cores * 2 Ghz = 4000)
CpuTotalTicks uint64
}
func GetPluginMap(logger hclog.Logger, fsIsolation bool, cpuTotalTicks uint64) map[string]plugin.Plugin {
func GetPluginMap(logger hclog.Logger, fsIsolation bool) map[string]plugin.Plugin {
return map[string]plugin.Plugin{
"executor": &ExecutorPlugin{
logger: logger,
fsIsolation: fsIsolation,
cpuTotalTicks: cpuTotalTicks,
logger: logger,
fsIsolation: fsIsolation,
},
}
}