Analyzer sys-softirq-stats

Name

sys-softirq-stats - System Softirq Statistics

This analyzer monitors system softirq (software interrupt) activity. It captures softirq counts broken down by type (such as NET_RX, NET_TX, TIMER, SCHED, RCU, etc.) and measures per-CPU softirq utilization during the sampling period. The analyzer presents data in bar chart format, helping identify which softirq types are firing most frequently and which CPUs are bearing the heaviest softirq load, useful for diagnosing high softirq overhead and network/timer-related performance issues.

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 sys-softirq-stats -p PID

# trace a shell command directly
orxray analyzer run sys-softirq-stats -c SHELL_CMD

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

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

Tracing Multiple Processes

Supported.

Output Formats

  • Tables
  • Plain Texts

Output Example

[
  {
    "data": [
      [ "CPU", "dropped", "time_squeeze", "processed" ],
      [ "cpu0", 0, 0, 2 ],
      [ "cpu1", 0, 0, 54 ]
    ],
    "type": "table",
    "title": "5s softnet statistics from /proc/net/softnet_stat",
    "subtitle": "Increase netdev_max_backlog if dropped > 0; Increase netdev_budget if time_squeeze > 0"
  },
  {
    "data": [
      [ "CPU" "BLOCK", "HI", "SCHED", "TIMER", "TASKLET", "HRTIMER", "NET_TX", "RCU", "NET_RX", "IRQ_POLL" ],
      [ "cpu0", "0.0", "0.0", "127.0", "6.0", "0.0", "0.0", "0.0", "77.0", "2.0", "0.0" ],
      [ "cpu1", "0.0", "0.0", "103.0", "80.0", "0.0", "0.0", "0.0", "155.0", "0.0", "0.0" ]
    ],
    "type": "table",
    "title": "5s sofirq statistics from /proc/softirqs"
  },
  {
    "data": [
      [ "CPU", "user", "system", "iowait", "idle", "nice", "irq", "softirq", "steal" ],
      [ "cpu", "0.6%", "0.4%", "0.0%", "99.0%", "0.0%", "0.0%", "0.0%", "0.0%" ],
      [ "cpu0", "0.2%", "0.2%", "0.0%", "99.6%", "0.0%", "0.0%", "0.0%", "0.0%" ],
    ],
    "type": "table",
    "title": "CPU usage"
  }
]

Author

The OpenResty Inc. Team.

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