<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:01:39 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-13482] add verbose stats to lfs_migrate and &quot;lfs migrate&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-13482</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It would be useful to add progress stats to &quot;&lt;tt&gt;lfs_migrate&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;lfs migrate&lt;/tt&gt;&quot; with an option like &quot;&lt;tt&gt;&amp;#45;&amp;#45;verbose=stats&lt;/tt&gt;&quot; or &quot;&lt;tt&gt;&amp;#45;&amp;#45;stats&lt;/tt&gt;&quot; or similar.  The time interval might be specified (e.g. &quot;&lt;tt&gt;&amp;#45;&amp;#45;stats-interval=N&lt;/tt&gt;&quot;, but should default to once per 5s or so).  This option should be passed through from &quot;&lt;tt&gt;lfs&amp;#95;migrate&lt;/tt&gt;&quot; to &quot;&lt;tt&gt;lfs migrate&lt;/tt&gt;&quot;.&lt;/p&gt;

&lt;p&gt;It is not possible/practical to show a &quot;percent completion&quot; bar for &quot;&lt;tt&gt;lfs&amp;#95;migrate&lt;/tt&gt;&quot;, since the number of files and their size is not practical to know in advance, but it should definitely be possible for &quot;&lt;tt&gt;lfs migrate&lt;/tt&gt;&quot; to show the percent completion metric for migrating individual files, &lt;b&gt;if&lt;/b&gt; they are taking a longer time to complete (not for every file if it is small, unless &lt;tt&gt;&amp;#45;&amp;#45;verbose&lt;/tt&gt; is used and the filename would be shown anyway).&lt;/p&gt;

&lt;p&gt;For &quot;&lt;tt&gt;lfs migrate&lt;/tt&gt;&quot; it can show something like the following in YAML format, so that it is also possible to parse this output for consumption by other tools:&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;filename:
- { seconds: &amp;lt;seconds&amp;gt;, rmbps: &amp;lt;MiB/s&amp;gt;, wmbps: &amp;lt;MiB/s&amp;gt;, copied: &amp;lt;MiB&amp;gt;, size: &amp;lt;MiB&amp;gt;, pct: &amp;lt;done&amp;gt;% }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Whether the status update line ends in a newline &quot;&lt;tt&gt;\n&lt;/tt&gt;&quot; for logging or piped to another program, or only a carriage return &quot;&lt;tt&gt;\r&lt;/tt&gt;&quot; (that overprints the previous line for more user-friendly output) can be determined by calling &lt;tt&gt;isatty&lt;/tt&gt;.  The &lt;tt&gt;seconds:&lt;/tt&gt; field is the total elapsed time. The &lt;tt&gt;rmbps:&lt;/tt&gt; (bytes read over read time) and &lt;tt&gt;wmbps:&lt;/tt&gt; (bytes read over write time) values would be a decaying average data transfer rate across files if a single invocation is migrating multiple files, since small files would barely have time to print anything before they are completed, so the instantaneous transfer rates may not be very useful.  &lt;tt&gt;copied:&lt;/tt&gt; is the total number of bytes written for the current file, and &lt;tt&gt;size:&lt;/tt&gt; is the total file size, &lt;tt&gt;pct: = copied/size&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;For &quot;&lt;tt&gt;lfs_migrate&lt;/tt&gt;&quot; what can be shown is the elapsed time and current decaying average values for total volume/rate of data migrated, number/rate of files migrated.  Since this output will be intermingled with the &quot;&lt;tt&gt;lfs migrate&lt;/tt&gt;&quot; output for each file, it makes sense to format it in a similar YAML style so that the full log is still readable, but it can be easily distinguished between what is global progress and what is per-file progress.  The &lt;tt&gt;lfs_migrate&lt;/tt&gt; script can use &lt;tt&gt;test -t 0&lt;/tt&gt; to determine if it is writing to a terminal or a log file, and whether the linefeed &lt;tt&gt;\n&lt;/tt&gt; or carriage return &lt;tt&gt;\r&lt;/tt&gt; is used at the end of line:&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;directory:
- { tot_sec: &amp;lt;seconds&amp;gt;, tot_files: &amp;lt;count&amp;gt;, avg_fps: &amp;lt;files_per_sec&amp;gt;, avg_rmbps: &amp;lt;MiB/s&amp;gt;, avg_wmbps: &amp;lt;MiB/s&amp;gt;, tot_size: &amp;lt;MiB&amp;gt; }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;tt&gt;tot_sec:&lt;/tt&gt; is the total elapsed time for the current migration, &lt;tt&gt;tot_files&lt;/tt&gt; the total number of files (all entries) migrated so far, and &lt;tt&gt;avg_fps = tot_files/tot_sec&lt;/tt&gt; for all files migrated so far.  The totals line would only be shown every &lt;tt&gt;stats_interval&lt;/tt&gt; seconds.&lt;/p&gt;</description>
                <environment></environment>
        <key id="58891">LU-13482</key>
            <summary>add verbose stats to lfs_migrate and &quot;lfs migrate&quot;</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="timday">Tim Day</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Apr 2020 18:31:35 +0000</created>
                <updated>Fri, 30 Jun 2023 00:35:03 +0000</updated>
                            <resolved>Fri, 3 Feb 2023 14:00:55 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="275239" author="adilger" created="Sun, 12 Jul 2020 09:21:26 +0000"  >&lt;p&gt;It would also make sense for &lt;tt&gt;lfs_migrate&lt;/tt&gt; to include the migration rate of files per second if the files are small and the bandwidth computed for the transfer is not useful. &lt;/p&gt;</comment>
                            <comment id="358871" author="gerrit" created="Thu, 12 Jan 2023 22:06:41 +0000"  >&lt;p&gt;&quot;Timothy Day &amp;lt;timday@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49620&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49620&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13482&quot; title=&quot;add verbose stats to lfs_migrate and &amp;quot;lfs migrate&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13482&quot;&gt;&lt;del&gt;LU-13482&lt;/del&gt;&lt;/a&gt; utils: Bandwidth limit for lfs migrate&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a80f033f39f62dfd943912c665ef928604019f13&lt;/p&gt;</comment>
                            <comment id="361469" author="gerrit" created="Fri, 3 Feb 2023 06:48:35 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49620/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49620/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13482&quot; title=&quot;add verbose stats to lfs_migrate and &amp;quot;lfs migrate&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13482&quot;&gt;&lt;del&gt;LU-13482&lt;/del&gt;&lt;/a&gt; utils: bandwidth limit for lfs migrate&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 55968bfabe351ad37ee810bf69748ffa56d28037&lt;/p&gt;</comment>
                            <comment id="361515" author="pjones" created="Fri, 3 Feb 2023 14:00:55 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="61981">LU-14212</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="75013">LU-16632</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="74137">LU-16499</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10092" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>EX-4353</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00ynr:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>