<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:06:07 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-14016] libcfs: use atomic64_t for libcfs_kmemory</title>
                <link>https://jira.whamcloud.com/browse/LU-14016</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If LNet uses more than ~2.14 GB of memory, then lnet_memused will display negative numbers.&lt;/p&gt;</description>
                <environment></environment>
        <key id="61113">LU-14016</key>
            <summary>libcfs: use atomic64_t for libcfs_kmemory</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="ashehata">Amir Shehata</assignee>
                                    <reporter username="ashehata">Amir Shehata</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Oct 2020 18:23:43 +0000</created>
                <updated>Thu, 29 Oct 2020 11:55:53 +0000</updated>
                            <resolved>Thu, 29 Oct 2020 11:55:53 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="281699" author="gerrit" created="Wed, 7 Oct 2020 21:16:36 +0000"  >&lt;p&gt;Amir Shehata (ashehata@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40168&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40168&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14016&quot; title=&quot;libcfs: use atomic64_t for libcfs_kmemory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14016&quot;&gt;&lt;del&gt;LU-14016&lt;/del&gt;&lt;/a&gt; libcfs: use atomic64_t for libcfs_kmemory&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 138267a313d645d3bab22f3e0045c586af85b813&lt;/p&gt;</comment>
                            <comment id="281703" author="adilger" created="Wed, 7 Oct 2020 22:24:01 +0000"  >&lt;p&gt;It would probably be good (in a follow-on patch) to change &lt;tt&gt;libcfs_kmem&lt;/tt&gt; (and &lt;tt&gt;obd_memory&lt;/tt&gt;) to be &lt;tt&gt;struct percpu_counter&lt;/tt&gt; instead of &lt;tt&gt;atomic64_t&lt;/tt&gt; to avoid the overhead of atomic updates for every allocation, since we don&apos;t really depend on the &lt;b&gt;current&lt;/b&gt; value of this variable for anything, only the eventual global consistency.&lt;/p&gt;

&lt;p&gt;That would mostly be a matter of changing &lt;tt&gt;libcfs_kmem_read()&lt;/tt&gt; to use &lt;tt&gt;percpu_counter_sum()&lt;/tt&gt; (it is only used at module startup/shutdown so accuracy is more important than performance), &lt;tt&gt;libcfs_kmem_inc/dec()&lt;/tt&gt; to use &lt;tt&gt;percpu_counter_add_batch()&lt;/tt&gt; (with a batch=1M or so, since we don&apos;t need frequent updates, only enough for &lt;tt&gt;fcb-&amp;gt;count&lt;/tt&gt; to be updated for &lt;tt&gt;lnet_memused&lt;/tt&gt; to be relatively accurate), and adding &lt;tt&gt;percpu_counter_init(&amp;amp;libcfs_kmem)&lt;/tt&gt; at the start of &lt;tt&gt;libcfs_init()&lt;/tt&gt; and &lt;tt&gt;percpu_counter_destroy(&amp;amp;libcfs_kmem)&lt;/tt&gt; after its last usage in &lt;tt&gt;libcfs_exit()&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="283562" author="gerrit" created="Thu, 29 Oct 2020 04:30:38 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40168/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40168/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14016&quot; title=&quot;libcfs: use atomic64_t for libcfs_kmemory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14016&quot;&gt;&lt;del&gt;LU-14016&lt;/del&gt;&lt;/a&gt; libcfs: use atomic64_t for libcfs_kmem&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9397f8cf866ad363bc3908b248f41adfa5bd8f1c&lt;/p&gt;</comment>
                            <comment id="283605" author="pjones" created="Thu, 29 Oct 2020 11:55:53 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|i01brz:</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>