ulimit

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

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