Skip to content

Commit

Permalink
Remove AffinityPreferredNumaNodes and revendor
Browse files Browse the repository at this point in the history
Signed-off-by: Kirtana Ashok <[email protected]>
  • Loading branch information
kiashok committed Sep 5, 2024
1 parent f318f38 commit 2c7e150
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Microsoft/hcsshim

go 1.21.12
go 1.22.4

require (
github.com/Microsoft/cosesign1go v1.1.0
Expand Down
3 changes: 2 additions & 1 deletion internal/hcsoci/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ func setCPUAffinityOnJobObject(ctx context.Context, spec *specs.Spec, computeSys
}
}

/*
if spec.Windows.Resources.CPU.AffinityPreferredNumaNodes != nil {
numaNodeInfo, err := coreinfo.GetNumaNodeToProcessorInfo()
if err != nil {
Expand All @@ -393,7 +394,7 @@ func setCPUAffinityOnJobObject(ctx context.Context, spec *specs.Spec, computeSys
}
}
}

*/
return job.SetInformationJobObject(info)
}

Expand Down
12 changes: 9 additions & 3 deletions vendor/github.com/opencontainers/runtime-spec/specs-go/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ github.com/opencontainers/image-spec/specs-go/v1
github.com/opencontainers/runc/libcontainer/devices
github.com/opencontainers/runc/libcontainer/user
# github.com/opencontainers/runtime-spec v1.1.0 => ../../runtime-spec/
## explicit; go 1.21.12
## explicit; go 1.22.4
github.com/opencontainers/runtime-spec/specs-go
# github.com/pelletier/go-toml v1.9.5
## explicit; go 1.12
Expand Down

0 comments on commit 2c7e150

Please sign in to comment.