Skip to content

Instantly share code, notes, and snippets.

View mcgrof's full-sized avatar

Luis Chamberlain mcgrof

View GitHub Profile
root@base-xfs-nocrc-1k /var/lib/xfstests # cat results/base-xfs-nocrc-1k/6.8.0-rc2/xfs_nocrc_1k/xfs/104.dmesg
[10518.670305] run fstests xfs/104 at 2024-02-01 21:22:35
[10519.114729] XFS (loop16): Mounting V4 Filesystem ba90b70e-97ec-47f9-a6d6-d89eb2bed219
[10519.149337] XFS (loop16): Ending clean mount
[10519.513383] XFS (loop5): Mounting V4 Filesystem d36ab75b-864e-42b9-ab31-27ff3dca7fc7
[10519.528407] XFS (loop5): Ending clean mount
[10522.675287] XFS (loop5): SB summary counter sanity check failed
[10522.675998] XFS (loop5): Metadata corruption detected at xfs_sb_write_verify+0x5e/0x130 [xfs], xfs_sb block 0x0
[10522.677198] XFS (loop5): Unmount and run xfs_repair
[10522.677873] XFS (loop5): First 128 bytes of corrupted metadata buffer:
#!/bin/bash
set -e
set_sched()
{
TARGET_DEV=$1
TARGET_SCHED=$2
echo $TARGET_SCHED > /sys/block/$TARGET_DEV/queue/scheduler
}
Nov 07 05:38:44 min-xfs-nocrc-16k-4ks unknown: run fstests generic/251 at 2023-11-07 05:38:44
Nov 07 05:38:45 min-xfs-nocrc-16k-4ks kernel: XFS (loop16): Mounting V4 Filesystem ebf88afe-9bf1-49d0-b686-6aa7c68d5e26
Nov 07 05:38:45 min-xfs-nocrc-16k-4ks kernel: XFS (loop16): Ending clean mount
Nov 07 05:38:45 min-xfs-nocrc-16k-4ks kernel: XFS (loop5): Mounting V4 Filesystem c18fcf20-3041-4969-9879-6e1d623dc32f
Nov 07 05:38:45 min-xfs-nocrc-16k-4ks kernel: XFS (loop5): Ending clean mount
Nov 07 05:43:40 min-xfs-nocrc-16k-4ks kernel: XFS (loop5): xlog_verify_grant_tail: space > BBTOB(tail_blocks)
Nov 07 05:43:44 min-xfs-nocrc-16k-4ks kernel: XFS: Assertion failed: bp->b_flags & XBF_DONE, file: fs/xfs/xfs_trans_buf.c, line: 241
Nov 07 05:43:44 min-xfs-nocrc-16k-4ks kernel: ------------[ cut here ]------------
Nov 07 05:43:44 min-xfs-nocrc-16k-4ks kernel: kernel BUG at fs/xfs/xfs_message.c:102!
Nov 07 05:43:44 min-xfs-nocrc-16k-4ks kernel: invalid opcode: 0000 [#1] PREEMPT SMP PTI
AMD Ryzen 9 3900X 12-Core Processor
mcgrof@bicho /mnt-xfs-4k/linux (git::minorder)$ nproc
24
2 threads per core
mcgrof@bicho /mnt-xfs-4k/linux (git::minorder)$ free -h
total used free shared buff/cache available
Mem: 31Gi 1.5Gi 1.8Gi 1.4Mi 28Gi 29Gi
Swap: 29Gi 256Ki 29Gi
on c7a.8xlarge 32 vcpus & 64 GiB RAM on AMD EPYC but its virtualized
mcgrof@cheap /mnt-xfs-4k/linux (git::large-block-minorder)$ /home/mcgrof/build.sh
Performance counter stats for 'make -s -j32 bzImage' (100 runs):
2136859.17 msec task-clock:u # 11.774 CPUs utilized ( +- 0.39% )
0 context-switches:u # 0.000 /sec
0 cpu-migrations:u # 0.000 /sec
48163113 page-faults:u # 24.000 K/sec ( +- 0.00% )
mcgrof@cheap /mnt-xfs-4k/linux (git::large-block-minorder)$ /home/mcgrof/build-pg-v2.sh
Performance counter stats for 'make -s -j32 bzImage' (2 runs):
227506892652 ns duration_time:u ( +- 0.64% )
1094035787000 ns user_time:u ( +- 0.04% )
933145613000 ns system_time:u ( +- 0.35% )
48146608 page-faults:u ( +- 0.02% )
137 major-faults:u ( +- 10.58% )
48146471 minor-faults:u ( +- 0.02% )
mcgrof@eqbm-smc112 /mnt-nvme-xfs-4k/linux (git::large-block-minorder-6.6.0-rc5-v1)$ /home/mcgrof/build.sh
Performance counter stats for 'make -s -j128 bzImage' (100 runs):
2,199,979.59 msec task-clock # 48.074 CPUs utilized ( +- 0.07% )
233,150 context-switches # 105.978 /sec ( +- 2.47% )
45,444 cpu-migrations # 20.657 /sec ( +- 0.47% )
45,036,060 page-faults # 20.471 K/sec ( +- 0.02% )
6,146,984,262,105 cycles # 2.794 GHz ( +- 0.07% )
6,890,023,991,801 instructions # 1.12 insn per cycle ( +- 0.00% )
mcgrof@eqbm-smc112 /mnt-nvme-xfs-4k/linux (git::large-block-minorder-6.6.0-rc5-v1)$ make -s mrproper defconfig ; make -s -j$(nproc) bzImage
Tracing completed. Summary:
Aligned operations:
@aligned_op[262144]: 64
@aligned_op[131072]: 214
@aligned_op[65536]: 249
@aligned_op[32768]: 510
@aligned_op[16384]: 1121
LBS minorder + anonymous memory patches merged
mcgrof@eqbm-smc112 /mnt-nvme-xfs-4k/linux (git::large-block-minorder-6.6.0-rc5-v1)$ /home/mcgrof/build.sh
Performance counter stats for 'make -s -j128 bzImage' (4 runs):
2,177,348.53 msec task-clock # 62.005 CPUs utilized ( +- 0.06% )
213,362 context-switches # 97.992 /sec ( +- 2.97% )
47,970 cpu-migrations # 22.031 /sec ( +- 1.53% )
45,017,837 page-faults # 20.676 K/sec ( +- 0.04% )
mcgrof@eqbm-smc112 /mnt-nvme-xfs-4k/linux (git::large-block-minorder-6.6.0-rc5-v1)$ /home/mcgrof/build.sh
Performance counter stats for 'make -s -j128 bzImage' (4 runs):
2,173,083.14 msec task-clock # 61.070 CPUs utilized ( +- 0.09% )
214,322 context-switches # 98.626 /sec ( +- 1.06% )
48,836 cpu-migrations # 22.473 /sec ( +- 0.82% )
45,004,733 page-faults # 20.710 K/sec ( +- 0.06% )
6,089,773,116,885 cycles # 2.802 GHz ( +- 0.08% )
6,884,146,413,021 instructions # 1.13 insn per cycle ( +- 0.01% )