gonuma: A utility library for writing NUMA-aware Go applications. https://github.com/johnsonjh/gonuma/
Jeffrey H. Johnson 6019d4c25b Bunp dependencies | 2 years ago | |
---|---|---|
.github | 3 years ago | |
.deepsource.toml | 3 years ago | |
.fossa.yml | 3 years ago | |
.gitattributes | 3 years ago | |
.gitlab-ci.yml | 3 years ago | |
.gonuma_root | 3 years ago | |
.mergify.yml | 3 years ago | |
.whitesource | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
SECURITY.md | 3 years ago | |
bitmask.go | 3 years ago | |
bitmask_test.go | 3 years ago | |
cov_report.sh | 3 years ago | |
dependabot.yml | 3 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
gonuma_license_test.go | 3 years ago | |
numa.go | 3 years ago | |
numa_linux.go | 3 years ago | |
numa_linux_amd64.s | 3 years ago | |
numa_linux_test.go | 3 years ago | |
numa_other.go | 3 years ago | |
numa_other.s | 3 years ago | |
numa_test.go | 3 years ago | |
vdso_linux_amd64.go | 3 years ago | |
vdso_linux_amd64_test.go | 3 years ago |
gonuma
is a Go utility library for writing NUMA-aware applications
package main
import (
gonuma "github.com/johnsonjh/gonuma"
)
type object struct {
X int
_ [...]byte // pad to page size
}
var objects = make(
[]object,
gonuma.CPUCount(),
)
func fnxxxx() {
cpu, node := gonuma.GetCPUAndNode()
objects[cpu].X = xx
}