| Summary: | [ext4/xfstests 204] fails of ENOSPC blocking tests on small filesystem | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Eryu Guan <eguan> |
| Component: | kernel | Assignee: | Eric Sandeen <esandeen> |
| Status: | CLOSED WONTFIX | QA Contact: | Filesystem QE <fs-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.8 | CC: | branto, ccui, dchinner, eguan, esandeen, lczerner, rwheeler |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 660638 | Environment: | |
| Last Closed: | 2014-06-02 13:05:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 660638 | ||
| Bug Blocks: | |||
|
Description
Eryu Guan
2011-07-13 04:13:08 UTC
Do you have any links to the ext4 test failures? Thanks, -Eric Ok, I can occasionally hit this:
+./204: line 53: echo: write error: No space left on device
+./204: line 53: echo: write error: No space left on device
*** done
Ran: 204
Failures: 204
Failed 1 of 1 tests
The fs is full:
File: "/mnt/scratch"
ID: 3289da11f01b3f29 Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 25788 Free: 0 Available: 0
Inodes: Total: 26624 Free: 4113
but after a bit it's got a little space again:
File: "/mnt/scratch/"
ID: 3289da11f01b3f29 Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 25788 Free: 2130 Available: 799
Inodes: Total: 26624 Free: 4113
so we're not doing as much flushing as we need to at ENOSPC time I guess. We did get pretty close to full, but not all the way there.
When the test completes normally, it ends with:
File: "/mnt/scratch/"
ID: 5e6c61cb40b13e Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 25788 Free: 753 Available: 0
Inodes: Total: 26624 Free: 4113
and a bit later, it has freed still more:
File: "/mnt/scratch/"
ID: 5e6c61cb40b13e Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 25788 Free: 2107 Available: 776
Inodes: Total: 26624 Free: 4113
I don't think this is terribly critical; running full is ill-advised, and transient ENOSPC is somewhat acceptable, but it's probably worth looking into a bit.
ext4 makes an attempt to sync data as it nears ENOSPC to clear out any speculative allocation. In rhel6 & upstream we have:
if (free_blocks < 2 * dirty_blocks)
writeback_inodes_sb_if_idle(sb);
but in rhel5 we have:
if (free_blocks < 4 * dirty_blocks) {
struct backing_dev_info *bdi;
/* writeback_inodes_sb_if_idle() upstream */
bdi = &bdev_get_queue(sb->s_bdev)->backing_dev_info;
if (!writeback_in_progress(bdi))
sync_inodes_sb(sb, 0);
because we don't have that upstream infrastructure, I guess it's not working quite the same, because I can't make this test fail on RHEL6.
(In reply to comment #3) > because we don't have that upstream infrastructure, I guess it's not working > quite the same, because I can't make this test fail on RHEL6. RHEL6 has this problem too, but it's harder to hit. I'll file a new bug to track the RHEL6 issue when I hit this failure next time on RHEL6. (In reply to comment #4) > RHEL6 has this problem too, but it's harder to hit. > I'll file a new bug to track the RHEL6 issue when I hit this failure next time > on RHEL6. I hit it again today on RHEL6.1, please see Bug 725201 This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.8 and Red Hat does not plan to fix this issue the currently developed update. Contact your manager or support representative in case you need to escalate this bug. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug. Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support). |