~trn/gonuma

gonuma: A utility library for writing NUMA-aware Go applications
714fb7d2 — Jeffrey H. Johnson 3 days ago
Update language version and dependencies
406102a9 — Jeffrey H. Johnson 8 days ago
Update dependencies
a701c9f8 — Jeffrey H. Johnson 20 days ago
Merge pull request #2 from johnsonjh/HGRT21

clone

read-only
https://git.sr.ht/~trn/gonuma
read/write
git@git.sr.ht:~trn/gonuma

You can also use your local clone with git send-email.

#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
}