diff options
| author | mo khan <mo@mokhan.ca> | 2013-08-28 07:20:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-08-28 07:20:13 -0600 |
| commit | db1191ec0e7305d684383f8974e2fa437f77ad5a (patch) | |
| tree | 5e27b197dff849d22d8e1f50eb75aa499b16bd06 /code/snippets/rlimits.rb | |
Diffstat (limited to 'code/snippets/rlimits.rb')
| -rw-r--r-- | code/snippets/rlimits.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/code/snippets/rlimits.rb b/code/snippets/rlimits.rb new file mode 100644 index 0000000..a391c15 --- /dev/null +++ b/code/snippets/rlimits.rb @@ -0,0 +1,12 @@ +# The maximum number of simultaneous processes +# allowed for the current user. +Process.getrlimit(:NPROC) + +# The largest size file that may be created. +Process.getrlimit(:FSIZE) + +# The maximum size of the stack segment of the +# process. +Process.getrlimit(:STACK) + + |
