** Also affects: stress-ng (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: stress-ng

** Changed in: stress-ng (Ubuntu)
     Assignee: (unassigned) => Colin Ian King (colin-king)

** Changed in: stress-ng (Ubuntu)
   Importance: Undecided => Medium

** Changed in: stress-ng (Ubuntu)
       Status: New => In Progress

** Description changed:

  == SRU Justification ==
  
- [IMPISH][HIRSUTE][FOCAL][BIONIC][XENIAL]
+ [IMPISH][HIRSUTE][FOCAL][BIONIC]
  
  [ The issue ]
  
  Turns out the math is incorrect in calculating the offset into a file on
  direct I/O writes cause non-block aligned offsets that cause -EINVAL on
  writes.  This can occur when running non-power of two number of hdd
  stressors, e.g. 5 stressors.
  
  [ The fix ]
  
  Upstream fix:
  
  From 9bbe45dfbd5db48c658dd0cf1f28cdb847bcee9c Mon Sep 17 00:00:00 2001
  From: Colin Ian King <colin.i.k...@gmail.com>
  Date: Thu, 11 Nov 2021 13:11:27 +0000
  Subject: [PATCH] stress-hdd: ensure offset is aligned to 512 byte boundary
  
  Fix corrects rounds to the 512 byte boundary on offsets.
  
  See: https://github.com/ColinIanKing/stress-ng/issues/158
  
  [ Test plan ]
  
  stress-ng --hdd 5 --hdd-write-size 512 --hdd-bytes 2M --hdd-opts
  direct,sync,wr-rnd,rd-rnd --timeout 0 --verbose
  
  Without the fix the test exits early with a invalid write failure error.
  With the fix the test will run forever.
  
  [ Where problems could occur ]
  
  This fix only affects the hdd stressor test with random I/O writes AND
  direct I/O. The fix aligns the random offset, so in effect the change
  won't affect the overall test behaviour except for fixing the offsets so
  they are always naturally block aligned.  This does mean that the
  stressor will do writes that are no longer spanned over multiple blocks
  (which is a valid test case), so the test case is less effective, but it
  is now at least working for direct I/O cases.

** Also affects: stress-ng (Ubuntu Hirsute)
   Importance: Undecided
       Status: New

** Also affects: stress-ng (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: stress-ng (Ubuntu Jammy)
   Importance: Medium
     Assignee: Colin Ian King (colin-king)
       Status: In Progress

** Also affects: stress-ng (Ubuntu Impish)
   Importance: Undecided
       Status: New

** Also affects: stress-ng (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: stress-ng (Ubuntu Jammy)
       Status: In Progress => Fix Released

** Changed in: stress-ng (Ubuntu Impish)
       Status: New => In Progress

** Changed in: stress-ng (Ubuntu Hirsute)
       Status: New => In Progress

** Changed in: stress-ng (Ubuntu Focal)
       Status: New => In Progress

** Changed in: stress-ng (Ubuntu Bionic)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1951152

Title:
  Direct I/O with the hdd stressor with random I/O and non power of 2
  stressors causes errno -22 EINVAL write errors

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/stress-ng/+bug/1951152/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to