1. Recommended method for modifying the /etc/project file is to use the “projadd” and “projmod” :

a. # projadd -c "Oracle" 'user.oracle'

b. # projmod -s -K "project.max-shm-memory=(privileged,10GB,deny)" 'user.oracle'

c. verify with # cat /etc/project or # prctl -i project user.oracle

2. Resource Control assignments made in this way (in the /etc/project file) are permanent, and will survive a system re-boot.

3. There is also an “on-the-fly” way to temporarily set Resource Control assignments using the prctl(1) command.

a. Should we need to temporarily increase the setting to 48 GB:
For example, assuming the preceding /etc/project

# prctl -n project.max-shm-memory -i project user.oracle

project: 100: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 16.0GB - deny -
system 16.0EB max deny -

# prctl -n project.max-shm-memory -r -v 48GB -i project user.oracle
# prctl -n project.max-shm-memory -i project user.oracle

project: 100: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 48 .0GB - deny -
system 16.0EB max deny

b. fix parameter ; entry new value on max-shm # vi /etc/project

values such as 48GB instead of the 51539607552

;project.max-shm-memory=(privileged, 51539607552, deny);

Popularity: 85% [?]

You Should Also Check Out This Post:

More Active Posts: