From: Stephen Bates <sbates@raithlin.com>
To: linux-btrace@vger.kernel.org
Subject: Thread 0 failed read of /sys/kernel/debug/block/nvme0n1/trace0: 14/Bad address
Date: Sun, 18 Dec 2022 18:59:32 +0000 [thread overview]
Message-ID: <Y59jFMeWCxLYpQ0v@bunbeg> (raw)
In-Reply-To: <80891a87-0629-0438-60e9-959ca4871208@kernel.dk>
Hi All
I am trying to get iowatcher up and running on a VM and I seem to be
hitting an issue reading the debugfs trace files. When I run on the VM
I continually get messages of the form. This is not specific to
iowatcher in that if I run blktrace directly I get something similar:
$ blktrace -b 8192 -a queue -a complete -a issue -a notify -o ./trace -D . -d /dev/nvme0n1
<snip>
setup_mmap: mmap: Invalid argument
Thread 0 failed read of /sys/kernel/debug/block/nvme0n1/trace0: 14/Bad address
This is on a generic Ubuntu 22.04 install.
$ uname -r
5.15.0-57-generic
Now if I run similar commands on an AWS instance things work as
expected. AND if I directly pipe the output of blktrace into blkparse
it seems to work as expected too, even on the VM.
Does anyone have any ideas? Is there a kernel config I am missing that
is corrected on the AWS kernel? I assume the fact the NVMe SSD on my
VM in emulated via QEMU has no impact on this.
BTW this is all because I am working on an updated version of
iowatcher that ties into Prometheus so I can track disk access
patterns across a fleet of servers [1].
[1]. https://github.com/sbates130272/iowatcher-ng
--
Cheers
Stephen Bates, PhD.
next prev parent reply other threads:[~2022-12-18 18:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-18 18:56 Thread 0 failed read of /sys/kernel/debug/block/nvme0n1/trace0: 14/Bad address Jens Axboe
2022-12-18 18:59 ` Stephen Bates [this message]
2022-12-18 19:27 ` Jens Axboe
2022-12-19 5:52 ` Stephen Bates
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y59jFMeWCxLYpQ0v@bunbeg \
--to=sbates@raithlin.com \
--cc=linux-btrace@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.