Skip to content
NUMA is a utility library, which is written in go. It help us to write some NUMA-AWARED code.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
README.md
bitmask.go
bitmask_test.go
numa.go
numa_linux.go
numa_linux_amd64.s
numa_linux_test.go
numa_other.go
numa_other.s
numa_test.go

README.md

NUMA

Build Status GoDoc codecov

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
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.