<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:59:38 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-6371] sendfile with group lock splits transfer into tiny chunks</title>
                <link>https://jira.whamcloud.com/browse/LU-6371</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;A program using sendfile to copy a file from lustre to lustre, with  a group lock on its source will see the transfer split in tiny chunks.&lt;/p&gt;

&lt;p&gt;Reproducer attached.&lt;/p&gt;

&lt;p&gt;Test setup. Create a 100MiB file.&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;$ pwd
/mnt/lustre
$ dd if=/dev/zero of=foo1 bs=1M count=100 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Transfer without a group lock:&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;$ strace ~/lustre-cleanup/lustre/tests/llsendfile4 0 foo1 foo2
...
sendfile(4, 3, NULL, 10485760)          = 10485760
sendfile(4, 3, NULL, 10485760)          = 10485760
sendfile(4, 3, NULL, 10485760)          = 10485760
sendfile(4, 3, NULL, 10485760)          = 10485760
sendfile(4, 3, NULL, 10485760)          = 10485760
sendfile(4, 3, NULL, 10485760)          = 10485760
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With a group lock&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;$ strace ~/lustre-cleanup/lustre/tests/llsendfile4 1223 foo1 foo2
...
sendfile(4, 3, NULL, 10485760)          = 28672
sendfile(4, 3, NULL, 10485760)          = 4096
sendfile(4, 3, NULL, 10485760)          = 4096
sendfile(4, 3, NULL, 10485760)          = 8192
sendfile(4, 3, NULL, 10485760)          = 4096
sendfile(4, 3, NULL, 10485760)          = 4096
sendfile(4, 3, NULL, 10485760)          = 4096
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The second example takes about 10 times longer than the first.&lt;/p&gt;

</description>
                <environment></environment>
        <key id="29113">LU-6371</key>
            <summary>sendfile with group lock splits transfer into tiny chunks</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="fzago">Frank Zago</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Mar 2015 21:25:11 +0000</created>
                <updated>Sun, 30 Jan 2022 10:48:51 +0000</updated>
                            <resolved>Sun, 30 Jan 2022 10:48:51 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="109795" author="paf" created="Mon, 16 Mar 2015 22:16:37 +0000"  >&lt;p&gt;Frank reported to me that the patch for &lt;a href=&quot;https://jira.hpdd.intel.com/browse/LU-6368&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.hpdd.intel.com/browse/LU-6368&lt;/a&gt; fixes this issue.&lt;/p&gt;

&lt;p&gt;Honestly, I have no idea why.  I&apos;ll try to understand why and report back.&lt;/p&gt;</comment>
                            <comment id="109885" author="jay" created="Tue, 17 Mar 2015 18:16:44 +0000"  >&lt;p&gt;It&apos;s good for you guys to run test for sendfile cases. Is it possible to generate a few test cases and add them into sanity?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;</comment>
                            <comment id="109887" author="fzago" created="Tue, 17 Mar 2015 18:31:40 +0000"  >&lt;p&gt;Yes, I&apos;ll add some tests too.&lt;/p&gt;</comment>
                            <comment id="110026" author="adilger" created="Wed, 18 Mar 2015 18:29:53 +0000"  >&lt;p&gt;The patch in question is &lt;a href=&quot;http://review.whamcloud.com/14093&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14093&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="29105">LU-6368</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="17309" name="llsendfile4.c" size="1266" author="fzago" created="Mon, 16 Mar 2015 21:25:11 +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|hzx8mf:</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>