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: 5 months 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T11:08:28.000Z (over 1 year ago)
- Last Synced: 2024-07-31T20:52:31.804Z (9 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
[](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)
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
}
```