cpu

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cpu allows determining topological arrangement of CPU cores, generally for use in setting RSS IRQs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreSiblings

func CoreSiblings() topo

func Count

func Count() uint16

func Mask

func Mask() uint64

func ThreadSiblings

func ThreadSiblings() topo

Types

type CpuSet

type CpuSet []uint16

CpuSet: a set of cpus generally linked in some way that affects performance

func AllCpus

func AllCpus() CpuSet

func CreateSetWeighted

func CreateSetWeighted(setSize int) (set CpuSet)

keep track of how many queues are on each core when creating set, prefer unassigned cores/sockets

func (CpuSet) Contains

func (s CpuSet) Contains(c uint16) bool

func (CpuSet) ContainsCSib

func (s CpuSet) ContainsCSib(c uint16) bool

check for core siblings

func (CpuSet) ContainsTSib

func (s CpuSet) ContainsTSib(c uint16) bool

check for thread siblings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL