<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:02:12 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-13546] sanity-pcc test_4: mmap_sanity test failed</title>
                <link>https://jira.whamcloud.com/browse/LU-13546</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for S Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/7e33be5d-a239-48ba-8938-17e0f334cb59&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/7e33be5d-a239-48ba-8938-17e0f334cb59&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;test_4 failed with the following error:&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;mmap_sanity test failed
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This issue happens with client on CentOS 8. The mmap command fails with:&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;mmap test8: SIGBUS for beyond file size (FAIL, 0.003286s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;





&lt;p&gt;VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV&lt;br/&gt;
sanity-pcc test_4 - mmap_sanity test failed&lt;/p&gt;</description>
                <environment></environment>
        <key id="59135">LU-13546</key>
            <summary>sanity-pcc test_4: mmap_sanity test failed</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                            <label>always_except</label>
                    </labels>
                <created>Mon, 11 May 2020 08:22:38 +0000</created>
                <updated>Mon, 10 Jan 2022 07:32:24 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="269808" author="gerrit" created="Mon, 11 May 2020 08:41:49 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38564&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38564&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13546&quot; title=&quot;sanity-pcc test_4: mmap_sanity test failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13546&quot;&gt;LU-13546&lt;/a&gt; tests: test sanity-pcc on CentOS 8&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 27d41717cc961693b87068c626df1ad0b492b791&lt;/p&gt;</comment>
                            <comment id="269812" author="sebastien" created="Mon, 11 May 2020 11:11:26 +0000"  >&lt;p&gt;Patch #38564 confirms that sanity-pcc test_4 fails on CentOS 8 with tip of master branch.&lt;br/&gt;
I am increasing priority of this ticket. Should we push a patch to skip this test when client runs CentOS 8?&lt;/p&gt;</comment>
                            <comment id="270184" author="qian_wc" created="Thu, 14 May 2020 07:43:38 +0000"  >&lt;p&gt;I run the command using mmap_sanity as follows in local Ext4 filesystem, it also can not pass the mmap_sanity tst8 on CentOS 8.&#160;&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;
[root@bing tests]# ./mmap_sanity -d /root/work/debug/ -m /root/work/debug/ -e 1 -e 2 -e 3 -e 4 -e 5 -e 6 -e 7 
mmap test1: basic mmap operation (SKIPPED, 0s)
mmap test2: MAP_PRIVATE not write back (SKIPPED, 0s)
mmap test3: concurrent mmap ops on two nodes (SKIPPED, 0s)
mmap test4: c1 write to f1 from mmapped f2, c2 write to f1 from mmapped f1 (SKIPPED, 0s)
mmap test5: read/write file to/from the buffer which mmapped to just &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; file (SKIPPED, 0s)
mmap test6: check mmap write/read content on two nodes (SKIPPED, 0s)
mmap test7: file i/o with an unmapped buffer (SKIPPED, 0s)
mmap test8: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; beyond file size (FAIL, 0.001586s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;While the result on CentOS 7 with local Ext4 filesystem is as follows:&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;
[root@qian tests]# ./mmap_sanity -d /root/work/debug -m /root/work/debug -e 1 -e 2 -e 3 -e 4 -e 5 -e 6 -e 7
mmap test1: basic mmap operation (SKIPPED, 0s)
mmap test2: MAP_PRIVATE not write back (SKIPPED, 0s)
mmap test3: concurrent mmap ops on two nodes (SKIPPED, 0s)
mmap test4: c1 write to f1 from mmapped f2, c2 write to f1 from mmapped f1 (SKIPPED, 0s)
mmap test5: read/write file to/from the buffer which mmapped to just &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; file (SKIPPED, 0s)
mmap test6: check mmap write/read content on two nodes (SKIPPED, 0s)
mmap test7: file i/o with an unmapped buffer (SKIPPED, 0s)
mmap test8: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; beyond file size (PASS, 0.079921s)
mmap test9: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; negative file offset (PASS, 4.1e-05s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Same results for Lustre with CentOS 8 and CentOS 7:&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-comment&quot;&gt;// CentOS8 on Luste
&lt;/span&gt;[root@bing tests]# ./mmap_sanity -d /mnt/lustre -m /mnt/lustre -e 1 -e 2 -e 3 -e 4 -e 5 -e 6 -e 7 
mmap test1: basic mmap operation (SKIPPED, 0s)
mmap test2: MAP_PRIVATE not write back (SKIPPED, 0s)
mmap test3: concurrent mmap ops on two nodes (SKIPPED, 0s)
mmap test4: c1 write to f1 from mmapped f2, c2 write to f1 from mmapped f1 (SKIPPED, 0s)
mmap test5: read/write file to/from the buffer which mmapped to just &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; file (SKIPPED, 0s)
mmap test6: check mmap write/read content on two nodes (SKIPPED, 0s)
mmap test7: file i/o with an unmapped buffer (SKIPPED, 0s)
mmap test8: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; beyond file size (FAIL, 0.009503s)
[root@bing tests]# df
Filesystem&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 1K-blocks&#160; &#160; &#160; Used Available Use% Mounted on
devtmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 3975676 &#160; &#160; &#160; &#160; 0 &#160; 3975676 &#160; 0% /dev
tmpfs &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 3988784 &#160; &#160; &#160; &#160; 0 &#160; 3988784 &#160; 0% /dev/shm
tmpfs &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 3988784&#160; &#160; &#160; 9140 &#160; 3979644 &#160; 1% /run
tmpfs &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 3988784 &#160; &#160; &#160; &#160; 0 &#160; 3988784 &#160; 0% /sys/fs/cgroup
/dev/sda1&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 46183252&#160; 10919180&#160; 32888392&#160; 25% /
vmhgfs-fuse &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 488245288 238522632 249722656&#160; 49% /mnt/hgfs
tmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 797756 &#160; &#160; &#160; &#160; 0&#160; &#160; 797756 &#160; 0% /run/user/0
/dev/mapper/mds1_flakey&#160; &#160; &#160; &#160; 125368&#160; &#160; &#160; 1956&#160; &#160; 112176 &#160; 2% /mnt/lustre-mds1
/dev/mapper/ost1_flakey&#160; &#160; &#160; &#160; 325368 &#160; &#160; 13508&#160; &#160; 284700 &#160; 5% /mnt/lustre-ost1
/dev/mapper/ost2_flakey&#160; &#160; &#160; &#160; 325368 &#160; &#160; 13508&#160; &#160; 284700 &#160; 5% /mnt/lustre-ost2
192.168.150.131@tcp:/lustre&#160; &#160; 650736 &#160; &#160; 27016&#160; &#160; 569400 &#160; 5% /mnt/lustre
[root@bing tests]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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-comment&quot;&gt;// CentOS7 on Lustre
&lt;/span&gt;[root@qian tests]# ./mmap_sanity -d /mnt/lustre -m /mnt/lustre -e 1 -e 2 -e 3 -e 4 -e 5 -e 6 -e 7
mmap test1: basic mmap operation (SKIPPED, 0s)
mmap test2: MAP_PRIVATE not write back (SKIPPED, 0s)
mmap test3: concurrent mmap ops on two nodes (SKIPPED, 0s)
mmap test4: c1 write to f1 from mmapped f2, c2 write to f1 from mmapped f1 (SKIPPED, 0s)
mmap test5: read/write file to/from the buffer which mmapped to just &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; file (SKIPPED, 0s)
mmap test6: check mmap write/read content on two nodes (SKIPPED, 0s)
mmap test7: file i/o with an unmapped buffer (SKIPPED, 0s)
mmap test8: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; beyond file size (PASS, 0.026712s)
mmap test9: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; negative file offset (PASS, 0.004452s)
[root@qian tests]# df
Filesystem&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 1K-blocks&#160; &#160; &#160; Used Available Use% Mounted on
/dev/sda1&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 52507040&#160; 18504952&#160; 31311836&#160; 38% /
devtmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 1920116 &#160; &#160; &#160; &#160; 0 &#160; 1920116 &#160; 0% /dev
tmpfs &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 1930752 &#160; &#160; &#160; &#160; 0 &#160; 1930752 &#160; 0% /dev/shm
tmpfs &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 1930752 &#160; &#160; 11764 &#160; 1918988 &#160; 1% /run
tmpfs &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 1930752 &#160; &#160; &#160; &#160; 0 &#160; 1930752 &#160; 0% /sys/fs/cgroup
.host:/ &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 488245288 238528028 249717260&#160; 49% /mnt/hgfs
tmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 386152 &#160; &#160; &#160; &#160; 0&#160; &#160; 386152 &#160; 0% /run/user/0
/dev/mapper/mds1_flakey&#160; &#160; &#160; &#160; 125368&#160; &#160; &#160; 1956&#160; &#160; 112176 &#160; 2% /mnt/lustre-mds1
/dev/mapper/ost1_flakey&#160; &#160; &#160; &#160; 325368 &#160; &#160; 13508&#160; &#160; 284700 &#160; 5% /mnt/lustre-ost1
/dev/mapper/ost2_flakey&#160; &#160; &#160; &#160; 325368 &#160; &#160; 13508&#160; &#160; 284700 &#160; 5% /mnt/lustre-ost2
192.168.150.128@tcp:/lustre&#160; &#160; 650736 &#160; &#160; 27016&#160; &#160; 569400 &#160; 5% /mnt/lustre
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It seems In CentOS8 kernel, if the file rang is unmapped, it will not trigger SIGBUS when reading beyond file size.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I will exclude sanity_mmap tst8 from the&#160; testing list.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="270185" author="qian_wc" created="Thu, 14 May 2020 08:04:36 +0000"  >&lt;p&gt;It seems that the current Linux kernel does not follow POSIX syntax:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://pubs.opengroup.org/onlinepubs/9699919799/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://pubs.opengroup.org/onlinepubs/9699919799/&lt;/a&gt;&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;
The&#160;mmap() function can be used to map a region of memory that is larger than the current size of the object. Memory access within the mapping but beyond the current end of the underlying objects may result in SIGBUS signals being sent to the process.
The&#160;mmap() function can be used to map a region of memory that is larger than the current size of the object. Memory access within the mapping but beyond the current end of the underlying objects may result in SIGBUS signals being sent to the process. The reason &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; is that the size of the object can be manipulated by other processes and can change at any moment. The implementation should tell the application that a memory reference is outside the object where &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; can be detected; otherwise, written data may be lost and read data may not reflect actual data in the object.&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="270187" author="qian_wc" created="Thu, 14 May 2020 09:23:23 +0000"  >&lt;p&gt;It also failed mmap_sanity tst 9 for the PCC backend formatted as Ext4 due to the too large offset.&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;
[root@bing tests]# ./mmap_sanity -d /root/work/debug -m /root/work/debug -e 7 -e 8 
mmap test1: basic mmap operation (PASS, 9e-05s)
mmap test2: MAP_PRIVATE not write back (PASS, 5.2e-05s)
mmap test3: concurrent mmap ops on two nodes (PASS, 2.002s)
mmap test4: c1 write to f1 from mmapped f2, c2 write to f1 from mmapped f1 (PASS, 2.0027s)
mmap test5: read/write file to/from the buffer which mmapped to just &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; file (PASS, 0.000589s)
mmap test6: check mmap write/read content on two nodes (PASS, 0.00016s)
mmap test7: file i/o with an unmapped buffer (SKIPPED, 0s)
mmap test8: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; beyond file size (SKIPPED, 0s)
mmap: Value too large &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; defined data type
mmap test9: SIGBUS &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; negative file offset (FAIL, 4.9e-05s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="270189" author="gerrit" created="Thu, 14 May 2020 10:23:17 +0000"  >&lt;p&gt;Yingjin Qian (qian@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38598&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38598&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13546&quot; title=&quot;sanity-pcc test_4: mmap_sanity test failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13546&quot;&gt;LU-13546&lt;/a&gt; pcc: exclude mmap_sanity tst8/tst9 from test list&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 11f9c5e7d8454a6e4d47b6ebb3f9c01d97544b58&lt;/p&gt;</comment>
                            <comment id="271692" author="gerrit" created="Tue, 2 Jun 2020 04:28:04 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38598/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38598/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13546&quot; title=&quot;sanity-pcc test_4: mmap_sanity test failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13546&quot;&gt;LU-13546&lt;/a&gt; pcc: exclude mmap_sanity tst8/tst9 from test list&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9611b3c3f47a486adc41b2d5370561e94dcea753&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|i01027:</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>