package core

  1. Overview
  2. Docs
On This Page
  1. Resource limits
Legend:
Library
Module
Module type
Parameter
Class
Class type

Resource limits

module Limit : sig ... end
type limit = Limit.t =
  1. | Limit of int64
  2. | Infinity
val sexp_of_limit : limit -> Ppx_sexp_conv_lib.Sexp.t
val limit_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> limit
type t = {
  1. cur : limit;
    (*

    soft limit

    *)
  2. max : limit;
    (*

    hard limit (ceiling for soft limit)

    *)
}
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
type resource
val sexp_of_resource : resource -> Ppx_sexp_conv_lib.Sexp.t
val resource_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> resource
val core_file_size : resource
val cpu_seconds : resource
val data_segment : resource
val file_size : resource
val num_file_descriptors : resource
val stack : resource
val virtual_memory : resource Core_kernel.Or_error.t

See man pages for "getrlimit" and "setrlimit" for details.

val get : resource -> t
val set : resource -> t -> unit
OCaml

Innovation. Community. Security.