10Sstevel@tonic-gate# 2*12388SJohn.Sonnenschein@Sun.COM# Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 30Sstevel@tonic-gate# 40Sstevel@tonic-gate 50Sstevel@tonic-gateLicensing 60Sstevel@tonic-gate--------- 70Sstevel@tonic-gateThis module is released under the Perl Artistic License. 80Sstevel@tonic-gate 90Sstevel@tonic-gateAvailability 100Sstevel@tonic-gate------------ 110Sstevel@tonic-gateThis module is only available for Solaris 9 onwards. 120Sstevel@tonic-gate 130Sstevel@tonic-gateDescription 140Sstevel@tonic-gate----------- 150Sstevel@tonic-gateThis module provided access to the Solaris Project subsystem, which is part of 160Sstevel@tonic-gatethe Solaris resource management infrastructure. 170Sstevel@tonic-gate 180Sstevel@tonic-gateFor more information on Solaris Projects, see the project(4) manpage and the 190Sstevel@tonic-gatefollowing on-line documentation: 200Sstevel@tonic-gate 210Sstevel@tonic-gateSystem Administration Guide: Resource Management and Network Services 220Sstevel@tonic-gateChapter 6 - Projects and Tasks 230Sstevel@tonic-gatehttp://docs.sun.com/db/doc/816-7125 240Sstevel@tonic-gate 250Sstevel@tonic-gateAn example of how this module might be used is to put the Apache httpd under 260Sstevel@tonic-gateresource management control, so that the total resources used by Apache can be 270Sstevel@tonic-gatelimited using Solaris resource management. Assuming mod_perl is installed for 280Sstevel@tonic-gateApache, and a project with the appropriate limits has been established 290Sstevel@tonic-gate(see documentation references above), the following code in the Apache Perl 300Sstevel@tonic-gatestartup file will place Apache under RM control: 310Sstevel@tonic-gate 320Sstevel@tonic-gateuse Sun::Solaris::Project qw(:ALL); 330Sstevel@tonic-gatemy $user = getpwuid(Apache->server->uid()); 340Sstevel@tonic-gatesetproject(getdefaultproj($user), $user, 0) == 0 || die($!); 350Sstevel@tonic-gate 360Sstevel@tonic-gateInstallation 370Sstevel@tonic-gate------------ 380Sstevel@tonic-gate 390Sstevel@tonic-gate1. Uncompress and untar the archive 400Sstevel@tonic-gate2. cd to the module directory 410Sstevel@tonic-gate3. perl Makefile.PL; make install 420Sstevel@tonic-gate 430Sstevel@tonic-gateIf you are using gcc and wish to build this module against the perl shipped as 440Sstevel@tonic-gatepart of Solaris, see the Solaris-PerlGcc module, also available from CPAN. 45