Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 818 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 818 Bytes

NUMA

Build Status GoDoc codecov Go Report Card

NUMA is a utility library, which is written in go. It help us to write some NUMA-AWARED code.

example gist:

package main

import (
	"github.com/lrita/numa"
)

type object struct {
	X int
	_ [...]byte // padding to page size.
 }

var objects = make([]object, numa.CPUCount())

func fnxxxx() {
	cpu, node := numa.GetCPUAndNode()
	objects[cpu].X = xx
}