Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lrita/numa
- Owner: lrita
- License: mit
- Created: 2018-12-10T09:59:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T11:08:28.000Z (about 1 year ago)
- Last Synced: 2024-07-31T20:52:31.804Z (4 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 27
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - numa - NUMA is a utility library, which is written in go. It help us to write some NUMA-AWARED code. (Miscellaneous / Uncategorized)
- zero-alloc-awesome-go - numa - NUMA is a utility library, which is written in go. It help us to write some NUMA-AWARED code. (Miscellaneous / Uncategorized)
- awesome-numa - golang-numa - A golang utility library for NUMA-aware code (NUMA-aware memory placement and scheduling)
- awesome-go-extra - numa - AWARED code.|10|4|0|2018-12-10T09:59:13Z|2022-03-25T15:25:38Z| (Microsoft Office / Uncategorized)
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 mainimport (
"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
}
```