Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Administration Commandsrctladm(1M)


NAME

 rctladm - display and/or modify global state of system resource controls

SYNOPSIS

 rctladm [-lu] [-e action] [-d action] [name...]

DESCRIPTION

 

The rctladm command allows the examination and modification of active resource controls on the running system. An instance of a resource control is referred to as an rctl. See setrctl(2) for further description of an rctl. Logging of rctl violations can be activated or deactivated system-wide and active rctls (and their state) can be listed.

OPTIONS

 

The rctladm command supports the following options:

-l
List available rctls with event status. This option displays the global event actions available for each rctl, and by the action name used with the enable (-e) and disable (-d) options below. The global flag values for the control are also displayed. If one or more name operands are specified, only those rctls matching the given names will be displayed.

This is the default action if no options are specified.

-e action
-d action
Enable or disable, respectively, the global action on the specified rctl(s). If no rctl is specified, no action is taken and an error status is returned. You can use the special token all with the disable option to deactivate all global actions on a resource control.

You can set the syslog action to a specific degree by assigning a severity level. To do this, specify syslog=level, where level is one of the string tokens given as valid severity levels in syslog(3C). You can omit the common LOG_ prefix on the severity level.

-u
Configure resource controls based on the contents of /etc/rctladm.conf. Any name operands are ignored.

OPERANDS

 

The following operands are supported:

name
The name of the rctl to operate on. You can specify multiple rctl names may be specified. If no names are specified, and the list action has been specified, then all rctls are listed. If the enable or disable action is specified, one or more rctl names must be specified.

EXAMPLES

 Example 1. Activating System Logging for Specific Violations
 

The following command activates system logging of all violations of task.max-lwps.

 
# rctladm -e syslog task.max-lwps
#

Example 2. Examining Current Status of a Specific Resource
 

The following command examines the current status of the task.max-lwps resource.

 
$ rctladm -l task.max-lwps
task.max-lwps               syslog=DEBUG
$

EXIT STATUS

 

The following exit values are returned:

0
Successful completion.
1
Fatal error occurred.
2
Invalid command line options were specified

FILES

 
/etc/rctladm.conf
Each time rctladm is executed, it updates the contents of rctladm.conf with the current configuration.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWesu

SEE ALSO

 

setrctl(2), getrctl(2), prctl(1), rctlblk_get_global_flags(3C), rctlblk_get_global_action(3C), attributes(5)

NOTES

 

By default, the base operating system provides a variety of controls:

 
project.cpu-shares

task.max-lwps
task.max-cpu-time

process.max-cpu-time
process.max-file-size
process.max-data-size
process.max-stack-size
process.max-core-size
process.max-file-descriptor
process.max-address-space

The default properties of the process resource controls are described on setrlimit(2). Task and project resource controls are unenforced by default.


SunOS 5.9Go To TopLast Changed 14 Aug 2001

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.