limits

package
v0.0.0-...-70d8496 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Lhits int

Functions

This section is empty.

Types

type Sysatomic_t

type Sysatomic_t int64

func (*Sysatomic_t) Give

func (s *Sysatomic_t) Give()

func (*Sysatomic_t) Given

func (s *Sysatomic_t) Given(_n uint)

func (*Sysatomic_t) Take

func (s *Sysatomic_t) Take() bool

returns false if the limit has been reached.

func (*Sysatomic_t) Taken

func (s *Sysatomic_t) Taken(_n uint) bool

type Syslimit_t

type Syslimit_t struct {
	// protected by proclock
	Sysprocs int
	// proctected by idmonl lock
	Vnodes int
	// proctected by _allfutex lock
	Futexes int
	// proctected by arptbl lock
	Arpents int
	// proctected by routetbl lock
	Routes int
	// per TCP socket tx/rx segments to remember
	Tcpsegs int
	// socks includes pipes and all TCP connections in TIMEWAIT.
	Socks Sysatomic_t
	// total cached dirents
	// total pipes
	Pipes Sysatomic_t
	// additional memory filesystem per-page objects; each file gets one
	// freebie.
	Mfspgs Sysatomic_t
	// shared buffer space
	//shared		Sysatomic_t
	// bdev blocks
	Blocks int
}
var Syslimit *Syslimit_t = MkSysLimit()

func MkSysLimit

func MkSysLimit() *Syslimit_t

Jump to

Keyboard shortcuts

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