Re: [PATCH] tests/throtl: add a new test 006

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

在 2025/03/04 18:02, Ming Lei 写道:
But the issue still can't be reproduced by adding the following delta
change, meantime revert 29390bb5661d ("blk-throttle: support prioritized
processing of metadata") on kernel side.

Because you're issuing 64 64k IO, and dd is issuing next IO after the
previous IO is done.

Following diff will work for this test:

Thanks,
Kuai

diff --git a/tests/throtl/006 b/tests/throtl/006
index 4baadaf..758293b 100755
--- a/tests/throtl/006
+++ b/tests/throtl/006
@@ -43,8 +43,13 @@ test() {

        _throtl_set_limits wbps=$((1024 * 1024))
        {
+               local jbd2_pid
+
+ jbd2_pid=$(ps -eo pid,comm |grep "jbd2/${THROTL_DEV}" |awk '{print $1}')
                echo "$BASHPID" > "$CGROUP2_DIR/$THROTL_DIR/cgroup.procs"
-               _throtl_issue_fs_io  "${TMPDIR}/mnt/test.img" write 64K 64 &
+               echo "$jbd2_pid" > "$CGROUP2_DIR/$THROTL_DIR/cgroup.procs"
+
+               _throtl_issue_fs_io  "${TMPDIR}/mnt/test.img" write 4M 1 &
                sleep 2
                test_meta_io "${TMPDIR}/mnt"
                wait





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux