Rabu, 24 April 2019

How to change file size limit on JFS2 and user file size limit on AIX 6

  Tidak ada komentar
Check the user file size limit
bash-4.4# lsuser -a fsize root
root fsize=2097151
bash-4.4#
bash-4.4# ulimit -a
core file size          (blocks, -c) 1048575
data seg size           (kbytes, -d) 131072
file size               (blocks, -f) 1048575
max memory size         (kbytes, -m) 32768
open files                      (-n) 2000
pipe size            (512 bytes, -p) 64
stack size              (kbytes, -s) 32768
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
bash-4.4#
bash-4.4# ulimit -f 104857500
bash-4.4#
bash-4.4# ulimit -a
core file size          (blocks, -c) 1048575
data seg size           (kbytes, -d) 131072
file size               (blocks, -f) 104857500
max memory size         (kbytes, -m) 32768
open files                      (-n) 2000
pipe size            (512 bytes, -p) 64
stack size              (kbytes, -s) 32768
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
bash-4.4#
bash-4.4# lsuser -a fsize root
root fsize=2097151
bash-4.4#
bash-4.4#
bash-4.4# lsuser -help
lsuser: Not a recognized flag: h
Usage: lsuser [-R load_module] [ -c | -C | -f ] [ -a attr attr ... ] { "ALL" | user1,user2 ... }
bash-4.4#
bash-4.4# vi /etc/security/limits
bash-4.4#
bash-4.4# cat /etc/security/limits

*
* Sizes are in multiples of 512 byte blocks, CPU time is in seconds
*
* fsize      - soft file size in blocks
* core       - soft core file size in blocks
* cpu        - soft per process CPU time limit in seconds
* data       - soft data segment size in blocks
* stack      - soft stack segment size in blocks
* rss        - soft real memory usage in blocks
* nofiles    - soft file descriptor limit
* fsize_hard - hard file size in blocks
* core_hard  - hard core file size in blocks
* cpu_hard   - hard per process CPU time limit in seconds
* data_hard  - hard data segment size in blocks
* stack_hard - hard stack segment size in blocks
* rss_hard   - hard real memory usage in blocks
* nofiles_hard - hard file descriptor limit
*
* The following table contains the default hard values if the
* hard values are not explicitly defined:
*
*   Attribute        Value
*   ==========    ============
*   fsize_hard    set to fsize
*   cpu_hard      set to cpu
*   core_hard         -1
*   data_hard         -1
*   stack_hard      8388608
*   rss_hard          -1
*   nofiles_hard      -1
*
* NOTE:  A value of -1 implies "unlimited"
*

default:
        fsize = 209715100
        core = 2097151
        cpu = -1
        data = 262144
        rss = 65536
        stack = 65536
        nofiles = 2000

root:

daemon:

bin:

sys:

adm:

uucp:

guest:

nobody:

lpd:

pconsole:
        stack_hard = 131072
        data = 1280000
        data_hard = 1280000

esaadmin:
        stack = 393216
        stack_hard = 393216
bash-4.4#
bash-4.4# lsuser -a fsize root
root fsize=209715100
bash-4.4#
bash-4.4#

Tidak ada komentar :

Posting Komentar