Go to main content

Administering Resource Management in Oracle® Solaris 11.4

Exit Print View

Updated: February 2021
 
 

How to Create a Project With MCB Resource Controls

  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. Create the project new-project.
    $ projadd -K project.mcb.cpus=0,3-5,9-11 -K project.mcb.flags=weak -K project.pool=pool_default new-project
  3. View the project.
    $ projects -l new-project
    new-project
            projid : 100
            comment: ""
            users  : (none)
            groups : (none)
            attribs: project.mcb.cpus=0,3-5,9-11
                     project.mcb.flags=weak
                     project.pool=pool_default

    To check the validity of the project file only, use the projmod command without options.

  4. Check the binding.
    $ pbind -q -i projid 100
    pbind(8): pid 4156 weakly bound to processor(s) 0 3 4 5 9 10 11.
    pbind(8): pid 4170 weakly bound to processor(s) 0 3 4 5 9 10 11.
    pbind(8): pid 4184 weakly bound to processor(s) 0 3 4 5 9 10 11.