<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:51: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-5426] Add more controls for open file cache</title>
                <link>https://jira.whamcloud.com/browse/LU-5426</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In comments to patch &lt;a href=&quot;http://review.whamcloud.com/#/c/11062/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/11062/&lt;/a&gt; for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4367&quot; title=&quot;unlink performance regression on lustre-2.5.52 client&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4367&quot;&gt;&lt;del&gt;LU-4367&lt;/del&gt;&lt;/a&gt; John Hammond made a compelling argument that aside from NFS there are other usecases where file caching makes sense.&lt;br/&gt;
For example for file exec, while (as demonstrated) running the same file again and again might or might not be frequent, system libraries are definitely going to be opened and closed all the time should they happen to be on Lustre fs.&lt;/p&gt;

&lt;p&gt;As such it probably makes sense to have an option (client side? mds side?) to control if we want to always cache files open for execution (easy to tell by open mode).&lt;/p&gt;

&lt;p&gt;I imagine there might be compelling usecases for when the same file would need to be opened for read or write all the time on the same client too, though I cannot think of any.&lt;br/&gt;
If so, we might also want a client-side control of &quot;always cache open file handles&quot; setting on a per-client basis.&lt;/p&gt;

&lt;p&gt;All of the above is relatively easy to implement, but we probably need to discuss first what makes the most sense keeping in mind that always doing the caching is pretty expensive at least for now.&lt;/p&gt;</description>
                <environment></environment>
        <key id="25787">LU-5426</key>
            <summary>Add more controls for open file cache</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jul 2014 03:51:15 +0000</created>
                <updated>Wed, 27 May 2020 23:35:26 +0000</updated>
                            <resolved>Wed, 27 May 2020 23:35:26 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="90338" author="adilger" created="Tue, 29 Jul 2014 17:51:15 +0000"  >&lt;p&gt;I think it is possible to use FMODE_EXEC to detect the executable case, and mmap(PROT_EXEC) to detect the library case.  Having a counter for the opens on the client inode, or maybe a per-filesystem &quot;average number of opens per inode&quot; counter would also allow it to try and get the open lock. &lt;/p&gt;

&lt;p&gt;I&apos;m not a big fan of having a tunable setting that needs to be adjusted by the user, since that will just be one more thing that users do not know about.  Any optimization in this area should be an automatically adjusting heuristic first, and only if we think there is a big risk of performance regression due to the heuristic should a tunable be implemented.&lt;/p&gt;</comment>
                            <comment id="271368" author="adilger" created="Wed, 27 May 2020 23:35:26 +0000"  >&lt;p&gt;Closing this as a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10948&quot; title=&quot;client cache open lock after N opens&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10948&quot;&gt;LU-10948&lt;/a&gt;, which has a patch to implement this functionality.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="51963">LU-10948</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="35578">LU-7915</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="22390">LU-4367</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|hzwsj3:</customfieldvalue>

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