lrita / numa

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
}

About

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

License:MIT License


Languages

Language:Go 96.8%Language:Assembly 3.2%