<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:11:13 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-14607] osd xattr cache wasting memory</title>
                <link>https://jira.whamcloud.com/browse/LU-14607</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In some cases we pass a 64K xattr value buffer to &lt;tt&gt;osp_oac_xattr_find_or_add()&lt;/tt&gt; (see below). The turns into a 128K alloc since we allocate a single memory block for oxe, the xattr name, and the xattr value. If oxe used a separate memory block for the xattr value then the allocation would be down to 64K plus change.&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;pr  9 16:21:54 mds-0 kernel: mdt06_014: page allocation failure: order:5, mode:0xc050
Apr  9 16:21:54 mds-0 kernel: CPU: 12 PID: 94381 Comm: mdt06_014 Kdump: loaded Tainted: G           OE  ------------ T 3.10.0-1062.18.1.el7_lustre.ddn12.x86_64 #1
Apr  9 16:21:54 mds-0 kernel: Hardware name:    /0XFK4K, BIOS 2.7.7 05/04/2020
Apr  9 16:21:54 mds-0 kernel: Call Trace:
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff8697b416&amp;gt;] dump_stack+0x19/0x1b
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff863c3fc0&amp;gt;] warn_alloc_failed+0x110/0x180
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff8697698a&amp;gt;] __alloc_pages_slowpath+0x6bb/0x729
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff863c8636&amp;gt;] __alloc_pages_nodemask+0x436/0x450
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff86416c58&amp;gt;] alloc_pages_current+0x98/0x110
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff863e3658&amp;gt;] kmalloc_order+0x18/0x40
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff86422216&amp;gt;] kmalloc_order_trace+0x26/0xa0
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff864261a1&amp;gt;] __kmalloc+0x211/0x230
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1ac43f2&amp;gt;] osp_oac_xattr_find_or_add+0x72/0x270 [osp]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1ac8639&amp;gt;] osp_xattr_get+0xd29/0x1140 [osp]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1ac7f61&amp;gt;] ? osp_xattr_get+0x651/0x1140 [osp]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc17b828a&amp;gt;] ? ldiskfs_xattr_trusted_get+0x2a/0x30 [ldiskfs]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1a47b8e&amp;gt;] lod_xattr_get+0xee/0x700 [lod]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc16f294c&amp;gt;] __mdd_permission_internal+0x71c/0x9a0 [mdd]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc16cc96f&amp;gt;] __mdd_lookup.isra.17+0x19f/0x440 [mdd]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc16cccbf&amp;gt;] mdd_lookup+0xaf/0x170 [mdd]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1970332&amp;gt;] mdt_lookup_version_check+0x72/0x2c0 [mdt]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1971efb&amp;gt;] mdt_reint_rename+0xddb/0x28a0 [mdt]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc12dd826&amp;gt;] ? null_alloc_rs+0x186/0x340 [ptlrpc]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc197a533&amp;gt;] mdt_reint_rec+0x83/0x210 [mdt]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1956483&amp;gt;] mdt_reint_internal+0x6e3/0xaf0 [mdt]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc1961e37&amp;gt;] mdt_reint+0x67/0x140 [mdt]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc130ff9e&amp;gt;] tgt_request_handle+0xaee/0x15f0 [ptlrpc]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc12e70a1&amp;gt;] ? ptlrpc_nrs_req_get_nolock0+0xd1/0x170 [ptlrpc]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc0e73bde&amp;gt;] ? ktime_get_real_seconds+0xe/0x10 [libcfs]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc12b237b&amp;gt;] ptlrpc_server_handle_request+0x24b/0xab0 [ptlrpc]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc12af195&amp;gt;] ? ptlrpc_wait_event+0xa5/0x360 [ptlrpc]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff862d3a33&amp;gt;] ? __wake_up+0x13/0x20
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc12b5ce4&amp;gt;] ptlrpc_main+0xb34/0x1470 [ptlrpc]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffffc12b51b0&amp;gt;] ? ptlrpc_register_service+0xf80/0xf80 [ptlrpc]
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff862c6321&amp;gt;] kthread+0xd1/0xe0
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff862c6250&amp;gt;] ? insert_kthread_work+0x40/0x40
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff8698ed1d&amp;gt;] ret_from_fork_nospec_begin+0x7/0x21
Apr  9 16:21:54 mds-0 kernel: [&amp;lt;ffffffff862c6250&amp;gt;] ? insert_kthread_work+0x40/0x40
Apr  9 16:21:54 mds-0 kernel: Mem-Info:
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="63746">LU-14607</key>
            <summary>osd xattr cache wasting memory</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="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="laisiyao">Lai Siyao</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Apr 2021 18:03:27 +0000</created>
                <updated>Sat, 18 Feb 2023 19:15:30 +0000</updated>
                            <resolved>Wed, 9 Jun 2021 03:56:25 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="298659" author="pjones" created="Tue, 13 Apr 2021 14:33:59 +0000"  >&lt;p&gt;Lai&lt;/p&gt;

&lt;p&gt;Could you please look into this one?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="300927" author="adilger" created="Sat, 8 May 2021 18:19:57 +0000"  >&lt;p&gt;I was looking into this briefly, and it makes sense to split the cache allocation into two parts if &quot;&lt;tt&gt;size &amp;gt; PAGE_SIZE&lt;/tt&gt;&quot;. For the small xattr/common case, having a single allocation is more efficient, but in case of a large xattr just the value part should be allocated with a separate OBD_ALLOC_LARGE().  The data struct already tracks namelen, buflen separately, and has a separate pointer to the value (which can be inline for small xattrs and point to a separate buffer for large xattrs). &lt;/p&gt;</comment>
                            <comment id="301960" author="gerrit" created="Wed, 19 May 2021 03:01:26 +0000"  >&lt;p&gt;Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43736&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43736&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14607&quot; title=&quot;osd xattr cache wasting memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14607&quot;&gt;&lt;del&gt;LU-14607&lt;/del&gt;&lt;/a&gt; osp: separate buffer for XATTR cache&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ba60344d5996e2545f8dedef5981d6a48c16c93b&lt;/p&gt;</comment>
                            <comment id="303896" author="gerrit" created="Tue, 8 Jun 2021 21:59:13 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43736/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43736/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14607&quot; title=&quot;osd xattr cache wasting memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14607&quot;&gt;&lt;del&gt;LU-14607&lt;/del&gt;&lt;/a&gt; osp: separate buffer for large XATTR&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a1c5adf7f466cce5b9abae46704c126b1f11d6da&lt;/p&gt;</comment>
                            <comment id="303940" author="pjones" created="Wed, 9 Jun 2021 03:56:25 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i01rx3:</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>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>