<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:39:02 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-10885] enable flock by default</title>
                <link>https://jira.whamcloud.com/browse/LU-10885</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We should consider to enable the &lt;tt&gt;flock&lt;/tt&gt; mount option by default, while still allowing &lt;tt&gt;localflock&lt;/tt&gt; and &lt;tt&gt;noflock&lt;/tt&gt; options for users that do not want this functionality.&#160; From looking at issues reported on &lt;a href=&quot;http://stackexchange.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackexchange.com/&lt;/a&gt; and others, it seems that the lack of &lt;tt&gt;flock&lt;/tt&gt; functionality by default is an obstacle for many users to use databases on top of Lustre.&lt;/p&gt;

&lt;p&gt;If the users are&#160;&lt;em&gt;not&lt;/em&gt; using &lt;tt&gt;flock&lt;/tt&gt; functionality, I don&apos;t think this adds any overhead, and if they &lt;em&gt;are&lt;/em&gt; using this functionality then they want it enabled in any case.&lt;/p&gt;</description>
                <environment></environment>
        <key id="51688">LU-10885</key>
            <summary>enable flock by default</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="pfarrell">Patrick Farrell</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Fri, 6 Apr 2018 04:11:14 +0000</created>
                <updated>Thu, 31 Aug 2023 06:39:09 +0000</updated>
                            <resolved>Tue, 19 Feb 2019 06:04:41 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="226168" author="paf" created="Tue, 17 Apr 2018 15:22:31 +0000"  >&lt;p&gt;I would offer one further thought - I&apos;ve talked to people a few times who said &quot;oh localflock makes the not supported message go away, that&apos;s fine, I&apos;ll run my app like that&quot;, without any idea what they were doing, risking incorrect operation in their multi-node app.&#160; &quot;flock&quot; on by default makes perfect sense to me.&#160; (Cray has added it everywhere years and years now.)&lt;/p&gt;</comment>
                            <comment id="226433" author="gerrit" created="Thu, 19 Apr 2018 23:00:03 +0000"  >&lt;p&gt;Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32091&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32091&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; llite: enable flock mount option by default&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 40cf09afb13c6c773ec6781a54059c3472c7f15d&lt;/p&gt;</comment>
                            <comment id="226434" author="gerrit" created="Thu, 19 Apr 2018 23:00:04 +0000"  >&lt;p&gt;Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32092&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32092&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; tests: clean up flocks_test code style&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 49e278280cb133a2b1b7db1debe1cd93a9fcb967&lt;/p&gt;</comment>
                            <comment id="242159" author="gerrit" created="Mon, 18 Feb 2019 06:37:59 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32092/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32092/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; tests: fix up flocks_test bugs and code style&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3ce41b7168f7a3b5bacb5ae35f278dce4a994fae&lt;/p&gt;</comment>
                            <comment id="242160" author="gerrit" created="Mon, 18 Feb 2019 06:38:03 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32091/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32091/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; llite: enable flock mount option by default&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3613af3e15cbc6091e3a16c8caeb1307be2d91f6&lt;/p&gt;</comment>
                            <comment id="242217" author="pjones" created="Tue, 19 Feb 2019 06:04:41 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="247926" author="gerrit" created="Wed, 29 May 2019 10:01:21 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34987&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34987&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; llite: enable flock mount option by default&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 20ed66f1a6aac7623185da70da20950d22f4c666&lt;/p&gt;</comment>
                            <comment id="250572" author="gerrit" created="Wed, 3 Jul 2019 03:25:18 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34987/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34987/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; llite: enable flock mount option by default&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 16fb13eb386380a4eb46b7e016a66cb38a01f54f&lt;/p&gt;</comment>
                            <comment id="251456" author="degremoa" created="Tue, 16 Jul 2019 08:12:58 +0000"  >&lt;p&gt;How this fit with this paragraph from Lustre wiki:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;tt&gt;flock&lt;/tt&gt;: enable support for cluster-wide, coherent file locks. Must be applied to the &lt;tt&gt;mount&lt;/tt&gt; commands for all clients that will be accessing common data requiring lock functionality. Cluster-wide locking &lt;b&gt;will have a detrimental impact on file system performance, and should only be enabled when absolutely required&lt;/b&gt;. For some applications, the locking is only necessary on a sub-set of nodes. For example, the CTDB cluster framework used by Samba to provide a parallel, high-availability SMB gateway, relies on locking of a shared file when coordinating cluster start-up and recovery. However, only the CTDB nodes need to mount the Lustre file system with the &lt;tt&gt;flock&lt;/tt&gt; option. This is an example of application or domain-specific lock requirements.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you really think there is very limited performance impact, we should probably revise this wiki page.&lt;/p&gt;</comment>
                            <comment id="251465" author="pfarrell" created="Tue, 16 Jul 2019 14:52:31 +0000"  >&lt;p&gt;Oh, jeez - I&apos;m not sure when that was written, but it&apos;s completely wrong.&#160; It has no measurable impact on performance at all, unless you&apos;ve got an app that ends up contending those locks between nodes, in which case &lt;b&gt;it is asking for mutual exclusion&lt;/b&gt;, and we are only following its requests.&#160; The only case where you&apos;d see a performance hit is in the case of an app making heavy use of locks it doesn&apos;t need.&#160; (I am not considering the case where the app makes heavy use of the locks for good reason.&#160; In that case, it needs them for correct operation.)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=degremoa&quot; class=&quot;user-hover&quot; rel=&quot;degremoa&quot;&gt;degremoa&lt;/a&gt;, can you link the wiki page or clean it up yourself?&#160; It&apos;s just totally wrong.&lt;/p&gt;</comment>
                            <comment id="251467" author="degremoa" created="Tue, 16 Jul 2019 15:09:12 +0000"  >&lt;p&gt;Here is the page:&#160;&lt;a href=&quot;http://wiki.lustre.org/Mounting_a_Lustre_File_System_on_Client_Nodes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://wiki.lustre.org/Mounting_a_Lustre_File_System_on_Client_Nodes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Probably better you fix it with the wording you think is appropriate.&lt;/p&gt;

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

&lt;p&gt;For my own knowledge, I&apos;ve never looked at how flock is implemented, but enabling flock does not change at all how locking is working for any other Lustre resources? This only has impact for users explicitly calling flock on their files?&lt;/p&gt;</comment>
                            <comment id="251469" author="pfarrell" created="Tue, 16 Jul 2019 15:14:00 +0000"  >&lt;p&gt;Correct - flock is an independent type of MDT lock (it&apos;s sort of like if there was a flock bit in the IBITS bit set, but it&apos;s not implemented that way), and flocks only interact with other flocks.&#160; So only for those users.&#160; They don&apos;t interact at all with other locks - Don&apos;t conflict, etc.&lt;/p&gt;

&lt;p&gt;I&apos;ll see if I can still edit the wiki.&lt;/p&gt;</comment>
                            <comment id="251470" author="adilger" created="Tue, 16 Jul 2019 15:15:40 +0000"  >&lt;p&gt;The flock locks are implemented via DLM on the MDS, but in a separate lock namespace from IBITS locks used for regular files. They are only used of flock is requested by the application, so should have no impact if the application is not using this feature. &lt;/p&gt;</comment>
                            <comment id="251471" author="degremoa" created="Tue, 16 Jul 2019 15:23:15 +0000"  >&lt;p&gt;Thanks a lot for the explanations!&lt;/p&gt;</comment>
                            <comment id="251475" author="pfarrell" created="Tue, 16 Jul 2019 15:26:42 +0000"  >&lt;p&gt;Thank you for pointing out the wiki - I&apos;ve updated it to give users a strong push towards &apos;flock&apos;.&#160; (localflock has always seemed like a way for ambitious users to corrupt their data)&lt;/p&gt;

&lt;p&gt;One note: I don&apos;t actually know when we switched from whatever flock implementation had a performance cost, but it was a &lt;b&gt;long&lt;/b&gt; time ago, so I just settled on &quot;2.x is fine&quot;.&#160; (It&apos;s definitely true of 2.4/2.5, as well as at least the Seagate 2.1, so I&apos;m pretty sure it&apos;s correct.)&lt;/p&gt;</comment>
                            <comment id="382521" author="gerrit" created="Tue, 15 Aug 2023 17:49:08 +0000"  >&lt;p&gt;&quot;Laura Hild &amp;lt;lsh@jlab.org&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51948&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51948&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; docs: note flock now being enabled by default&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 10701dd9101831bbe9521705d2a3754560eaa920&lt;/p&gt;</comment>
                            <comment id="384344" author="gerrit" created="Thu, 31 Aug 2023 06:39:09 +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/+/51948/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51948/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10885&quot; title=&quot;enable flock by default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10885&quot;&gt;&lt;del&gt;LU-10885&lt;/del&gt;&lt;/a&gt; docs: note flock now being enabled by default&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b557fb21c8dfa676fd4ec528fed3d8ea17bc665f&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="36398">LU-8069</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="55768">LU-12348</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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzvdb:</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>