Skip to contentSkip to conversation

generic/095: add to the quick group

PATCH In review Christoph Hellwig 3 participants 5 messages Apr 27, 2024 – Apr 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/095: add to the quick group

generic/095 doesn't take more than 4 seconds on any of my test setups, but is exercises code that handles buffered write iterations interrupted by concurrent direct I/O that no other test in the quick group does.

---
 tests/generic/095 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/095 +1 -1
index 80448200b..9d0446e98 100755
@@ -7,7 +7,7 @@
 # Concurrent mixed I/O (buffer I/O, aiodio, mmap, splice) on the same files
 #
 . ./common/preamble
-_begin_fstest auto rw stress
+_begin_fstest auto quick rw stress
 
 # Import common functions.
 . ./common/filter
Signature · 1 line
2.39.2
#1 lore raw
Quoted 1 line · Christoph Hellwig

generic/095 doesn't take more than 4 seconds on any of my test setups,

Yeah, it generally takes ~5 seconds. But there's a "LOAD_FACTOR", so before we add it into quick group, I'd like to ask
do you think if it's worth increasing the default LOAD_FACTOR a bit to give it more stress, or move it to quick group directly?

Quoted 25 lines

but is exercises code that handles buffered write iterations interrupted by concurrent direct I/O that no other test in the quick group does.

---
 tests/generic/095 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/095 +1 -1
index 80448200b..9d0446e98 100755
@@ -7,7 +7,7 @@
 # Concurrent mixed I/O (buffer I/O, aiodio, mmap, splice) on the same files
 #
 . ./common/preamble
-_begin_fstest auto rw stress
+_begin_fstest auto quick rw stress
 
 # Import common functions.
 . ./common/filter
Signature · 1 line
2.39.2
#2 lore raw
Quoted 7 lines · Zorro Lang
Quoted 1 line · Christoph Hellwig

generic/095 doesn't take more than 4 seconds on any of my test setups,

Yeah, it generally takes ~5 seconds. But there's a "LOAD_FACTOR", so before we add it into quick group, I'd like to ask
do you think if it's worth increasing the default LOAD_FACTOR a bit to give it more stress, or move it to quick group directly?

I'm fine with it as-is. Despite being in the stress group, this test actually provides code coverage not provided by other quick tests even in the most basic version.

#3 lore raw
In reply to Zorro Lang
Quoted 4 lines · Zorro Lang
Quoted 1 line · Christoph Hellwig

generic/095 doesn't take more than 4 seconds on any of my test setups,

Yeah, it generally takes ~5 seconds. But there's a "LOAD_FACTOR", so

On what kind of storage hardware? If it's that fast even on spinning rust then I guess you could double the iodepth*/numjobs computations.

(What happens if numjobs exceeds the 9 defined in the fio config file?)

Quoted 3 lines

before we add it into quick group, I'd like to ask
do you think if it's worth increasing the default LOAD_FACTOR a bit to give it more stress, or move it to quick group directly?

I'd move it to the quick group.

--D

Quoted 27 lines
Quoted 25 lines

but is exercises code that handles buffered write iterations interrupted by concurrent direct I/O that no other test in the quick group does.

---
 tests/generic/095 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/095 +1 -1
index 80448200b..9d0446e98 100755
@@ -7,7 +7,7 @@
 # Concurrent mixed I/O (buffer I/O, aiodio, mmap, splice) on the same files
 #
 . ./common/preamble
-_begin_fstest auto rw stress
+_begin_fstest auto quick rw stress
 
 # Import common functions.
 . ./common/filter
Signature · 1 line
2.39.2
Reviewed-by
#4 lore raw
Quoted 8 lines · Darrick J. Wong
Quoted 4 lines · Zorro Lang
Quoted 1 line · Christoph Hellwig

generic/095 doesn't take more than 4 seconds on any of my test setups,

Yeah, it generally takes ~5 seconds. But there's a "LOAD_FACTOR", so

On what kind of storage hardware? If it's that fast even on spinning rust then I guess you could double the iodepth*/numjobs computations.

On most of our testing machines, even very old (10+ years ago) with general HP scsi disk, nothing special.

# lshw -class disk
  *-disk                    
       description: SCSI Disk
       product: LOGICAL VOLUME
       vendor: HP
       physical id: 1.0.0
       bus info: scsi@2:1.0.0
       logical name: /dev/sda
       version: 6.00
       serial: xxxxxxxxxxxxxxx
       size: 931GiB (1TB)
       capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt
# ./check generic/095
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 hp-xxxx-xxx 6.9.0-0.rc5.20240425gite88c4cfcb7b8.47.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 25 14:21:52 UTC 2024
MKFS_OPTIONS  -- -f /dev/sda4
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/sda4 /mnt/scratch

generic/095 2s ... 2s
Ran: generic/095
Passed all 1 tests

Quoted 2 lines

(What happens if numjobs exceeds the 9 defined in the fio config file?)

# export LOAD_FACTOR=3; ./check generic/095
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 hp-dl380pg8-01 6.9.0-0.rc5.20240425gite88c4cfcb7b8.47.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 25 14:21:52 UTC 2024
MKFS_OPTIONS  -- -f /dev/sda4
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/sda4 /mnt/scratch

generic/095 3s ... 3s
Ran: generic/095
Passed all 1 tests

# export LOAD_FACTOR=4; ./check generic/095
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 hp-dl380pg8-01 6.9.0-0.rc5.20240425gite88c4cfcb7b8.47.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 25 14:21:52 UTC 2024
MKFS_OPTIONS  -- -f /dev/sda4
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/sda4 /mnt/scratch

generic/095 3s ... - output mismatch (see /root/git/xfstests/results//generic/095.out.bad)
--- tests/generic/095.out 2024-03-02 20:15:52.580273536 +0800
+++ /root/git/xfstests/results//generic/095.out.bad 2024-04-30 02:46:27.874906090 +0800
@@ -1,2 +1,6 @@
QA output created by 095
+fio: first I/O failed. If /mnt/scratch/file1 is a zoned block device, consider --zonemode=zbd
+fio: first I/O failed. If /mnt/scratch/file1 is a zoned block device, consider --zonemode=zbd
+fio: first I/O failed. If /mnt/scratch/file1 is a zoned block device, consider --zonemode=zbd
+fio: first I/O failed. If /mnt/scratch/file1 is a zoned block device, consider --zonemode=zbd
Silence is golden
...
(Run 'diff -u /root/git/xfstests/tests/generic/095.out /root/git/xfstests/results//generic/095.out.bad' to see the entire diff)
Ran: generic/095
Failures: generic/095
Failed 1 of 1 tests

This failure looks like: https://lore.kernel.org/fstests/[email protected]/

# rpm -q fio
fio-3.37-1.fc41.x86_64
Quoted 6 lines
Quoted 4 lines

before we add it into quick group, I'd like to ask
do you think if it's worth increasing the default LOAD_FACTOR a bit to give it more stress, or move it to quick group directly?

I'd move it to the quick group.

OK, Christoph likes that too, let's move it to quick.

Thanks,
Zorro

Quoted 31 lines

--D

Quoted 27 lines
Quoted 25 lines

but is exercises code that handles buffered write iterations interrupted by concurrent direct I/O that no other test in the quick group does.

---
 tests/generic/095 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/095 +1 -1
index 80448200b..9d0446e98 100755
@@ -7,7 +7,7 @@
 # Concurrent mixed I/O (buffer I/O, aiodio, mmap, splice) on the same files
 #
 . ./common/preamble
-_begin_fstest auto rw stress
+_begin_fstest auto quick rw stress
 
 # Import common functions.
 . ./common/filter
Signature · 1 line
2.39.2