<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:03:35 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-82] CLIO lock cache caching useless locks</title>
                <link>https://jira.whamcloud.com/browse/LU-82</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It seems that top locks cache is not killing locks that don&apos;t have any valid sublocks left, so this cache for actively used files grows to tens of locks easily slowing everything down.&lt;br/&gt;
To make things worse, sometimes these useless locks are matched against really wanted locks, but the cached lock is wider, so we try to enqueue a lock much wider than we actually need which leads to even more of a slowdown with shared file access.&lt;/p&gt;</description>
                <environment></environment>
        <key id="10360">LU-82</key>
            <summary>CLIO lock cache caching useless locks</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="jay">Jinshan Xiong</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Feb 2011 13:24:30 +0000</created>
                <updated>Tue, 27 Nov 2012 16:10:09 +0000</updated>
                            <resolved>Tue, 27 Nov 2012 16:10:09 +0000</resolved>
                                    <version>Lustre 2.0.0</version>
                    <version>Lustre 2.1.0</version>
                                    <fixVersion>Lustre 2.1.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                            <comments>
                            <comment id="10601" author="jay" created="Wed, 9 Feb 2011 20:38:19 +0000"  >&lt;p&gt;patch is at: &lt;a href=&quot;http://review.whamcloud.com/227&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/227&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10602" author="green" created="Wed, 9 Feb 2011 20:52:27 +0000"  >&lt;p&gt;Reassign to Jay since he is working on it.&lt;/p&gt;</comment>
                            <comment id="10689" author="jay" created="Fri, 18 Feb 2011 10:10:58 +0000"  >&lt;p&gt;Let me describe this problem a little bit in detail so as to help inspect.&lt;/p&gt;

&lt;p&gt;The root cause of this problem is due to the handling inside cl_lock_request(), where:&lt;/p&gt;

&lt;p&gt;                        rc = cl_enqueue_locked(env, lock, io, enqflags);&lt;br/&gt;
                        if (rc == 0) {&lt;br/&gt;
                                if (cl_lock_fits_into(env, lock, need, io)) &lt;/p&gt;
{
                                        cl_lock_mutex_put(env, lock);
                                        cl_lock_lockdep_acquire(env,
                                                                lock, enqflags);
                                        break;
                                }
&lt;p&gt;                                cl_unuse_locked(env, lock);&lt;/p&gt;

&lt;p&gt;If a lock was matched but it turns out to not fit after queuing(this may happen if there is a race that the sublock was canceled, and then a new sublock is created), cl_unuse_locked will put the lock into CLS_NEW state. Some time later, when the sublock of this lock is canceled, it won&apos;t delete the top lock because its state is CLS_NEW. The new patch just does it.&lt;/p&gt;</comment>
                            <comment id="10930" author="hudson" created="Mon, 7 Mar 2011 11:08:38 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/reviews-centos5/407/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reviews-centos5 #407&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-82&quot; title=&quot;CLIO lock cache caching useless locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-82&quot;&gt;&lt;del&gt;LU-82&lt;/del&gt;&lt;/a&gt; Remove useless clio locks&lt;/p&gt;

&lt;p&gt;Jinshan Xiong : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-release.git&amp;amp;a=commit&amp;amp;h=296923908584532e581b71a7f9d8a6c6e8b7c8dd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;296923908584532e581b71a7f9d8a6c6e8b7c8dd&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/lov/lovsub_lock.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="10941" author="jay" created="Mon, 7 Mar 2011 20:54:31 +0000"  >&lt;p&gt;resubmit the patch to &lt;a href=&quot;http://review.whamcloud.com/#change,305&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,305&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;passed acc-sm test on lab machines.&lt;/p&gt;</comment>
                            <comment id="11120" author="hudson" created="Tue, 15 Mar 2011 14:08:52 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/reviews-centos5/465/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reviews-centos5 #465&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-82&quot; title=&quot;CLIO lock cache caching useless locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-82&quot;&gt;&lt;del&gt;LU-82&lt;/del&gt;&lt;/a&gt; Remove useless clio locks&lt;/p&gt;

&lt;p&gt;Jinshan Xiong : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-release.git&amp;amp;a=commit&amp;amp;h=03d3bfd55dc9598b96846eb87628addaf8b5f3de&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;03d3bfd55dc9598b96846eb87628addaf8b5f3de&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/lov/lovsub_lock.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="11147" author="hudson" created="Wed, 16 Mar 2011 09:07:50 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/lustre-master-centos5/149/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;lustre-master-centos5 #149&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-82&quot; title=&quot;CLIO lock cache caching useless locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-82&quot;&gt;&lt;del&gt;LU-82&lt;/del&gt;&lt;/a&gt; Remove useless clio locks&lt;/p&gt;

&lt;p&gt;Oleg Drokin : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-release.git&amp;amp;a=commit&amp;amp;h=fa507031d245b08c7f24efed32819daf2aa42ab3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;fa507031d245b08c7f24efed32819daf2aa42ab3&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/lov/lovsub_lock.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="11155" author="hudson" created="Wed, 16 Mar 2011 12:15:46 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/red.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/reviews-rhel6/32/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reviews-rhel6 #32&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-82&quot; title=&quot;CLIO lock cache caching useless locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-82&quot;&gt;&lt;del&gt;LU-82&lt;/del&gt;&lt;/a&gt; Remove useless clio locks&lt;/p&gt;

&lt;p&gt;Oleg Drokin : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-dev.git&amp;amp;a=commit&amp;amp;h=fa507031d245b08c7f24efed32819daf2aa42ab3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;fa507031d245b08c7f24efed32819daf2aa42ab3&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/lov/lovsub_lock.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="11162" author="hudson" created="Wed, 16 Mar 2011 12:44:20 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/reviews-centos5/482/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reviews-centos5 #482&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-82&quot; title=&quot;CLIO lock cache caching useless locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-82&quot;&gt;&lt;del&gt;LU-82&lt;/del&gt;&lt;/a&gt; Remove useless clio locks&lt;/p&gt;

&lt;p&gt;Oleg Drokin : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-release.git&amp;amp;a=commit&amp;amp;h=fa507031d245b08c7f24efed32819daf2aa42ab3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;fa507031d245b08c7f24efed32819daf2aa42ab3&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/lov/lovsub_lock.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <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|hzv36n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4015</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>