You configured a limit of 100 LWPs project. You want to ensure that the LWP limit was not set too
low, so you need to monitor the LWPs currently in use by the project.
Which two options could you use to monitor the current LWP resource control and the
consumption of resources for this project?
A.
prtcl $$
B.
configuring syslogd to log messages received from the resource manager daemon
C.
ps –o taskid –p
D.
prtcl –n task.max-lwps $$
E.
rctladm –l task.max-lwps
F.
rctladm –e syslog task.max-lwps; when the threshold for the resource is exceeded, a log entry
will be generated by syslogd
Explanation:
D: Example:
# prctl -n task.max-lwps $$
process: 111107: csh
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
task.max-lwps
usage 3
privileged 3 – deny -system 2.15G max deny
F: The following command activates system logging of all violations of task.max-lwps.
# rctladm -e syslog task.max-lwps#
Note: How to Set the Maximum Number of LWPs for Each Task in a Project
This procedure adds a project named x-files to the /etc/project file and sets a maximum number of
LWPs for a task created in the project.
1.Become an administrator.
2. Use the projadd command with the -K option to create a project called x-files. Set the maximum
number of LWPs for each task created in the project to 3.
# projadd -K ‘task.max-lwps=(privileged,3,deny)’ x-files
The answer should be: C, D
Example 1 Displaying Current Resource Control Settings
The following example displays current resource control set-
tings for a task to which the current shell belongs:
example$ ps -o taskid -p $$
TASKID
8
example$ prctl -i task 8
136150: /bin/ksh
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
task.max-cpu-time
D and F are corrects.
D:
prctl -n task.max-lwps $$
process: 256: -bash
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
task.max-lwps
usage 4
system 2.15G max deny
F
For example, you can use rctladm with the -e option to enable the global syslog attribute of a resource control. When the control is exceeded, notification is logged at the specified syslog level. To enable the global syslog attribute of process.max-file-descriptor, type the following:
Just passed Oracle Solaris 11 1Z0-822 exam! Scored 85% (the passing score is 70% now)!
80 questions, they were mainly on SMF, IPS, ZFS, Configuring the Network, Securing the Oracle Solairs 11 O/S, Installing Oracle Solaris 11 on multiple hosts and so on.
The 1Z0-822 exam has been revised since 2016, I do recommend you to learn the latest 1Z0-822 dumps here:
http://www.oraclebraindump.com/?s=1Z0-822
(Those are part of PassLeader 1Z0-822 dumps, suggest to get its full version 1Z0-822 dumps with VCE and PDF.)
Good Luck!