/numa

Get basic NUMA nodes infromation from Linux system

Primary LanguageGoApache License 2.0Apache-2.0

NUMA

NUMA is a library to get basic NUMA nodes information from Linux system.

package main

import (
	"fmt"
	"os"
	
	"github.com/oneumyvakin/numa"
)

func main() {
	nodes, err := numa.GetNodes()

	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	fmt.Printf("%#v\n", nodes)
}