ライブラリ
- ビルトイン (209)
キーワード
-
RLIMIT
_ AS (11) -
RLIMIT
_ CORE (11) -
RLIMIT
_ CPU (11) -
RLIMIT
_ DATA (11) -
RLIMIT
_ FSIZE (11) -
RLIMIT
_ MEMLOCK (11) -
RLIMIT
_ NOFILE (11) -
RLIMIT
_ NPROC (11) -
RLIMIT
_ RSS (11) -
RLIMIT
_ SBSIZE (11) -
RLIMIT
_ STACK (11) -
RLIM
_ INFINITY (11) -
RLIM
_ SAVED _ CUR (11) -
RLIM
_ SAVED _ MAX (11) -
ruby 1
. 9 feature (11) - spawn (44)
検索結果
先頭5件
-
Process
. # getrlimit(resource) -> [Integer] (18214.0) -
カレントプロセスでのリソースの制限値を、整数の配列として返します。 返り値は、現在の制限値 cur_limit と、制限値として設定可能な最大値 max_limit の 配列 [cur_limit, max_limit] です。
...(バイト) (NetBSD, FreeBSD)
例:
include Process
p lim = getrlimit(RLIMIT_STACK) #=> [8388608, 18446744073709551615]
p lim.map{|i| i == RLIM_INFINITY ? "unlimited" : "#{i/(1024**2)}MB" } #=> ["8MB", "unlimited"]
@see Process.#setrlimit, getrlimit(2)... -
Process
:: RLIM _ SAVED _ CUR -> Integer (117.0) -
Process.#getrlimit, Process.#setrlimit で使われます。詳しくは setrlimit(2) を参照して下さい。
...Process.#getrlimit, Process.#setrlimit で使われます。詳しくは setrlimit(2) を参照して下さい。... -
Process
:: RLIM _ SAVED _ MAX -> Integer (117.0) -
Process.#getrlimit, Process.#setrlimit で使われます。詳しくは setrlimit(2) を参照して下さい。
...Process.#getrlimit, Process.#setrlimit で使われます。詳しくは setrlimit(2) を参照して下さい。... -
Kernel
. # spawn(env , program , *args , options={}) -> Integer (110.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
...の引数が2個、3個の場合に対応します。
//emlist[][ruby]{
# 現プロセスの core の resource limit を取得
cur, max = Process.getrlimit(:CORE)
# 一時的に子プロセスの core dump を止める
pid = spawn(command, :rlimit_core=>[0,max]) # disable core temporary.
# 子プロ... -
Kernel
. # spawn(program , *args) -> Integer (110.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
...の引数が2個、3個の場合に対応します。
//emlist[][ruby]{
# 現プロセスの core の resource limit を取得
cur, max = Process.getrlimit(:CORE)
# 一時的に子プロセスの core dump を止める
pid = spawn(command, :rlimit_core=>[0,max]) # disable core temporary.
# 子プロ... -
Process
:: RLIMIT _ AS -> Integer (107.0) -
リソースの種類がプロセスの仮想メモリサイズであることを示す定数です。
...リソースの種類がプロセスの仮想メモリサイズであることを示す定数です。
Process.#getrlimit、Process.#setrlimit で使われます。
システムによっては定義されていません。... -
Process
:: RLIMIT _ CORE -> Integer (107.0) -
リソースの種類が core ファイルのサイズであることを示す定数です。
...リソースの種類が core ファイルのサイズであることを示す定数です。
Process.#getrlimit、Process.#setrlimit で使われます。
システムによっては定義されていません。... -
Process
:: RLIMIT _ CPU -> Integer (107.0) -
リソースの種類がプロセスの CPU 時間であることを示す定数です。
...リソースの種類がプロセスの CPU 時間であることを示す定数です。
Process.#getrlimit、Process.#setrlimit で使われます。
システムによっては定義されていません。... -
Process
:: RLIMIT _ DATA -> Integer (107.0) -
リソースの種類がプロセスのデータ領域のサイズであることを示す定数です。
...リソースの種類がプロセスのデータ領域のサイズであることを示す定数です。
Process.#getrlimit、Process.#setrlimit で使われます。
システムによっては定義されていません。... -
Process
:: RLIMIT _ FSIZE -> Integer (107.0) -
リソースの種類がプロセスが生成するファイルのサイズであることを示す定数です。
...リソースの種類がプロセスが生成するファイルのサイズであることを示す定数です。
Process.#getrlimit、Process.#setrlimit で使われます。
システムによっては定義されていません。...