Solaris 11.2 set PROJECT share memory value "project.max-shm-memory"

prctl

show current value
$ id -p oracle
uid=501(oracle) gid=100(oinstall) projid=100(group.oinstall)
$ prctl -n project.max-shm-memory -i project group.oinstall

Show current user value
$ su - oracle
$ prctl -n project.max-shm-memory -i process $$

Add project
$ projadd user.oracle
$ projadd group.oinstall

Set value on-the-fly
$ prctl -n project.max-shm-memory -v 40gb -r -i project group.oinstall
$ prctl -n project.max-sem-ids -v 256 -r -i project group.oinstall

Set persistent
$ projmod -sK "project.max-shm-memory=(privileged,40G,deny)" group.oinstall

projmod

rename an existing project name (from user.oracle to group.oinstall)
$ projmod -l group.oinstall user.oracle

to remove a value, use -r and -K
$ projects -l default
default
        projid : 3
        comment: ""
        users  : (none)
        groups : (none)
        attribs: project.max-shm-memory=(privileged,103079215104,deny)
                 project.max.shm-memory=(privileged,15G,deny)

$ projmod -r -K project.max-shm-memory default
$ projects -l default
default
        projid : 3
        comment: ""
        users  : (none)
        groups : (none)
        attribs: project.max.shm-memory=(privileged,15G,deny)
        attribs: project.max-shm-memory=(privileged,42949672960,deny)

$ projmod -r -K project.max.shm-memory default
$ projects -l default
default
        projid : 3
        comment: ""
        users  : (none)
        groups : (none)
        attribs:


No comments: