Module Core__Core_unix.RLimit

Resource limits

module Limit : sig ... end
type limit = Limit.t =
| Limit of int64
| Infinity
include sig ... end
val limit_of_sexp : Base.Sexp.t ‑> limit
val sexp_of_limit : limit ‑> Base.Sexp.t
type t = {
cur : limit;

(** soft limit *)

max : limit;

(** hard limit (ceiling for soft limit) *)

}
include sig ... end
val t_of_sexp : Base.Sexp.t ‑> t
val sexp_of_t : t ‑> Base.Sexp.t
type resource
include sig ... end
val resource_of_sexp : Base.Sexp.t ‑> resource
val sexp_of_resource : resource ‑> Base.Sexp.t
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__.Import.Or_error.t
val nice : resource Core__.Import.Or_error.t

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

val get : resource ‑> t
val set : resource ‑> t ‑> unit