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

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