<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:41:11 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>[LUDOC-220] osc_read is not present in the manual</title>
                <link>https://jira.whamcloud.com/browse/LUDOC-220</link>
                <project id="10070" key="LUDOC">Lustre Documentation</project>
                    <description>&lt;p&gt;from discussion today: osc_read is not present in the manual&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; JH: Consider the read() syscall, the OST_READ RPC, and a mmapped region.
 JH: Read moves some number of bytes from the page cache to a userspace buffer.
 JH: That number is used to tally the read_bytes counter.
 JH: OST_READ moves some number of bytes from memory on an OST to memory on a client.
 JH: That number of bytes is used to tally the osc_reads stat.
 JH: With mmap, a memory access that faults triggers an OST_READ.
 JH: An access that doesn&apos;t fault tallies nothing.
 JH: As Andreas pointed out, read_bytes is ignorant of caching.
 JH: It doesn&apos;t give you an idea of the worked required to satisfy the read.
 JH: But it&apos;s interesting anyway. And the ratio of these two stats is also interesting.
 JH: Perhaps confusingly there are also counters named read_bytes and ost_readin the osc stats.
 JH: t:~# cat /proc/fs/lustre/osc/lustre-OST0000-osc-ffff88016dcde800/stats ^M
snapshot_time             1391204667.36216 secs.usecs^M
req_waittime              178231 samples [usec] 32 29256 90673666 227929045180^M
req_active                178231 samples [reqs] 1 9 237854 447998^M
read_bytes                6145 samples [bytes] 0 55696 10481241 152202899719^M
write_bytes               23414 samples [bytes] 5 91736 74789821 1631652972043^M
ost_read                  6145 samples [usec] 69 6604 1436882 1097380908^M
ost_write                 23414 samples [usec] 149 29256 27478013 141084890911
[3:47:21 PM] John Hammond: The osc_read counter from llite should be the sum of
all read_bytes stats over all oscs associated to that superblock.
[3:47:51 PM] John Hammond: The ost_read stat is about how long the RPCs took.
[4:09:15 PM] Andreas Dilger: John: your supposition is correct:^M
$ lctl get_param llite.*.stats | grep read^M
read_bytes                1025 samples [bytes] 0 1048576 1073741824^M
osc_read                  1029 samples [bytes] 4096 1048576 1073762304^M
$ lctl get_para osc.*.stats | grep read^M
read_bytes                1029 samples [bytes] 4096 1048576 1073762304 112589999
0728704^M
ost_read                  1029 samples [usec] 1391 595570 347839127 120942246579
015
 AD: llite.*.stats:osc_read == osc.*.stats:read_bytes
 AD: it would be great if this was all clearly written in the manual (hint, hint)
 JH: That guy from TACC should have updated the manual when he added the osc_{read,write} stats to llite. But I don&apos;t think he works there anymore.
 JH: Richard has an office at TACC though and knows the manual pretty well. So I nominate him.
 JH: The problem with documenting lustre stats is the sense of sorrow and horror one feels:
 JH: t:~# find /proc/fs/lustre/ -name &apos;*stats*&apos; -exec basename {} \; | sort | uniq -c^M
      5 brw_stats^M
      2 extents_stats^M
      2 extents_stats_per_process^M
      2 hash_stats^M
      3 job_stats^M
      4 ldlm_stats^M
      5 md_stats^M
      2 offset_stats^M
      4 osc_stats^M
      2 read_ahead_stats^M
      1 rename_stats^M
      4 rpc_stats^M
      1 site_stats^M
      2 statahead_stats^M
     53 stats^M
      2 stats_track_gid^M
      2 stats_track_pid^M
      2 stats_track_ppid^M
      6 unstable_stats
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="22963">LUDOC-220</key>
            <summary>osc_read is not present in the manual</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="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="LM-Triage">Lustre Manual Triage</assignee>
                                    <reporter username="rhenwood">Richard Henwood</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Jan 2014 22:37:15 +0000</created>
                <updated>Thu, 15 Sep 2016 14:44:01 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                    <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|hzwe27:</customfieldvalue>

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