Restrict topology attributes by deault

Hey, shouldn’t we restrict setting NUMA topology for the users by default?

VM_RESTRICTED_ATTR = "TOPOLOGY/CORES"
VM_RESTRICTED_ATTR = "TOPOLOGY/HUGEPAGE_SIZE"
VM_RESTRICTED_ATTR = "TOPOLOGY/MEMORY_ACCESS"
VM_RESTRICTED_ATTR = "TOPOLOGY/PIN_POLICY"
VM_RESTRICTED_ATTR = "TOPOLOGY/SOCKETS"
VM_RESTRICTED_ATTR = "TOPOLOGY/THREADS"

Eg user can allocate too many resources by this:

TOPOLOGY = [
  CORES = "9999",
  PIN_POLICY = "THREAD",
  SOCKETS = "9999" ]

Hello @kvaps,

That’s make total sense, can you open a GitHub issue for that?

1 Like