るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.146秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:map[x] > クエリ:getrlimit[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. bigdecimal to_r

ライブラリ

モジュール

検索結果

Process.#getrlimit(resource) -> [Integer] (24325.0)

カレントプロセスでのリソースの制限値を、整数の配列として返します。 返り値は、現在の制限値 cur_limit と、制限値として設定可能な最大値 max_limit の 配列 [cur_limit, max_limit] です。

...現在の制限値 cur_limit と、制限値として設定可能な最大値 max_limit の
配列 [cur_limit, max_limit] です。

それぞれの limit が Process::RLIM_INFINITY と等しい場合、リソースに制限がないことを意味します。

@param resource リソースの種類...
...: Process::RLIMIT_NOFILE
プロセスがオープンできるファイルの数 (SUSv3)
: Process::RLIMIT_STACK
プロセスのスタック領域のサイズ (バイト) (SUSv3)
: Process::RLIMIT_AS
プロセスの仮想メモリサイズ (バイト) (SUSv3, NetBSD, FreeBSD, OpenBSD but 4.4BSD-Li...
...最大数 (4.4BSD, GNU/Linux)
: Process::RLIMIT_RSS
使用できる実メモリの最大サイズ (バイト) (4.2BSD, GNU/Linux)
: Process::RLIMIT_SBSIZE
ソケットバッファのサイズ (バイト) (NetBSD, FreeBSD)

例:

include Process
p lim = getrlimit(RLIMIT_STACK)...