Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lrita/numa

NUMA is a utility library, which is written in go. It help us to write some NUMA-AWARED code.
https://github.com/lrita/numa

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# NUMA

[![Build Status](https://travis-ci.org/lrita/numa.svg?branch=master)](https://travis-ci.org/lrita/numa) [![GoDoc](https://godoc.org/github.com/lrita/numa?status.png)](https://godoc.org/github.com/lrita/numa) [![codecov](https://codecov.io/gh/lrita/numa/branch/master/graph/badge.svg)](https://codecov.io/gh/lrita/numa) [![Go Report Card](https://goreportcard.com/badge/github.com/lrita/numa)](https://goreportcard.com/report/github.com/lrita/numa)

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

example gist:
```go
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
}
```