<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:48: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-5051] HSM recv buffer reallocated unnecessarily</title>
                <link>https://jira.whamcloud.com/browse/LU-5051</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Currently, the 1 MB buffer used by llapi_hsm_copytool_recv is allocated and freed every time through the ct_run loop.  &lt;/p&gt;

&lt;p&gt;This is unnecessary, as long as the copy tool clears the the data before calling llapi_hsm_copytool_recv, which lhsmtool_posix already does.&lt;/p&gt;

&lt;p&gt;This patch allocates the buffer once in llapi_hsm_copytool_register and frees it in unregister.&lt;/p&gt;

&lt;p&gt;Patch will be available in Gerrit shortly.&lt;/p&gt;</description>
                <environment></environment>
        <key id="24687">LU-5051</key>
            <summary>HSM recv buffer reallocated unnecessarily</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="cliffw">Cliff White</assignee>
                                    <reporter username="paf">Patrick Farrell</reporter>
                        <labels>
                            <label>hsm</label>
                            <label>patch</label>
                    </labels>
                <created>Mon, 12 May 2014 19:54:12 +0000</created>
                <updated>Wed, 8 Oct 2014 18:27:24 +0000</updated>
                            <resolved>Fri, 30 May 2014 13:29:16 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="83920" author="rread" created="Mon, 12 May 2014 20:12:12 +0000"  >
&lt;p&gt;Would it make sense fir  llapi_hsm_copytool_recv() to reinitialize the buffer memset(0) each time rather than relying on the application to do this?&lt;/p&gt;</comment>
                            <comment id="83927" author="paf" created="Mon, 12 May 2014 20:33:56 +0000"  >&lt;p&gt;Good point, I can update the patch to do that.  Before I do that, would you weigh in on my comment in the patch:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt; In llapi_hsm_copytool_recv, now that we no longer free the buffer at the end of this function, should we rename &quot;out_free&quot; to &quot;out_err&quot;?&lt;/p&gt;

&lt;p&gt;I&apos;m probably going to make that change unless anyone disagrees.&lt;/p&gt;</comment>
                            <comment id="83994" author="fzago" created="Tue, 13 May 2014 15:22:56 +0000"  >&lt;p&gt;The existing code is not memset&apos;ing the buffer (using malloc, not calloc), and it belongs to the application, so there&apos;s no leak involved. Since it&apos;s also a very large buffer, I don&apos;t think we should add that.&lt;/p&gt;</comment>
                            <comment id="84019" author="rread" created="Tue, 13 May 2014 16:33:40 +0000"  >&lt;p&gt;Yes, please change the label, in case you are still wondering about that. &lt;/p&gt;

&lt;p&gt;As for the memset issue - Patrick mentioned that the copytool is currently clearing the data but I didn&apos;t see it doing that. Since this buffer was being managed by the API then it made sense to me to clear it there, but I agree it might not be required, either. &lt;/p&gt;
</comment>
                            <comment id="84036" author="paf" created="Tue, 13 May 2014 18:27:27 +0000"  >&lt;p&gt;I opened &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5059&quot; title=&quot;Test failure on test suite sanity&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5059&quot;&gt;&lt;del&gt;LU-5059&lt;/del&gt;&lt;/a&gt; via Maloo for the test failures.  (On all of the test runs, all of the sub tests passed, but the overall suite still reported failure...)&lt;/p&gt;</comment>
                            <comment id="84381" author="paf" created="Mon, 19 May 2014 16:09:05 +0000"  >&lt;p&gt;Patch is here:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/10299/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10299/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Needs refresh, doing that shortly...&lt;/p&gt;</comment>
                            <comment id="84458" author="cliffw" created="Tue, 20 May 2014 15:47:38 +0000"  >&lt;p&gt;I will monitor this one, thanks for the patch.&lt;/p&gt;</comment>
                            <comment id="85244" author="pjones" created="Fri, 30 May 2014 13:29:16 +0000"  >&lt;p&gt;Landed for 2.6&lt;/p&gt;</comment>
                            <comment id="88036" author="jamesanunez" created="Wed, 2 Jul 2014 21:29:02 +0000"  >&lt;p&gt;Patch for b2_5 at &lt;a href=&quot;http://review.whamcloud.com/#/c/10716&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10716&lt;/a&gt; &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="14902" name="0003-Instead-of-allocating-1MB-for-every-call-to-llapi_hs.patch" size="3904" author="paf" created="Mon, 12 May 2014 19:54:12 +0000"/>
                    </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|hzwmcv:</customfieldvalue>

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