github.com/lrita/numa@v1.0.2/README.md (about) 1 # NUMA 2 3 [](https://travis-ci.org/lrita/numa) [](https://godoc.org/github.com/lrita/numa) [](https://codecov.io/gh/lrita/numa) [](https://goreportcard.com/report/github.com/lrita/numa) 4 5 NUMA is a utility library, which is written in go. It help us to write 6 some NUMA-AWARED code. 7 8 example gist: 9 ```go 10 package main 11 12 import ( 13 "github.com/lrita/numa" 14 ) 15 16 type object struct { 17 X int 18 _ [...]byte // padding to page size. 19 } 20 21 var objects = make([]object, numa.CPUCount()) 22 23 func fnxxxx() { 24 cpu, node := numa.GetCPUAndNode() 25 objects[cpu].X = xx 26 } 27 ```