1N/A#
1N/A# Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/ALicensing
1N/A---------
1N/AThis module is released under the Perl Artistic License.
1N/A
1N/AAvailability
1N/A------------
1N/AThis module is only available for Solaris 9 onwards.
1N/A
1N/ADescription
1N/A-----------
1N/AThis module provided access to the Solaris Project subsystem, which is part of
1N/Athe Solaris resource management infrastructure.
1N/A
1N/AFor more information on Solaris Projects, see the project(4) manpage and the
1N/Afollowing on-line documentation:
1N/A
1N/ASystem Administration Guide: Resource Management and Network Services
1N/AChapter 6 - Projects and Tasks
1N/Ahttp://docs.sun.com/db/doc/816-7125
1N/A
1N/AAn example of how this module might be used is to put the Apache httpd under
1N/Aresource management control, so that the total resources used by Apache can be
1N/Alimited using Solaris resource management. Assuming mod_perl is installed for
1N/AApache, and a project with the appropriate limits has been established
1N/A(see documentation references above), the following code in the Apache Perl
1N/Astartup file will place Apache under RM control:
1N/A
1N/Ause Sun::Solaris::Project qw(:ALL);
1N/Amy $user = getpwuid(Apache->server->uid());
1N/Asetproject(getdefaultproj($user), $user, 0) == 0 || die($!);
1N/A
1N/AInstallation
1N/A------------
1N/A
1N/A1. Uncompress and untar the archive
1N/A2. cd to the module directory
1N/A3. perl Makefile.PL; make install
1N/A
1N/AIf you are using gcc and wish to build this module against the perl shipped as
1N/Apart of Solaris, see the Solaris-PerlGcc module, also available from CPAN.