Skip to content

TSPROJ-3341 combines old mdiag PRs for TSPROJ-803 818 820 #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions mdiag/mdiag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
# limitations under the License.


version="2.0.4"
revdate="2017-03-01"
version="2.0.5"
revdate="2018-05-21"

PATH="$PATH${PATH+:}/usr/sbin:/sbin:/usr/bin:/bin"

Expand Down Expand Up @@ -153,6 +153,12 @@ function _main {
section scheduler getfilesfromcommand find /sys -name scheduler
section rotational getfilesfromcommand find /sys -name rotational

# rq_affinity settings for CPU preference to service I/O requests
section rq_affinity getfiles /sys/block/*/queue/rq_affinity

# Disk entropy contribution settings
section add_random getfiles /sys/block/*/queue/add_random

# Network info
section ifconfig runcommand ifconfig -a
section route runcommand route -n
Expand All @@ -171,6 +177,14 @@ function _main {
section rpcinfo runcommand rpcinfo -p
section netstat runcommand netstat -anpoe

# Receive Packet Steering (RPS) information
section rps subsection rpsinfo getfiles /sys/class/net/*/queues/rx-*/rps_cpus
section rps subsection rpsflowinfo getfiles /sys/class/net/*/queues/rx-*/rps_flow_cnt
section rps subsection rpsflowlimit getfiles /proc/sys/net/core/flow_limit_cpu_bitmap
section rps subsection rfsinfo getfiles /proc/sys/net/core/rps_sock_flow_entries
section rps subsection txinfo getfiles /sys/class/net/*/queues/tx-*/xps_cpus
section rps subsection txlimit getfiles/sys/class/net/*/queues/tx-*/tx_maxrate

# Network time info
section ntp getfiles /etc/ntp.conf
section ntp subsection chkconfig runcommand chkconfig --list ntpd
Expand Down