~trn/gonuma

gonuma: A utility library for writing NUMA-aware Go applications
06614601 — Jeffrey H. Johnson 17 hours ago
Update dependencies
2610c614 — Jeffrey H. Johnson 4 days ago
Update dependencies
91c36ed3 — Jeffrey H. Johnson 16 days ago
Update dependencies

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
}