Skip to content

Instantly share code, notes, and snippets.

View mcgrof's full-sized avatar

Luis Chamberlain mcgrof

View GitHub Profile
#!/usr/bin/python3
import json
import csv
import sys
import os
def load_json_data(json_file):
with open(json_file, 'r') as f:
return json.load(f)
mcgrof@debian12-xfs-reflink-16k-4ks /data/plot-sysbench (git::main)$ sudo blkalgn -d nvme2n1 --json-output blkalgn-xfs-16k-reflink-doublewrite.json
In file included from /virtual/main.c:2:
In file included from include/uapi/linux/ptrace.h:183:
In file included from arch/x86/include/asm/ptrace.h:175:
In file included from arch/x86/include/asm/paravirt_types.h:12:
In file included from arch/x86/include/asm/nospec-branch.h:15:
arch/x86/include/asm/current.h:47:10: warning: multiple identical address spaces specified for type [-Wduplicate-decl-specifier]
return this_cpu_read_const(const_pcpu_hot.current_task);
^
arch/x86/include/asm/percpu.h:577:36: note: expanded from macro 'this_cpu_read_const'
root@bdev-xfs-reflink-32k ~ # cat /sys/block/nvme13n1/queue/logical_block_size
32768
root@bdev-xfs-reflink-32k ~ # cat /sys/block/nvme13n1/queue/physical_block_size
2097152
root@bdev-xfs-reflink-32k ~ # mkfs.xfs -f -b size=64k -s size=32k /dev/nvme13n1
meta-data=/dev/nvme13n1 isize=512 agcount=4, agsize=409600 blks
= sectsz=32768 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=1
= reflink=1 bigtime=1 inobtcount=1 nrext64=1
data = bsize=65536 blocks=1638400, imaxpct=25
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: Linux version 6.10.0-rc2 (mcgrof@some-yomoma) (gcc (Debian 13.2.0-23) 13.2.0, GNU ld (GNU Binutils for Debian) 2.42) #8 SMP PREEMPT_DYNAMIC Sat Jun 8 13:48:23 PDT 2024
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-6.10.0-rc2 root=UUID=ddf91058-656c-4606-806a-8a4a9d31676c ro console=tty0 console=tty1 console=ttyS0,115200n8 console=ttyS0,115200n8
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: x86/split lock detection: #DB: warning on user-space bus_locks
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-provided physical RAM map:
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
Jun 08 13:50:
With CONFIG_PROVE_LOCKING=y MAX_LOCKDEP_CHAIN_HLOCKS is too low on the new generic/749
which tests fsstress against compaction
[ 326.567430] run fstests generic/749 at 2024-06-07 16:48:23
[ 332.684652] XFS (loop5): Mounting V5 Filesystem b3f4eab9-b91d-4a31-8024-49c02f460615
[ 332.851035] XFS (loop5): Ending clean mount
[ 1546.223139] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
[ 1546.224941] turning off the locking correctness validator.
[ 1546.226788] Please attach the output of /proc/lock_stat to the bug report
[ 1546.228971] CPU: 2 PID: 2479 Comm: kworker/u35:12 Not tainted 6.10.0-rc2 #6
generic/531 runs first without issues for 9 times, then:
May 30 16:58:52 linus-xfs-crc unknown: run fstests generic/531 at 2024-05-30 16:58:52
May 30 16:58:58 linus-xfs-crc kernel: XFS (loop5): Mounting V5 Filesystem fc992da8-4df6-4561-8900-e2929b368652
May 30 16:58:58 linus-xfs-crc kernel: XFS (loop5): Ending clean mount
May 30 17:02:41 linus-xfs-crc kernel: XFS: Assertion failed: bp->b_flags & XBF_DONE, file: fs/xfs/xfs_trans_buf.c, line: 241
May 30 17:02:41 linus-xfs-crc kernel: ------------[ cut here ]------------
May 30 17:02:41 linus-xfs-crc kernel: kernel BUG at fs/xfs/xfs_message.c:102!
May 30 17:02:41 linus-xfs-crc kernel: Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
May 30 17:02:41 linus-xfs-crc kernel: CPU: 4 PID: 73 Comm: kworker/4:1 Not tainted 6.10.0-rc1 #4
root@linus-xfs-nocrc-2k /var/lib/xfstests # du -hs /media/sparsefiles/sparse-disk*
0 /media/sparsefiles/sparse-disk10
0 /media/sparsefiles/sparse-disk11
0 /media/sparsefiles/sparse-disk12
0 /media/sparsefiles/sparse-disk13
0 /media/sparsefiles/sparse-disk14
132M /media/sparsefiles/sparse-disk15
65M /media/sparsefiles/sparse-disk16
65M /media/sparsefiles/sparse-disk5
0 /media/sparsefiles/sparse-disk6
@mcgrof
mcgrof / gist:9dc92b42030d0688fb088341dc0e8d25
Created May 12, 2024 23:43
generic/470 crash on 32k sector size
[72731.672589] run fstests generic/470 at 2024-05-12 15:43:53
[72733.033526] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x123cb1
[72733.035902] flags: 0x17fffe000000000(node=0|zone=2|lastcpupid=0x3ffff)
[72733.037778] page_type: 0xffffffff()
[72733.039773] raw: 017fffe000000000 ffffcb6e84a68c08 ffffcb6e844fee48 0000000000000000
[72733.043368] ------------[ cut here ]------------
[72733.044868] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[72733.047003] refcount_t: addition on 0; use-after-free.
[72733.047057] WARNING: CPU: 0 PID: 1060882 at lib/refcount.c:25 refcount_warn_saturate (lib/refcount.c:25 (discriminator 1))
[72733.051760] page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0)
Apr 30 10:35:17 debian12-xfs-reflink-4k kernel: Linux version 6.9.0-rc6 (mcgrof@eqbm-smc112) (gcc (Debian 13.2.0-13) 13.2.0, GNU ld (GNU Binutils for Debian) 2.42) #10 SMP PREEMPT_DYNAMIC Tue Apr 30 10:29:57 PDT 2024
Apr 30 10:35:17 debian12-xfs-reflink-4k kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-6.9.0-rc6 root=UUID=ddf91058-656c-4606-806a-8a4a9d31676c ro console=tty0 console=tty1 console=ttyS0,115200n8 "dyndbg=file mm/huge_memory.c +p" console=ttyS0,115200n8
Apr 30 10:35:17 debian12-xfs-reflink-4k kernel: x86/split lock detection: #DB: warning on user-space bus_locks
Apr 30 10:35:17 debian12-xfs-reflink-4k kernel: BIOS-provided physical RAM map:
Apr 30 10:35:17 debian12-xfs-reflink-4k kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
Apr 30 10:35:17 debian12-xfs-reflink-4k kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
Apr 30 10:35:17 debian12-xfs-reflink-4k kernel: BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
Apr 30 10:35:17 debian12-xfs-
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: BUG: kernel NULL pointer dereference, address: 0000000000000036
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: #PF: supervisor read access in kernel mode
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: #PF: error_code(0x0000) - not-present page
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: PGD 0 P4D 0
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: CPU: 7 PID: 2190 Comm: kworker/u38:5 Not tainted 6.9.0-rc5+ #14
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: Workqueue: writeback wb_workfn (flush-7:5)
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: RIP: 0010:filemap_get_folios_tag+0xa9/0x200
Apr 24 02:31:29 min-xfs-reflink-16k-4ks kernel: Code: ad 05 86 00 48 89 c3 48 3d 06 04 00 00 74 e8 48 81 fb 02 04 00 00 0f 84 d0 00 00 00 48 85 db 0f 84 0