gonuma: A utility library for writing NUMA-aware Go applications. https://github.com/johnsonjh/gonuma/

Jeffrey H. Johnson 6019d4c25b Bunp dependencies 3 years ago
.github 7e283b2b84 Create Dependabot config file 4 years ago
.deepsource.toml 45645de931 Update .deepsource.toml 3 years ago
.fossa.yml d281c04970 multi: Fix failing test in Docker - add FOSSA scan 4 years ago
.gitattributes e13335fc0a Update .gitattributes: GitHub linguist vendoring 3 years ago
.gitlab-ci.yml 96d09af486 Version 1.2.5 3 years ago
.gonuma_root 8fe2ae8ce3 multi: CI/CD setup, add SECURITY policy, new tests 4 years ago
.mergify.yml 0c124ba3cf Mergify: configuration update 4 years ago
.whitesource c7df70bbeb Update .whitesource 4 years ago
LICENSE f54fc1fca4 multi: use github for imports, etc. 3 years ago
README.md 9228ef265b Update README.md 3 years ago
SECURITY.md f54fc1fca4 multi: use github for imports, etc. 3 years ago
bitmask.go f54fc1fca4 multi: use github for imports, etc. 3 years ago
bitmask_test.go d47fd75db0 Update dependencies, import paths, tag format, etc 3 years ago
cov_report.sh 5b9cbd6ad9 Update copyright, license, reporting info, docs. 3 years ago
dependabot.yml 5b9cbd6ad9 Update copyright, license, reporting info, docs. 3 years ago
go.mod 6019d4c25b Bunp dependencies 3 years ago
go.sum 6019d4c25b Bunp dependencies 3 years ago
gonuma_license_test.go f54fc1fca4 multi: use github for imports, etc. 3 years ago
numa.go d47fd75db0 Update dependencies, import paths, tag format, etc 3 years ago
numa_linux.go d47fd75db0 Update dependencies, import paths, tag format, etc 3 years ago
numa_linux_amd64.s f54fc1fca4 multi: use github for imports, etc. 3 years ago
numa_linux_test.go d47fd75db0 Update dependencies, import paths, tag format, etc 3 years ago
numa_other.go d47fd75db0 Update dependencies, import paths, tag format, etc 3 years ago
numa_other.s f54fc1fca4 multi: use github for imports, etc. 3 years ago
numa_test.go d47fd75db0 Update dependencies, import paths, tag format, etc 3 years ago
vdso_linux_amd64.go f54fc1fca4 multi: use github for imports, etc. 3 years ago
vdso_linux_amd64_test.go f54fc1fca4 multi: use github for imports, etc. 3 years ago

README.md

gonuma

GRC


gonuma is a Go utility library for writing NUMA-aware applications


Availability


Original Author


License


Usage

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
}