probevctrl Command

Purpose

Changes and displays the ProbeVue dynamic tracing parameters and the ProbeVue sessions.

Syntax

probevctrl [ -c attribute = value ] [ -d sessionID = value ] [ -l ] [ -n attribute = value ] [ -p ] [ -u user-list ] [ -t ]

Description

The probevctrl command changes and displays the ProbeVue dynamic tracing parameters, the per-processor trace buffer size, the consumed pinned memory, the user owning the session, the identifier of the process that started the session, and the information on whether the session has kernel probes for the ProbeVue sessions.

The following ProbeVue parameters are configurable:
  • ProbeVue status (enabled/disabled).
  • Maximum pinned memory (MB) allocated for all ProbeVue sessions.
  • Maximum pinned memory (KB) allocated for a non-privileged user’s ProbeVue session including the memory for the trace buffers.
  • Number of concurrent ProbeVue sessions allowed for a regular user.
  • Default size of the per-processor trace buffers (KB).
  • The minimum period in milliseconds that a regular user can request the trace consumer to read from its trace buffers.
  • The default period in milliseconds that the ProbeVue buffers will be read by the trace consumer.
  • The size of the per-processor computation stack used by a ProbeVue session (KB).
  • The minimum time interval allowed for global root user in interval probes.
  • The percentage of memory that is allocated for the dynamic data structure.
  • The size of the per-processor local table in KB.
  • The number of page fault contexts for handling page faults.
  • The maximum number of threads a ProbeVue session should support when it has thread local variables.
Only the root user or the users having the aix.ras.probevue.manage authorization can update the ProbeVue parameters and view all the ProbeVue sessions. Otherwise, users can view only the sessions owned by themselves. Each session is displayed in the following format:
Sid Pid Uid Buffer size in bytes Consumed memory in bytes Kernel Probes
<sid> <pid> <uid> <bufsize> <memory> Yes/No

By default, the ProbeVue is enabled. Attempt to disable the ProbeVue when the ProbeVue sessions are active will fail.

Flags

Item Description
-c Specifies non-user ProbeVue parameters. Arguments to this flag must be separated by commas or enclosed in double quotation marks and separated by commas or spaces. If either the -p or the -t flag is not specified with this flag, new values will be made effective both in the present boot and next boot sessions. The valid attribute-value pairs are as follows:
trace= {on | off}
Specifies whether the ProbeVue must be enabled or disabled.
default_buffer_size=<default_buffer_size>
Specifies the default size of the per-processor trace buffers in KB. This is rounded to the next 4KB page.
max_total_mem_size=<max_total_mem_size>
Specifies the maximum pinned memory in MB consumable by the entire ProbeVue framework.
default_read_rate=<default_read_rate>
Specifies the default period in milliseconds that the ProbeVue buffers will be read by the trace consumer.
stack_size=<stack_size_in_4Kpages>
Specifies the size of the per-processor computation stack in KB. This will be rounded to the next 4KB page.
local_table_size=<number>
Specifies the size of the per-processor local table in KB. Half of the space allocated for the local table is used by temporary strings. The default value is set to 4 KB.
min_interval=<interval in ms>
Specifies the minimum time interval allowed for global root user in interval probes.
num_pagefaults = <number>
Specifies the number of page fault contexts for handling page faults. The specified number of page fault contexts are preallocated during ProbeVue framework initialization.
num_threads_traced = <number>
Specifies the maximum number of threads a ProbeVue session can support when it has thread local variables. The ProbeVue framework preallocates all the thread-local variables at the start of a session for the maximum number of threads that are specified with this attribute.
-d sessionId Displays the list of probes enabled for the specified session. When you specify all as the session ID, then the probes for all the ProbeVue sessions that can be viewed by the user is displayed. A list of ProbeVue sessions and the associated session ID can be obtained using the probevctrl command.
-l Lists the present value of the ProbeVue configuration parameters. If the -p or the -t flag is not specified, parameter values for the present boot session are displayed.
-n Specifies the configurable parameters for regular users. Arguments to this option must be separated by commas or enclosed in double quotation marks and separated by commas or spaces. If either the -p or the -t flag is not specified with this flag, new values will be made effective both in the present boot and next boot sessions. The valid attribute-value pairs are as follows:
max_mem_size=<max_mem_size>
Specifies the maximum pinned memory in MB consumable by a ProbeVue session.
max_sessions=<max_sessn>
Specifies the maximum concurrent sessions allowed.
min_read_rate=<min_read_rate>
Specifies the minimum period in milliseconds that a regular user can request the trace consumer to read from its trace buffers.
pin_mem_dvar_pc=<pin_mem_dvar_pc>
Specifies the percentage of memory that can be allocated to the dynamic data structure for dynamic type variables. This memory can be used for stack trace and associative array type dynamic variables. The value of this parameter is set in the range 10-100. The default value is 50.
-p Specifies that the default values for the next boot must be updated and displayed.
-u Specifies comma-separated user list whose ProbeVue sessions must be listed. If the -u flag is not specified, all of the ProbeVue sessions that the user can view are displayed. A user with the aix.ras.probevue.manage authorization can view all of the ProbeVue sessions in the system. Users without this authorization can view only the ProbeVue sessions they own.
-t Specifies that the default values for the present boot session must be updated and displayed.

Examples

  1. To modify the next boot default buffer size and to turn on the dynamic tracing, enter:
    probevctrl -c trace=on,default_buffer_size=8 –p
    or
    probevctrl -c "trace=on default_buffer_size=8" -p
  2. To list the next boot ProbeVue configuration, enter:
    probevctrl –l –p
  3. To list the present ProbeVue configuration, enter:
    probevctrl –l –t
  4. To list all of the ProbeVue sessions, enter:
    probevctrl
  5. To list all of the ProbeVue sessions owned by the user guest, enter:
    probevctrl –u guest
  6. To increase the percentage of pinned memory that is allocated for the dynamic data structures (stack trace and associative array) for the next boot from a default 50 -75, enter:
    probevctrl –n  pin_mem_dvar_pc = 75