~trn/gonuma

gonuma: A utility library for writing NUMA-aware Go applications

73404a6 Update dependencies

~trn pushed to ~trn/gonuma git

11 hours ago

b213da6 Update dependencies

~trn pushed to ~trn/gonuma git

a day ago

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