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
sysdump causing grml-hwinfo to hang #3
Comments
jkirk
added a commit
to jkirk/grml-hwinfo
that referenced
this issue
Nov 14, 2020
Identified the following files in /sys/kernel/tracing which cause hang: * /sys/kernel/tracing/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe_raw * /sys/kernel/tracing/per_cpu/cpu[0-9]+/snapshot_raw To make sysdump more robust for future blocking files, ignoring files which contain 'pipe' seems obvious. Instead ignoring the files explictly like this: if ($file =~ "/sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe*") { if ($file =~ "/sys/kernel/tracing/trace_pipe") { Moved print $file to the beginning of the block to make it easier to debug, in case other files cause blocking. Closes: grml#3
jkirk
added a commit
to jkirk/grml-hwinfo
that referenced
this issue
Nov 14, 2020
Identified the following files in /sys/kernel/tracing which cause hang: * /sys/kernel/tracing/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe_raw * /sys/kernel/tracing/per_cpu/cpu[0-9]+/snapshot_raw To make sysdump more robust for future blocking files, ignoring files which contain 'pipe' seems obvious. Instead ignoring the files explictly like this: if ($file =~ "/sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe*") { if ($file =~ "/sys/kernel/tracing/trace_pipe") { Moved print $file to the beginning of the block to make it easier to debug, in case other files cause blocking. Closes: grml#3
jkirk
added a commit
to jkirk/grml-hwinfo
that referenced
this issue
Jan 27, 2021
Identified the following files in /sys/kernel/tracing which cause hang: * /sys/kernel/tracing/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe_raw * /sys/kernel/tracing/per_cpu/cpu[0-9]+/snapshot_raw Instead of ignoring the files explicitly like this: if ($file =~ "/sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe*") { if ($file =~ "/sys/kernel/tracing/trace_pipe") { and to make sysdump more robust for future blocking files, it seemed more obvious to ignore all files which contain '*_pipe*'. Also moved print $file to the beginning of the block to make it easier to debug, in case other files cause blocking. Closes: grml#3
jkirk
added a commit
to jkirk/grml-hwinfo
that referenced
this issue
Feb 12, 2021
Identified the following files in /sys/kernel/tracing which cause hang: * /sys/kernel/tracing/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe * /sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe_raw * /sys/kernel/tracing/per_cpu/cpu[0-9]+/snapshot_raw Instead of ignoring the files explicitly like this: if ($file =~ "/sys/kernel/tracing/per_cpu/cpu[0-9]+/trace_pipe*") { if ($file =~ "/sys/kernel/tracing/trace_pipe") { and to make sysdump more robust for future blocking files, it seemed more obvious to ignore all files which contain '*_pipe*'. Also moved print $file to the beginning of the block to make it easier to debug, in case other files cause blocking. Closes: grml#3
mika
added a commit
that referenced
this issue
Mar 5, 2021
Sometimes new files show up in the kernel and sysdump might be hanging while reading them. To make this more visible to the user and how to track this down, provide information, if not running with -q/-quiet. Related to #3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to issue #1 and grml/grml#55 sysdump causes grml-info to hang. This time on a Desktop PC (MSI X99S GAMING 7 (MS-7885) + Intel Core i7-5820K + 16GB).
Currently no time to debug longer, but running
sysdump | less
(as root) ends up here:Pressing CTRL-C once at that point continues sysdump:
And seems to finish fine then. Hope this gives a clue where to look for the problem.
If you need more infos, please let me know.
The text was updated successfully, but these errors were encountered: