Skip to content
/ numa Public

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

License

Notifications You must be signed in to change notification settings

lrita/numa

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published