• Stars
    star
    16
  • Rank 1,267,849 (Top 26 %)
  • Language
    Go
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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
}