To define a physical memory resource cap for a project, establish a resident set size (RSS) cap by adding this attribute to the project database entry:
The total amount of physical memory, in bytes, that is available to processes in the project.
For example, the following line in the /etc/project file sets an RSS cap of 10 gigabytes for a project named db.
db:100::db,root::rcap.max-rss=10737418240 |
The system might round the specified cap value to a page size.
You can use the projmod command to set the rcap.max-rss attribute in the /etc/project file:
# projmod -s -K rcap.max-rss=10GB db |
The /etc/project file then contains the line:
db:100::db,root::rcap.max-rss=10737418240 |