ulimit

package
v1.9.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: BSD-3-Clause Imports: 4 Imported by: 40

Documentation

Index

Constants

View Source
const DefaultFDLimit = 32 * 1024

Variables

This section is empty.

Functions

func Set

func Set(max uint64, log logging.Logger) error

Set attempts to bump the Rlimit which has a soft (Cur) and a hard (Max) value. The soft limit is what is used by the kernel to report EMFILE errors. The hard limit is a secondary limit which the process can be bumped to without additional privileges. Bumping the Max limit further would require superuser privileges. If the current Max is below our recommendation we will warn on start. see: http://0pointer.net/blog/file-descriptor-limits.html

Types

This section is empty.

Jump to

Keyboard shortcuts

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