module Procfs: Procfstypebigint =Core.Std.Big_int.big_int
val input_all_with_reused_buffer : unit -> (string -> string) Core.Std.Staged.tmodule Process:sig..end
module Meminfo:sig..end
module Kstat:sig..end
module Loadavg:sig..end
val get_all_procs : unit -> Process.t listget_all_procs returns a list of all processes on the systemval with_pid_exn : Core.Std.Pid.t -> Process.twith_pid_exn pid returns a single process that matches pid, or raises Not_foundval with_pid : Core.Std.Pid.t -> Process.t optionwith_pid pid returns a single process that matches pidval with_uid : int -> Process.t listwith_uid uid returns all processes owned by uidval pgrep : (Process.t -> bool) -> Process.t listpgrep f returns all processes for which f is trueval pkill : signal:Core.Std.Signal.t ->
(Process.t -> bool) ->
(Core.Std.Pid.t * (unit, Core.Unix.error) Core.Result.t) listpkill ~signal f sends the signal to all processes for which f returns true. It
returns the list of processes that were signaled, and the resulting errors if any.val with_username_exn : string -> Process.t listwith_username_exn user calls with_uid after looking up the user's uidval with_username : string -> Process.t list optionwith_username user calls with_uid after looking up the user's uidval jiffies_per_second_exn : unit -> floatjiffies_per_second_exn. A jiffy "is one tick of the system timer interrupt. It is
not an absolute time interval unit, since its duration depends on the clock interrupt
frequency of the particular hardware platform."
Further reading: https://secure.wikimedia.org/wikipedia/en/wiki/Jiffy_(time)
val jiffies_per_second : unit -> float optionval meminfo_exn : unit -> Meminfo.tmeminfo_exn queries /proc/meminfo and fills out Meminfo.t. All values in bytes.val meminfo : unit -> Meminfo.t optionval loadavg_exn : unit -> Loadavg.tloadavg_exn parses /proc/loadavg.val loadavg : unit -> Loadavg.t optionmodule Net:sig..end
module Mount:sig..end
val mounts : unit -> Mount.t listval mounts_of_fstab : unit -> Mount.t listval supported_filesystems : unit -> string listval uptime : unit -> Core.Time.Span.tval process_age : Process.t -> Core.Time.Span.t optionval process_age' : jiffies_per_second:float -> Process.t -> Core.Time.Span.tval bigint_of_sexp : Sexplib.Sexp.t -> bigintval sexp_of_bigint : bigint -> Sexplib.Sexp.trange: -17 to +15t corresponds to the values in /proc/meminfo. All values in bytes.t corresponds to the values in /proc/loadavg.get_all_procs returns a list of all processes on the systemwith_pid_exn pid returns a single process that matches pid, or raises Not_foundwith_pid pid returns a single process that matches pidwith_uid uid returns all processes owned by uidpgrep f returns all processes for which f is truepkill ~signal f sends the signal to all processes for which f returns true. It
returns the list of processes that were signaled, and the resulting errors if any.with_username_exn user calls with_uid after looking up the user's uidwith_username user calls with_uid after looking up the user's uidjiffies_per_second_exn. A jiffy "is one tick of the system timer interrupt. It is
not an absolute time interval unit, since its duration depends on the clock interrupt
frequency of the particular hardware platform."
Further reading: https://secure.wikimedia.org/wikipedia/en/wiki/Jiffy_(time)
meminfo_exn queries /proc/meminfo and fills out Meminfo.t. All values in bytes.
loadavg_exn parses /proc/loadavg.
/proc/net/tcp, or what netstat or lsof -i parses.
These don't do any IO and should be async-ok
This does IO and is not async-ok.