February 2, 2010

Solaris 10 Project Resource Control Limits and how to monitor

Filed under: Unix / Solaris — Tags: , , , , , — Tim Lefler @ 3:49 pm

On Solaris 10 there are a number of resource limits that can be imposed on a Solaris 10 project.

The “prjstat -J” command gives you a nice basic summary of overall project resources being used. ”

PROJID    NPROC  SWAP   RSS MEMORY      TIME  CPU PROJECT
     3      350 6106M 2677M    16%  22:41:16 2.2% default
     1        4 2704K 4096K   0.0%   0:08:10 0.8% user.root
     0       45  198M  225M   1.4%   0:17:25 0.1% system
   100       13  121M   67M   0.4%   0:24:27 0.0% group.mqm

So from the output above you can see that I have 4 projects defined. On my system, of particular note is the fact that other than for members of group mqm everyone uses the “default” project to define limits system wide. So how do we find out what limits are currently defined?

The “prctl” command will give you the limits currently imposed for a particular process. Once again because everyone uses the “default” project simply sign-in as a normal user and execute the “prctl” command with “$$” as arguments to use the current shell’s process to determine resource limits. (more…)

Powered by WordPress