Go to main content

Administering Resource Management in Oracle® Solaris 11.4

Exit Print View

Updated: August 2018
 
 

How to Display Default Resource Control Values

Before You Begin

This procedure must be used on a system on which no resource controls have been set or changed. There can be only non-default entries in the /etc/system file or in the project database.

  1. Assume the root role.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Use the prctl command on any process, such as the current shell that is running.

    Command output is similar to the following:

    $ prctl $$
    process: 3320: bash
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    process.max-port-events
            privileged      65.5K       -   deny                                 -
            system          2.15G     max   deny                                 -
    process.max-msg-messages
            privileged      8.19K       -   deny                                 -
            system          4.29G     max   deny                                 -
    process.max-msg-qbytes
            privileged      64.0KB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    process.max-sem-ops
            privileged        512       -   deny                                 -
            system          2.15G     max   deny                                 -
    process.max-sem-nsems
            privileged        512       -   deny                                 -
            system          32.8K     max   deny                                 -
    process.max-address-space
            privileged      16.0EB    max   deny                                 -
            system          16.0EB    max   deny                                 -
    process.max-file-descriptor
            basic             256       -   deny                              3320
            privileged      65.5K       -   deny                                 -
            system          2.15G     max   deny                                 -
    process.max-core-size
            privileged      8.00EB    max   deny                                 -
            system          8.00EB    max   deny                                 -
    process.max-stack-size
            basic           10.0MB      -   deny                              3320
            privileged      32.0TB      -   deny                                 -
            system          32.0TB    max   deny                                 -
    process.max-data-size
            privileged      16.0EB    max   deny                                 -
            system          16.0EB    max   deny                                 -
    process.max-file-size
            privileged      8.00EB    max   deny,signal=XFSZ                     -
            system          8.00EB    max   deny                                 -
    process.max-cpu-time
            privileged      18.4Es    inf   signal=XCPU                          -
            system          18.4Es    inf   none                                 -
    task.max-cpu-time
            usage               0s   
            system          18.4Es    inf   none                                 -
    task.max-processes
            usage               2    
            system          2.15G     max   deny                                 -
    task.max-lwps
            usage               3    
            system          2.15G     max   deny                                 -
    project.max-contracts
            privileged      10.0K       -   deny                                 -
            system          2.15G     max   deny                                 -
    project.max-locked-memory
            usage               0B   
            system          16.0EB    max   deny                                 -
    project.max-port-ids
            privileged      8.19K       -   deny                                 -
            system          65.5K     max   deny                                 -
    project.max-shm-memory
            privileged       510MB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    project.max-shm-ids
            privileged        128       -   deny                                 -
            system          16.8M     max   deny                                 -
    project.max-msg-ids
            privileged        128       -   deny                                 -
            system          16.8M     max   deny                                 -
    project.max-sem-ids
            privileged        128       -   deny                                 -
            system          16.8M     max   deny                                 -
    project.max-tasks
            usage               2    
            system          2.15G     max   deny                                 -
    project.max-processes
            usage               4    
            system          2.15G     max   deny                                 -
    project.max-lwps
            usage              11    
            system          2.15G     max   deny                                 -
    project.cpu-cap
            usage               0    
            system          4.29G     inf   deny                                 -
    project.cpu-shares
            usage               1    
            privileged          1       -   none                                 -
            system          65.5K     max   none                                 -
    zone.max-lofi
            usage               0    
            system          18.4E     max   deny                                 -
    zone.max-swap
            usage            180MB   
            system          16.0EB    max   deny                                 -
    zone.max-locked-memory
            usage               0B   
            system          16.0EB    max   deny                                 -
    zone.max-shm-memory
            system          16.0EB    max   deny                                 -
    zone.max-shm-ids
            system          16.8M     max   deny                                 -
    zone.max-sem-ids
            system          16.8M     max   deny                                 -
    zone.max-msg-ids
            system          16.8M     max   deny                                 -
    zone.max-processes
            usage              73    
            system          2.15G     max   deny                                 -
    zone.max-lwps
            usage             384    
            system          2.15G     max   deny                                 -
    zone.cpu-cap
            usage               0    
            system          4.29G     inf   deny                                 -
    zone.cpu-shares
            usage               1    
            privileged          1       -   none                                 -
            system          65.5K     max   none