<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:20:47 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-15726] Introduce / use min journal credit for ldiskfs</title>
                <link>https://jira.whamcloud.com/browse/LU-15726</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;lustre/ldiskfs consumes more journal credits than ext4. Try to place nice with jbd2 and increase the requested journal credits as needed.&lt;/p&gt;</description>
                <environment></environment>
        <key id="69591">LU-15726</key>
            <summary>Introduce / use min journal credit for ldiskfs</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="stancheff">Shaun Tancheff</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Apr 2022 01:17:36 +0000</created>
                <updated>Sun, 21 Jan 2024 09:15:48 +0000</updated>
                            <resolved>Sun, 21 Jan 2024 09:15:48 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="331267" author="gerrit" created="Thu, 7 Apr 2022 01:21:38 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47009&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47009&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15726&quot; title=&quot;Introduce / use min journal credit for ldiskfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15726&quot;&gt;&lt;del&gt;LU-15726&lt;/del&gt;&lt;/a&gt; ldiskfs: Introduce and use min journal credits&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0bcea9046aec1bdf022621395ca7693c50132cac&lt;/p&gt;</comment>
                            <comment id="331370" author="stancheff" created="Fri, 8 Apr 2022 01:03:30 +0000"  >&lt;p&gt;Not an improvement&lt;/p&gt;</comment>
                            <comment id="333858" author="simmonsja" created="Thu, 5 May 2022 12:42:44 +0000"  >&lt;p&gt;Starting with 5.10 kernels the way xattr credits is handled has changed so that the ext4-xattr-disable-credits-check.patch is not good enough to work around this issue. We need a real solution to this problem so I&apos;m reopening this ticket.&lt;/p&gt;</comment>
                            <comment id="373912" author="xinliang" created="Wed, 31 May 2023 02:03:45 +0000"  >&lt;p&gt;I tried the latest b2_15 branch(2.15.3-RC1) on 5.10 kernel, it seems that without patch &lt;a href=&quot;https://review.whamcloud.com/47009&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47009&lt;/a&gt; it can&apos;t mount client(all-in-one) or start MDS (muli-node). So branch b2_15 must lack of a patch or some patches from branch master for fixing this credit related issue. Which ones?&lt;/p&gt;

&lt;p&gt;And here the warning log from the kernel:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
[ 8189.170458] ------------[ cut here ]------------
[ 8189.170504] WARNING: CPU: 0 PID: 115468 at /tmp/rpmbuild-lustre-openeuler-AL963B8M/BUILD/lustre-2.15.3_RC1_5_g4aaae55_dirty/ldiskfs/ext4_jbd2.c:336 __ldiskfs_handle_dirty_metadata+0x18c/0x2e0 [ldiskfs]
[ 8189.170506] Modules linked in: ofd(OE) ost(OE) osp(OE) mdd(OE) lod(OE) mdt(OE) lfsck(OE) mgs(OE) osd_ldiskfs(OE) lquota(OE) loop ldiskfs(OE) lustre(OE) obdecho(OE) mgc(OE) mdc(OE) lov(OE) osc(OE) lmv(OE) fid(OE) fld(OE) ptlrpc_gss(OE) ptlrpc(OE) obdclass(OE) kso
cklnd(OE) lnet(OE) libcfs(OE) dm_flakey dm_mod crc32_generic rfkill sunrpc virtio_balloon vfat fat sch_fq_codel fuse ext4 mbcache jbd2 virtio_gpu virtio_net virtio_dma_buf net_failover virtio_blk failover ghash_ce sha2_ce sha256_arm64 sha1_ce virtio_pci virtio_pci_
modern_dev virtio_mmio virtio_rng virtio virtio_ring aes_neon_bs aes_neon_blk aes_ce_blk crypto_simd cryptd aes_ce_cipher [last unloaded: libcfs]
[ 8189.170583] CPU: 0 PID: 115468 Comm: mdt00_001 Kdump: loaded Tainted: G &#160; &#160; &#160; &#160;W &#160;OE &#160; &#160; 5.10.0-152.0.0.78.oe2203sp2.aarch64 #1
[ 8189.170585] Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015
[ 8189.170588] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 8189.170610] pc : __ldiskfs_handle_dirty_metadata+0x18c/0x2e0 [ldiskfs]
[ 8189.170631] lr : __ldiskfs_handle_dirty_metadata+0x9c/0x2e0 [ldiskfs]
[ 8189.170632] sp : ffff8000109e36a0
[ 8189.170634] x29: ffff8000109e36c0 x28: 0000000000000000
[ 8189.170638] x27: 0000000000000002 x26: 0000000000000001
[ 8189.170641] x25: 0000000000000001 x24: ffff0bf31c309af8
[ 8189.170645] x23: 0000000000000372 x22: ffffde4408547508
[ 8189.170648] x21: 00000000ffffffe4 x20: ffff0bf318c45a10
[ 8189.170651] x19: ffff0bf31c1ff1a0 x18: 0000000000000020
[ 8189.170654] x17: 0000000000000000 x16: ffffde4435035f10
[ 8189.170658] x15: ffffffffffffffff x14: 0000000000000000
[ 8189.170661] x13: 0000000000191000 x12: 0000000000000000
[ 8189.170665] x11: 0000000000000000 x10: 00000000ffffffff
[ 8189.170668] x9 : ffffde44084c254c x8 : ffff0bf34f812000
[ 8189.170671] x7 : 0000000000000000 x6 : 0000000000000000
[ 8189.170674] x5 : 61c8864680b583eb x4 : 0000000000116011
[ 8189.170678] x3 : ffff0bf31f327800 x2 : 0000000000000001
[ 8189.170681] x1 : 00000000007be000 x0 : 0000000000000030
[ 8189.170685] Call trace:
[ 8189.170706] &#160;__ldiskfs_handle_dirty_metadata+0x18c/0x2e0 [ldiskfs]
[ 8189.170727] &#160;ldiskfs_getblk+0x150/0x210 [ldiskfs]
[ 8189.170748] &#160;ldiskfs_bread+0x1c/0xd4 [ldiskfs]
[ 8189.170765] &#160;osd_ldiskfs_write_record+0x4a4/0x8fc [osd_ldiskfs]
[ 8189.170779] &#160;osd_write+0x104/0x6e4 [osd_ldiskfs]
[ 8189.170842] &#160;dt_record_write+0x38/0xf0 [obdclass]
[ 8189.170943] &#160;tgt_client_data_write+0x12c/0x180 [ptlrpc]
[ 8189.171012] &#160;tgt_client_data_update+0x4fc/0x86c [ptlrpc]
[ 8189.171079] &#160;tgt_client_new+0x610/0xcb0 [ptlrpc]
[ 8189.171117] &#160;mdt_obd_connect+0x5b0/0x940 [mdt]
[ 8189.171370] &#160;target_handle_connect+0x10e4/0x3b00 [ptlrpc]
[ 8189.171465] &#160;tgt_request_handle+0x174/0xd9c [ptlrpc]
[ 8189.171545] &#160;ptlrpc_server_handle_request.isra.0+0x3d4/0x11fc [ptlrpc]
[ 8189.171613] &#160;ptlrpc_main+0xdb0/0x1670 [ptlrpc]
[ 8189.171620] &#160;kthread+0x108/0x13c
[ 8189.171624] &#160;ret_from_fork+0x10/0x18
[ 8189.171626] ---[ end trace ce1929bc2ec68092 ]---
[ 8189.171631] LDISKFS-fs: ldiskfs_getblk:882: aborting transaction: error 28 in __ldiskfs_handle_dirty_metadata
[ 8189.174222] LDISKFS-fs error (device dm-0): ldiskfs_getblk:882: inode #91: block 31655: comm mdt00_001: journal_dirty_metadata failed: handle type 0 started at line 1982, credits 7/0, errcode -28
[ 8189.178341] Aborting journal on device dm-0-8.
[ 8189.179762] LDISKFS-fs (dm-0): Remounting filesystem read-only
[ 8189.181278] LustreError: 115468:0:(osd_io.c:2123:osd_ldiskfs_write_record()) lustre-MDT0000: error reading offset 8192 (block 2, size 128, offs 8192), credits 7/1: rc = -28
[ 8189.184623] LDISKFS-fs error (device dm-0) in osd_trans_stop:2092: error 28
[ 8189.184635] LustreError: 115449:0:(osd_handler.c:1790:osd_trans_commit_cb()) transaction @0x00000000ce92c156 commit error: 2
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="380321" author="xinliang" created="Thu, 27 Jul 2023 08:35:49 +0000"  >&lt;p&gt;After a long bisect on branch master, find out that&#160; branch b2_15 with commit&#160;&lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/37232&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ef90a02d12&lt;/a&gt;&#160; can run on kernel 5.10 with no crash.&lt;/p&gt;

&lt;p&gt;But don&apos;t know why? Does this issue still exist in 5.10+ kernel for non root-owned files? Does anyone have any ideas on this? @&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=bzzz&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Alex Zhuravlev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anyway, just cherry-picked it to branch b2_15 and make a note it is related to this issue: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51776&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51776&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="400443" author="simmonsja" created="Sat, 20 Jan 2024 14:17:12 +0000"  >&lt;p&gt;I noticed the same thing for Ubuntu 5.15 kernels. Patch 51776 fixes this issue. Shaun can you close this ticket.&lt;/p&gt;</comment>
                            <comment id="400455" author="stancheff" created="Sun, 21 Jan 2024 09:15:48 +0000"  >&lt;p&gt;Resolved with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13135&quot; title=&quot;quick checks in OSDs to ignore quota for root-owned files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13135&quot;&gt;&lt;del&gt;LU-13135&lt;/del&gt;&lt;/a&gt; &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="57800">LU-13135</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="61899">LU-14195</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i02mmf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>