tidb: github.com/pingcap/tidb/util/sys/linux Index | Files

package linux

import "github.com/pingcap/tidb/util/sys/linux"


Package Files


func OSVersion Uses

func OSVersion() (osVersion string, err error)

OSVersion returns version info of operation system. e.g. Linux 4.15.0-45-generic.x86_64

func SetAffinity Uses

func SetAffinity(cpus []int) error

SetAffinity sets cpu affinity.

Package linux imports 2 packages (graph) and is imported by 12 packages. Updated 2020-05-29. Refresh now. Tools for package owners.