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

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

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
}