<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:47:53 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-11897] ineffective memory allocation in ptlrpc</title>
                <link>https://jira.whamcloud.com/browse/LU-11897</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;For a few ptlrpc services, rqbd buffers are allocated using non-2^n allocation requests. This leads to ineffective memory usage and in some cases even to OOM.&lt;/p&gt;

&lt;p&gt;A patch will be uploaded shortly.&lt;/p&gt;</description>
                <environment></environment>
        <key id="54690">LU-11897</key>
            <summary>ineffective memory allocation in ptlrpc</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="panda">Andrew Perepechko</assignee>
                                    <reporter username="panda">Andrew Perepechko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 29 Jan 2019 09:04:23 +0000</created>
                <updated>Tue, 19 Feb 2019 06:02:49 +0000</updated>
                            <resolved>Tue, 19 Feb 2019 06:02:49 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="240848" author="gerrit" created="Tue, 29 Jan 2019 09:06:41 +0000"  >&lt;p&gt;Andrew Perepechko (c17827@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34127&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34127&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11897&quot; title=&quot;ineffective memory allocation in ptlrpc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11897&quot;&gt;&lt;del&gt;LU-11897&lt;/del&gt;&lt;/a&gt; ost: improve memory allocation for ost&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c3c7734466d1b0b6ca248037e8eb4546371739f4&lt;/p&gt;</comment>
                            <comment id="240850" author="panda" created="Tue, 29 Jan 2019 09:14:21 +0000"  >&lt;p&gt;How this bug led to an OOM event:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;12:19 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: we have a 470k (+/-) rqbd buffers with 16k-32k size which hold just 660k rpc with 383 byte size.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:20 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: hm.. it looks we have a trivial bug in ptlrpc code&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:20 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: #define OST_MAXREQSIZE&#8194;&#8194;&#8194;&#8194;&#8194;&#8194;&#8194;&#8194;&#8194;&#8194;(16 * 1024)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:20 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: but Panda say&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:21 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: ```srv_max_req_size = 17408,```&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:21 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: so MM uses a 32k allocation for 17k buffer&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:21 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: and 15k is useless..&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:21 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: and overhead..&lt;br/&gt;
...&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:42 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: next catch is near of it - one more &quot;17k&quot; &quot;leak&quot;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:42 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: srv_buf_size = 17408,&#8194;&#8194;/&#8194;&#8194; srv_max_req_size = 17408,&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;12:43 PM&amp;#93;&lt;/span&gt; Alexey Lyashkov: so 17k buffer will be unlinked after 328 bytes arrived.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="240851" author="panda" created="Tue, 29 Jan 2019 09:25:02 +0000"  >&lt;p&gt;While originally a whole 17 KiB (in fact, 32 KiB due to rounding) was used for a single 328 byte RPC, with the patch it is possible to put additional (32768-17408)/328-1=45 RPCs in the same buffer, no additional memory required.&lt;/p&gt;</comment>
                            <comment id="242157" author="gerrit" created="Mon, 18 Feb 2019 06:37:43 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34127/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34127/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11897&quot; title=&quot;ineffective memory allocation in ptlrpc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11897&quot;&gt;&lt;del&gt;LU-11897&lt;/del&gt;&lt;/a&gt; ost: improve memory allocation for ost&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3a90458bd84d43cc75c5a80f8c02f30d6412690a&lt;/p&gt;</comment>
                            <comment id="242215" author="pjones" created="Tue, 19 Feb 2019 06:02:49 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                    </comments>
                    <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|i00ag7:</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>