Analyzer sysctl

Name

sysctl - Run sysctl -a to get all sysctl parameters

The analyzer executes the sysctl -a command to collect all system kernel parameters. In software performance analysis, these parameters are critical for verifying whether the system kernel configuration matches the software’s runtime requirements, as improper kernel settings can directly lead to performance bottlenecks.

Resource Category

CPU.

Application Type & Technical Stack

  • All

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run sysctl -p PID

# trace a shell command directly
orxray analyzer run sysctl -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run sysctl -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run sysctl --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Tables
  • Plain Texts

Output Example

[
  [ "Variable Name", "Value" ],
  [ "abi.vsyscall32", "1" ],
  [ "crypto.fips_enabled", "0" ],
  [ "crypto.fips_name", "Rocky Linux 9 - Kernel Cryptographic API" ],
  [ "crypto.fips_version", "5.14.0-503.40.1.el9_5.x86_64" ]
]

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.