<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:52:36 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-5567] /proc import file has binary data</title>
                <link>https://jira.whamcloud.com/browse/LU-5567</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Lustre 2.5.2&lt;/p&gt;

&lt;p&gt;Some tools have problems reading the import proc file in the mdc and osc directories. For example, &quot;less&quot; detects binary data in this file, and I&apos;ve noticed a couple different YAML parsers have failed to parse the file. It turns out there is a sequence of NULs in the middle of the file which might be causing the issues:&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;$ hexdump -C /proc/fs/lustre/osc/lustre-OST0001-osc-ffff88001b4abc00/import
...
000003d0  68 74 3a 20 30 0a 20 20  20 20 20 20 20 75 6e 72  |ht: 0.       unr|
000003e0  65 67 69 73 74 65 72 69  6e 67 3a 20 30 0a 20 20  |egistering: 0.  |
000003f0  20 20 20 20 20 74 69 6d  65 6f 75 74 73 3a 20 30  |     timeouts: 0|
00000400  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000004b0  00 00 00 00 00 00 00 00  00 00 00 0a 20 20 20 20  |............    |
000004c0  20 20 20 61 76 67 5f 77  61 69 74 74 69 6d 65 3a  |   avg_waittime:|
000004d0  20 34 36 35 20 75 73 65  63 0a 20 20 20 20 73 65  | 465 usec.    se|
000004e0  72 76 69 63 65 5f 65 73  74 69 6d 61 74 65 73 3a  |rvice_estimates:|
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="26245">LU-5567</key>
            <summary>/proc import file has binary data</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="4">Incomplete</resolution>
                                        <assignee username="yujian">Jian Yu</assignee>
                                    <reporter username="rread">Robert Read</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Aug 2014 23:19:32 +0000</created>
                <updated>Mon, 26 Mar 2018 05:29:14 +0000</updated>
                            <resolved>Mon, 26 Mar 2018 05:29:14 +0000</resolved>
                                    <version>Lustre 2.5.2</version>
                    <version>Lustre 2.4.3</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="93356" author="adilger" created="Fri, 5 Sep 2014 18:20:14 +0000"  >&lt;p&gt;Testing this on my local 2.4.3 I see there is a problem printing out the fractional read MB_per_sec, though it doesn&apos;t affect the write MB_per_sec, so I suspect it may be related to the actual value being printed:&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;0001760  sp   M   B   _   p   e   r   _   s   e   c   :  sp   1   2   .
0002000 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul
*
0002140 nul nul nul nul nul nul nul nul nul nul nul nul nul   4   9  nl
0002160  sp  sp  sp  sp   w   r   i   t   e   _   d   a   t   a   _   a
0002200   v   e   r   a   g   e   s   :  nl  sp  sp  sp  sp  sp  sp  sp
0002220   b   y   t   e   s   _   p   e   r   _   r   p   c   :  sp   6
0002240   0   1   3   8   5  nl  sp  sp  sp  sp  sp  sp  sp   u   s   e
0002260   c   _   p   e   r   _   r   p   c   :  sp   4   5   1   0   3
0002300  nl  sp  sp  sp  sp  sp  sp  sp   M   B   _   p   e   r   _   s
0002320   e   c   :  sp   1   3   .   3   3  nl
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is being printed from &lt;tt&gt;lprocfs_rd_import()&lt;/tt&gt; in 2.4 by:&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;                                i += snprintf(page + i, count - i,
                                              &lt;span class=&quot;code-quote&quot;&gt;&quot;       MB_per_sec: %u.%.02u\n&quot;&lt;/span&gt;,
                                              k / j, (100 * k / j) % 100);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and in master it is using seq_printf() with the same format.  It may be that this bug is in the kernel code?&lt;/p&gt;</comment>
                            <comment id="93378" author="rread" created="Fri, 5 Sep 2014 21:17:04 +0000"  >&lt;p&gt;I also see this in the mdc/import which doesn&apos;t include the write averages:&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;000003d0  72 69 6e 67 3a 20 30 0a  20 20 20 20 20 20 20 74  |ring: 0.       t|
000003e0  69 6d 65 6f 75 74 73 3a  20 30 0a 20 20 20 20 20  |imeouts: 0.     |
000003f0  20 20 61 76 67 5f 77 61  69 74 74 69 6d 65 3a 20  |  avg_waittime: |
00000400  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000410  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000420  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000430  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000440  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000450  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000460  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000470  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000480  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000490  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000004a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000004b0  00 00 00 00 00 00 00 35  33 30 20 75 73 65 63 0a  |.......530 usec.|
000004c0  20 20 20 20 73 65 72 76  69 63 65 5f 65 73 74 69  |    service_esti|
000004d0  6d 61 74 65 73 3a 0a 20  20 20 20 20 20 20 73 65  |mates:.       se|
000004e0  72 76 69 63 65 73 3a 20  31 20 73 65 63 0a 20 20  |rvices: 1 sec.  |

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="93379" author="rread" created="Fri, 5 Sep 2014 21:26:11 +0000"  >&lt;p&gt;Oh, all of those blocks of NUL all start on a 1k boundary (0x400 in my case and 02000 in your case). Perhaps the problem is with the seq_file handling, and not how we format the data.&lt;/p&gt;</comment>
                            <comment id="93380" author="adilger" created="Fri, 5 Sep 2014 21:55:12 +0000"  >&lt;p&gt;Yes, I found the same thing.  Reading the data with &quot;dd bs=80 if=/proc/.../import | less&quot; shows this very clearly.  The problem is no longer present in master, likely because the code uses seq_printf() directly.  There were a few patches involved to get this correct:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;http://review.whamcloud.com/7135&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7135&lt;/a&gt; (commit 3270bfc2)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://review.whamcloud.com/6588&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/6588&lt;/a&gt; (commit 62660c79)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://review.whamcloud.com/10344&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10344&lt;/a&gt; (commit aa6773d9)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I don&apos;t know if we want to backport all of this to b2_4 and b2_5, or just fix the actual bug in lprocfs_rd_import()?  The patches do improve the &quot;imports&quot; contents, so they may still be worthwhile.&lt;/p&gt;</comment>
                            <comment id="93383" author="rread" created="Fri, 5 Sep 2014 22:15:11 +0000"  >&lt;p&gt;Yes, I see strange things with dd indeed. &lt;/p&gt;

&lt;p&gt;It looks like the last two patches have already been included in b2_5 with commit 87cb49b54b1a, so we&apos;re only missing the change to use seq_file, which is the important part. &lt;/p&gt;
</comment>
                            <comment id="93866" author="pjones" created="Fri, 12 Sep 2014 17:35:18 +0000"  >&lt;p&gt;Yu, Jian&lt;/p&gt;

&lt;p&gt;Could you please look into this issue?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="93960" author="yujian" created="Mon, 15 Sep 2014 05:47:53 +0000"  >&lt;p&gt;While back-porting patch &lt;a href=&quot;http://review.whamcloud.com/7135&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7135&lt;/a&gt; (commit 3270bfc2) to Lustre b2_5 branch, I hit conflicts with the follow files:&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;lustre/obdclass/lprocfs_status.c
lustre/osd-ldiskfs/osd_handler.c
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Trying to resolve the conflicts.&lt;/p&gt;</comment>
                            <comment id="94207" author="yujian" created="Wed, 17 Sep 2014 01:56:06 +0000"  >&lt;p&gt;Here are the back-ported patches for Lustre b2_5 branch:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;http://review.whamcloud.com/11944&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11944&lt;/a&gt; (revert commit 87cb49b5 to resolve conflicts)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://review.whamcloud.com/11945&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11945&lt;/a&gt; (back-ported from commit 3270bfc2)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://review.whamcloud.com/11947&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11947&lt;/a&gt; (back-ported from commit 62660c79)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://review.whamcloud.com/11948&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11948&lt;/a&gt; (back-ported from commit aa6773d9)&lt;/li&gt;
&lt;/ul&gt;



</comment>
                            <comment id="224509" author="yujian" created="Mon, 26 Mar 2018 05:29:14 +0000"  >&lt;p&gt;Close old ticket on obsolete branch.&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|hzwv0f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15524</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>