<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:19:52 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-15619] Reduce size of cl_page and associated structures</title>
                <link>https://jira.whamcloud.com/browse/LU-15619</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;cl_page and its associated structures are allocated for every page, but can be shrunk down by removing unnecessary structure members.&lt;/p&gt;</description>
                <environment></environment>
        <key id="68972">LU-15619</key>
            <summary>Reduce size of cl_page and associated structures</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="paf0186">Patrick Farrell</assignee>
                                    <reporter username="paf0186">Patrick Farrell</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Mar 2022 21:47:57 +0000</created>
                <updated>Wed, 6 Sep 2023 13:11:29 +0000</updated>
                            <resolved>Wed, 6 Sep 2023 13:11:29 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="328157" author="gerrit" created="Fri, 4 Mar 2022 21:50:10 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46712&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46712&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Remove submit time&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 019e37365401a034f41cbbdfb89c7a2930ee2890&lt;/p&gt;</comment>
                            <comment id="328158" author="gerrit" created="Fri, 4 Mar 2022 21:50:10 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46713&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46713&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Remove oap_magic&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c90ea3a92d8ca414768d3e9b5150405cc4a3592c&lt;/p&gt;</comment>
                            <comment id="328159" author="gerrit" created="Fri, 4 Mar 2022 21:50:11 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46714&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46714&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Remove oap_cli&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1a257e6e328efe03e3cb323ba43910653baa4a93&lt;/p&gt;</comment>
                            <comment id="328160" author="gerrit" created="Fri, 4 Mar 2022 21:50:12 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46715&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46715&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Rename brw_page members&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1b4fef9bd1827e85229a38cce03c8c3dcc671eeb&lt;/p&gt;</comment>
                            <comment id="328161" author="gerrit" created="Fri, 4 Mar 2022 21:50:12 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46716&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46716&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Remove oap_obj pointer&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b0e91948b8add615607f938bfe2ffcc236fe6c8f&lt;/p&gt;</comment>
                            <comment id="328162" author="gerrit" created="Fri, 4 Mar 2022 21:50:13 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46717&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46717&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; clio: Remove vpg_page pointer&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e3d4b9e79deb4f20bd941da9c11c94c1dbf3b89a&lt;/p&gt;</comment>
                            <comment id="328163" author="gerrit" created="Fri, 4 Mar 2022 21:50:14 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46718&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46718&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; lov: Remove lov_page slice&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2b879f4b930259bb2145b22c26155eb359c2aab8&lt;/p&gt;</comment>
                            <comment id="328165" author="gerrit" created="Fri, 4 Mar 2022 22:10:20 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46719&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46719&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Remove oap lock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f6ed526c415de316b7399bc8a5a8d7aebb9adfdb&lt;/p&gt;</comment>
                            <comment id="328168" author="gerrit" created="Fri, 4 Mar 2022 22:17:19 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46721&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46721&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Pack osc_async_page better&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 566fd06ae372ed1143f6626f1f71e5d44589ceb0&lt;/p&gt;</comment>
                            <comment id="344871" author="adilger" created="Fri, 26 Aug 2022 20:08:49 +0000"  >&lt;p&gt;I was looking at whether &lt;tt&gt;osc_oap_page.oap_cmd&lt;/tt&gt; could be made smaller, but I see it is already 18 bits &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/warning.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; in size:&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;
 #define OBD_BRW_OVER_PRJQUOTA 0x8000 &lt;span class=&quot;code-comment&quot;&gt;/* Running out of project quota */&lt;/span&gt;
 #define OBD_BRW_RDMA_ONLY    0x20000 &lt;span class=&quot;code-comment&quot;&gt;/* RPC contains RDMA-only pages*/&lt;/span&gt;
 #define OBD_BRW_SYS_RESOURCE 0x40000 &lt;span class=&quot;code-comment&quot;&gt;/* page has CAP_SYS_RESOURCE */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Both &lt;tt&gt;osc_queue_async_io()&lt;/tt&gt; and &lt;tt&gt;osc_page_submit()&lt;/tt&gt; explicitly (try to) store &lt;tt&gt;OBD_BRW_SYS_RESOURCE&lt;/tt&gt; in &lt;tt&gt;oap_cmd&lt;/tt&gt; (also in &lt;tt&gt;oap_brw_flags&lt;/tt&gt; aka &lt;tt&gt;oap_brw_page.flag&lt;/tt&gt;), but not much else goes in there (&lt;tt&gt;OBD_BRW_WRITE&lt;/tt&gt;, &lt;tt&gt;OBD_BRW_NOQUOTA&lt;/tt&gt;).&lt;/p&gt;

&lt;p&gt;It doesn&apos;t &lt;b&gt;look&lt;/b&gt; like &lt;tt&gt;oap_cmd&lt;/tt&gt; is used for anything other than checking &lt;tt&gt;OBD_BRW_WRITE&lt;/tt&gt;, so this could become a single bitfield, or added to &lt;tt&gt;oap_async_flags&lt;/tt&gt;?&lt;/p&gt;

&lt;p&gt;Note that modern GCC allows you to use:&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;
        &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; async_flags    oap_async_flags:4;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;to reduce the size, while keeping the consistency checks, though I don&apos;t think it makes a difference right now.  &lt;/p&gt;

&lt;p&gt;Shrinking &lt;tt&gt;oap_page_off&lt;/tt&gt; to &lt;tt&gt;PAGE_SIZE_BITS&lt;/tt&gt; won&apos;t help by itself either, but gets this down to 12 bits (16 on PPC64/ARM64, since the offset is zero-based it never needs the full range). It probably wants to live on a 2-byte boundary so that it doesn&apos;t need to be shifted for each use, unlike the flags.&lt;/p&gt;

&lt;p&gt;I also noticed that &lt;tt&gt;brw_page&lt;/tt&gt; has a &lt;tt&gt;__u32&lt;/tt&gt; padding at the end, which (by itself) doesn&apos;t help, but together with the above changes that would save another 8 bytes from &lt;tt&gt;osc_oap_page&lt;/tt&gt;?&lt;/p&gt;</comment>
                            <comment id="348691" author="gerrit" created="Tue, 4 Oct 2022 19:35:01 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/46713/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/46713/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Remove oap_magic&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 721df28648c4b3faabce709abce7d55512edbeac&lt;/p&gt;</comment>
                            <comment id="351463" author="gerrit" created="Wed, 2 Nov 2022 07:10:08 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/46719/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/46719/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Remove oap lock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b2274a716087fad24490f56026775886c26f74b8&lt;/p&gt;</comment>
                            <comment id="353791" author="gerrit" created="Tue, 22 Nov 2022 04:26:22 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/46721/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/46721/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: pack osc_async_page better&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0bfc8eca5c3d26235846bab347d7e53b8ab0576a&lt;/p&gt;</comment>
                            <comment id="384893" author="gerrit" created="Wed, 6 Sep 2023 06:16:37 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/46715/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/46715/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15619&quot; title=&quot;Reduce size of cl_page and associated structures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15619&quot;&gt;&lt;del&gt;LU-15619&lt;/del&gt;&lt;/a&gt; osc: Rename brw_page members&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f2d875daf385ae6bb98045d16d9552a486a89263&lt;/p&gt;</comment>
                            <comment id="384970" author="pjones" created="Wed, 6 Sep 2023 13:11:29 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="52100">LU-10994</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i02k0v:</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>