David, nice to see your effort. We've been discussing this in the company as well, but did not get to submitting anything yet. I am sure we'll get to reviewing your PR.
On Mon, Nov 30, 2026 at 9:38 AM David Taylor <[email protected]> wrote: > I've opened a draft PR for phase 1: > https://github.com/apache/cloudstack/pull/14921. > > It follows the design above, with two things narrower than I described: > > - The settings can only be set on the compute offering for now. The > same keys as VM details are ignored, so there's no per-VM override > yet. > - A NUMA-aware instance gets all of its vCPUs and memory at start, and > its offering can't have dynamic scaling enabled. Hot-add within fixed > guest nodes can come later. > > It also doesn't rewrite the pinning on live migration, so migration > needs the destination host to have the same CPU layout until phase 2. > > It's tested end to end on a two-host lab built from the branch and on > real hardware; the details are in the PR. Feedback on the design is > still very welcome, here or on the PR. > > On Thu, 26 Nov 2026 at 00:10, David Taylor <[email protected]> wrote: > > > > Hi all, > > > > I'd like to add native NUMA support for KVM instances and would > > welcome views on the design before I start on the code. > > > > In short: a compute offering can mark instances as NUMA-aware. Such an > > instance gets guest NUMA nodes that match the host, its vCPUs are > > pinned to each node's cores, and its memory is bound to the same node. > > CloudStack only places it on hosts where every node fits. It's off by > > default, admin-controlled, and needs no schema change for the first > > phase. > > > > This has come up on users@ more than once, and in GitHub discussions > > #9801 and #11187. The usual answer has been a hook. We've run it that > > way on a 4.22 lab, and it works, but CloudStack doesn't know about it, > > so placement, migration and scaling can undo it. > > > > The full proposal is here: > https://github.com/apache/cloudstack/issues/14868 > > > > The open questions I'd most like input on: > > > > - Live scaling for NUMA-aware instances: refuse it at first, or > > support it within fixed nodes? > > - Whether a `preferred` mode is useful, or only `strict`. > > - The setting names. > > - Branch. CONTRIBUTING says features go to main, but 4.22.2 took a > > couple (#13877, #14254). I'd like the first phase to be small enough > > to consider for 4.22.3. Would the release managers be open to that, or > > should it target main? > > > > Thanks, > > David Taylor > > (GitHub: Alpha162) > -- Daan
