BTRACE(8)
π
BTRACE β the btrace(8) manual, but make it make sense
okay bestie, welcome to btrace(8) π this is the block-device tracing era and you're gonna love it.
β¨ NAME β¨
btrace β live tracing for block devices, bestie. that's it, that's the whole vibe. π₯
π¦ SYNOPSIS π¦
btrace [-s] [-t] [-w N] [-n N] [-b N] [-r <dbg mnt>] [-a <trace>...]
<dev>...
πΈ DESCRIPTION πΈ
so like. the btrace script is your quick-and-easy lil shortcut for doing live tracing of block devices β no cap, it's genuinely that simple. π«Ά
it calls blktrace on the devices you hand it, then pipes that output straight through blkparse for formatting. that's the whole pipeline, iconic behaviour honestly.
if you wanna go deeper on how blktrace actually works under the hood, go read blktrace (8). it's giving β¨extended loreβ¨.
π OPTIONS π
-sβ shows the data sorted by program (peepblkparse (1)for the details, iykyk).-tβ shows time deltas per IO (again,blkparse (1)has the tea β).-w Nβ sets the run time to however many seconds you put inN(seeblktrace (8)).-n Nβ tells it how many buffers to use (seeblktrace (8)).-b Nβ sets the buffer size for event extraction, scaled by 1024 (seeblktrace (8)).-r <dbg mnt>β specifies the debugfs mountpoint. that's the one, that's the path π-a <trace>...β adds a mask to the current filter (seeblktrace (8)).<dev>β specifies the device you wanna trace. literally just point it at the device, slay.
π EXAMPLE π
the simplest possible main-character move β just run:
% btrace /dev/sda
and boom, you get a trace of the device /dev/sda. no notes. β¨
π AUTHORS π
blkparse was written by Jens Axboe, Alan D. Brunelle and Nathan Scott. legends, fr fr.
this man page was created from the blktrace documentation by Bas Zoetekouw. π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it to <linux-btrace@vger.kernel.org> π§
βοΈ COPYRIGHT βοΈ
Copyright Β© 2006 Jens Axboe, Alan D. Brunelle and Nathan Scott.
this is free software. you may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. (yes, all caps, they meant it π)
this manual page was created for Debian by Bas Zoetekouw. it was derived from the documentation provided by the authors and it may be used, distributed and modified under the terms of the GNU General Public License, version 2.
on Debian systems, the text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. ποΈ
π SEE ALSO π
blktrace (8)blkparse (1)verify_blkparse (1)blkrawverify (1)btt (1)
go trace something, bestie. your block devices have been waiting for their moment. π«Άπ
and that's the whole page!! this one shipped as blktrace git-20070306202522, dated March 6, 2007 β yes, 2007, she's vintage and she's still serving. periodt. πβ¨
π¦ where this page comes from
- centos-stream 10: blktrace 1.3.0-13.el10 Β· GPL-2.0-or-later
- centos-stream 9: blktrace 1.2.0-20.el9 Β· GPLv2+
- debian bookworm: blktrace 1.2.0-5 Β· GPL-2.0-or-later
- fedora 43: blktrace 1.3.0-13.fc43 Β· GPL-2.0-or-later
- fedora 44: blktrace 1.3.0-15.fc44 Β· GPL-2.0-or-later
- nixos 26.05: blktrace 1.3.0
- nixpkgs unstable: blktrace 1.3.0
- opensuse-leap 16.0: blktrace 1.3.0+git.20211021-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: blktrace 1.3.0+git.20211021-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: blktrace 1.3.0+git.20211021-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: blktrace 1.3.0+git.20211021-160000.2.2 Β· GPL-2.0-only
- ubuntu jammy: blktrace 1.2.0-5 Β· GPL-2.0-or-later
- ubuntu noble: blktrace 1.2.0-5ubuntu2 Β· GPL-2.0-or-later
- ubuntu questing: blktrace 1.2.0-5ubuntu4
- ubuntu resolute: blktrace 1.2.0-5ubuntu5 Β· GPL-2.0-or-later
- ubuntu stonking: blktrace 1.2.0-5ubuntu5 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms