Go to main content

Administering Resource Management in Oracle® Solaris 11.3

Exit Print View

Updated: March 2018
 
 

How to Create a Project With MCB Resource Controls

  1. Become root or assume an equivalent role.
  2. Create the project, called new-project in this example.
    # 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 by using the pbind command.
    # pbind -q -i projid 100
    pbind(1M): pid 4156 weakly bound to processor(s) 0 3 4 5 9 10 11.
    pbind(1M): pid 4170 weakly bound to processor(s) 0 3 4 5 9 10 11.
    pbind(1M): pid 4184 weakly bound to processor(s) 0 3 4 5 9 10 11.