<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:25:24 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-9347] Getting BLKSSZGET using ioctl</title>
                <link>https://jira.whamcloud.com/browse/LU-9347</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;According to my web searches, the approved way to find out the&lt;br/&gt;
needed alignment for the i/o is the result of the BLKSSZGET ioctl:&lt;/p&gt;

&lt;p&gt;    ioctl (fd, BLKSSZGET, &amp;amp;(align))&lt;/p&gt;

&lt;p&gt;However, on Lustre we get the error:&lt;/p&gt;

&lt;p&gt;  Inappropriate ioctl for device&lt;/p&gt;

&lt;p&gt;Is this ioctl supported and I&apos;m just doing it wrong?&lt;br/&gt;
Or is this ioctl indeed not allowed on Lustre ?  And if so,&lt;br/&gt;
what is the approved way to find out the alignment ?&lt;/p&gt;
</description>
                <environment></environment>
        <key id="45514">LU-9347</key>
            <summary>Getting BLKSSZGET using ioctl</summary>
                <type id="9" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/undefined.png">Question/Request</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="1">Fixed</resolution>
                                        <assignee username="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Apr 2017 22:01:29 +0000</created>
                <updated>Thu, 14 Sep 2017 20:46:23 +0000</updated>
                            <resolved>Thu, 31 Aug 2017 19:35:48 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.10.1</fixVersion>
                    <fixVersion>Lustre 2.11.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="192305" author="pjones" created="Mon, 17 Apr 2017 17:12:17 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please assist with this one?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="192306" author="adilger" created="Mon, 17 Apr 2017 17:13:32 +0000"  >&lt;p&gt;Mahmoud, what is the requirement for the alignment?  Is this for O_DIRECT on the client, or something else?&lt;/p&gt;</comment>
                            <comment id="192580" author="mhanafi" created="Tue, 18 Apr 2017 20:56:45 +0000"  >&lt;p&gt;The I/O will be issued from a client. We want to ensure alignment of IO for max throughput.  &lt;/p&gt;</comment>
                            <comment id="193281" author="adilger" created="Mon, 24 Apr 2017 20:58:07 +0000"  >&lt;p&gt;The optimal IO size for maximum performance is returned via &lt;tt&gt;stat(2)&lt;/tt&gt; on the filename or &lt;tt&gt;fstat(2)&lt;/tt&gt; on the open file descriptor:&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;         blksize_t   st_blksize;/* optimal file sys I/O ops blocksize */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For Lustre this is typically 1MB or 2MB.  The &lt;tt&gt;BLKSSZGET&lt;/tt&gt; ioctl is for returning the minimum alignment for O_DIRECT.  For Lustre this is 4096 bytes (&lt;tt&gt;PAGE_SIZE&lt;/tt&gt;), though on other filesystems it is typically 512 or 4096 bytes (sector size).&lt;/p&gt;</comment>
                            <comment id="193282" author="adilger" created="Mon, 24 Apr 2017 21:04:11 +0000"  >&lt;p&gt;Emoly, I think for Lustre it would be possible to return &lt;tt&gt;PAGE_SIZE&lt;/tt&gt; from &lt;tt&gt;ll_file_ioctl()&lt;/tt&gt; for this call.&lt;/p&gt;</comment>
                            <comment id="205587" author="gerrit" created="Thu, 17 Aug 2017 03:09:52 +0000"  >&lt;p&gt;Emoly Liu (emoly.liu@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/28578&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28578&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9347&quot; title=&quot;Getting BLKSSZGET using ioctl&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9347&quot;&gt;&lt;del&gt;LU-9347&lt;/del&gt;&lt;/a&gt; ioctl: Add BLKSSZGET ioctl support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8db1f7c135b3b482ebb2bacb49a3a1e315b0cf25&lt;/p&gt;</comment>
                            <comment id="206048" author="jaylan" created="Tue, 22 Aug 2017 19:07:26 +0000"  >&lt;p&gt;Hi Emoly, should I consider #28578 patchset #4 good and cherry-pick that one?&lt;/p&gt;</comment>
                            <comment id="206054" author="pjones" created="Tue, 22 Aug 2017 19:27:55 +0000"  >&lt;p&gt;Jay&lt;/p&gt;

&lt;p&gt;I would advise holding off until the fix has landed to master if possible - it is still subject to further change until then&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="207118" author="gerrit" created="Thu, 31 Aug 2017 19:17:01 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/28578/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28578/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9347&quot; title=&quot;Getting BLKSSZGET using ioctl&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9347&quot;&gt;&lt;del&gt;LU-9347&lt;/del&gt;&lt;/a&gt; ioctl: Add BLKSSZGET ioctl support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: dcc32cd7d0d89a49f0c73ecf99130a2678442e55&lt;/p&gt;</comment>
                            <comment id="207133" author="pjones" created="Thu, 31 Aug 2017 19:35:48 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="207455" author="gerrit" created="Tue, 5 Sep 2017 19:09:42 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/28861&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28861&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9347&quot; title=&quot;Getting BLKSSZGET using ioctl&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9347&quot;&gt;&lt;del&gt;LU-9347&lt;/del&gt;&lt;/a&gt; ioctl: Add BLKSSZGET ioctl support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0f524780288c1a59de0e44c0f839cf7bb0657dde&lt;/p&gt;</comment>
                            <comment id="208415" author="gerrit" created="Thu, 14 Sep 2017 20:39:33 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/28861/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28861/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9347&quot; title=&quot;Getting BLKSSZGET using ioctl&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9347&quot;&gt;&lt;del&gt;LU-9347&lt;/del&gt;&lt;/a&gt; ioctl: Add BLKSSZGET ioctl support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7d89cc84b7f82fe847d481aa70ea38bb345968ed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzaav:</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>