ulimit

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: BSD-3-Clause Imports: 4 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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