<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:12:03 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-7802] set_param lru_size fails with &apos;error: set_param: setting /proc/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-*/lru_size=clear: Invalid argument&apos;</title>
                <link>https://jira.whamcloud.com/browse/LU-7802</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;tt&gt;lctl set_param -n ldlm.namespaces.&amp;#42;$1&amp;#42;.lru_size=clear&lt;/tt&gt; fails with error message&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;error: set_param: setting /proc/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-ffff880077f04000/lru_size=clear: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ve seen this error message in the test_log for a few sanity tests. The error does not seem to make the test fail (should it?) and the error is not consistent meaning that a test could hit the error on one test run and not experience the error the next. &lt;/p&gt;

&lt;p&gt;Here are a few instances of this error I&apos;ve come across:&lt;br/&gt;
sanity test_127a at &lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/2f35cef8-d8c8-11e5-83e2-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/2f35cef8-d8c8-11e5-83e2-5254006e85c2&lt;/a&gt; &lt;br/&gt;
sanity test_241 hits this a little more regularly &lt;a href=&quot;https://testing.hpdd.intel.com/sub_tests/79078936-d8e1-11e5-83e2-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/sub_tests/79078936-d8e1-11e5-83e2-5254006e85c2&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;The error comes from a call to  &apos;cancel_lru_locks osc&apos;. From tests/test-framework.sh, we see&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;cancel_lru_locks() {
#$LCTL mark &quot;cancel_lru_locks $1 start&quot;
$LCTL set_param -n ldlm.namespaces.*$1*.lru_size=clear
$LCTL get_param ldlm.namespaces.*$1*.lock_unused_count | grep -v &apos;=0&apos;
#$LCTL mark &quot;cancel_lru_locks $1 stop&quot;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It&apos;s not clear what is causing this error. Since this error does not cause the test to fail, it&apos;s hard to find other occurrences of this error and when it first started. &lt;/p&gt;</description>
                <environment>autotest and manual testing</environment>
        <key id="34847">LU-7802</key>
            <summary>set_param lru_size fails with &apos;error: set_param: setting /proc/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-*/lru_size=clear: Invalid argument&apos;</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</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="paf">Patrick Farrell</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 22 Feb 2016 17:24:26 +0000</created>
                <updated>Tue, 24 Oct 2017 21:38:54 +0000</updated>
                            <resolved>Fri, 22 Sep 2017 12:54:04 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                    <version>Lustre 2.10.0</version>
                    <version>Lustre 2.10.1</version>
                    <version>Lustre 2.11.0</version>
                                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="143226" author="green" created="Mon, 22 Feb 2016 18:20:23 +0000"  >&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (strncmp(dummy, &lt;span class=&quot;code-quote&quot;&gt;&quot;clear&quot;&lt;/span&gt;, 5) == 0) {
                CDEBUG(D_DLMTRACE,
                       &lt;span class=&quot;code-quote&quot;&gt;&quot;dropping all unused locks from namespace %s\n&quot;&lt;/span&gt;,
                       ldlm_ns_name(ns));
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ns_connect_lru_resize(ns)) {
                        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; canceled, unused  = ns-&amp;gt;ns_nr_unused;

                        &lt;span class=&quot;code-comment&quot;&gt;/* Try to cancel all @ns_nr_unused locks. */&lt;/span&gt;
                        canceled = ldlm_cancel_lru(ns, unused, 0,
                                                   LDLM_LRU_FLAG_PASSED);
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (canceled &amp;lt; unused) {
                                CDEBUG(D_DLMTRACE,
                                       &lt;span class=&quot;code-quote&quot;&gt;&quot;not all requested locks are canceled, &quot;&lt;/span&gt;
                                       &lt;span class=&quot;code-quote&quot;&gt;&quot;requested: %d, canceled: %d\n&quot;&lt;/span&gt;, unused,
                                       canceled);
                                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -EINVAL;
                        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This seems racy and perhaps there were other cancellers in parallel or something? Probaly need to revisit taht code?&lt;/p&gt;</comment>
                            <comment id="184243" author="simmonsja" created="Thu, 9 Feb 2017 23:03:44 +0000"  >&lt;p&gt;With the migration to sysfs I can take a look at it.&lt;/p&gt;</comment>
                            <comment id="189778" author="sarah" created="Mon, 27 Mar 2017 18:12:40 +0000"  >&lt;p&gt;another instance on master branch: &lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/b24483ae-0a02-11e7-9053-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/b24483ae-0a02-11e7-9053-5254006e85c2&lt;/a&gt;&lt;br/&gt;
tag-2.9.54 server: el7 client: sles12sp2&lt;/p&gt;</comment>
                            <comment id="202193" author="bogl" created="Fri, 14 Jul 2017 21:02:19 +0000"  >&lt;p&gt;another on master:&lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/76d956d6-68d6-11e7-baf7-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/76d956d6-68d6-11e7-baf7-5254006e85c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="203817" author="jamesanunez" created="Fri, 28 Jul 2017 19:38:27 +0000"  >&lt;p&gt;It looks like sanity test 101g also suffers from this issue and, from the test log, fails with&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;...
error: set_param: setting /sys/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-ffff880068917800/lru_size=clear: Invalid argument
ldlm.namespaces.lustre-OST0000-osc-ffff880068917800.lock_unused_count=1
10+0 records in
10+0 records out
41943040 bytes (42 MB) copied, 0.00800729 s, 5.2 GB/s
 sanity test_101g: @@@@@@ FAIL: 0 != 10 read RPCs 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Logs are at: &lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/1e288200-7281-11e7-a0a2-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/1e288200-7281-11e7-a0a2-5254006e85c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="204649" author="bogl" created="Mon, 7 Aug 2017 14:09:16 +0000"  >&lt;p&gt;another on master:&lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/5e303066-7aef-11e7-9b8f-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/5e303066-7aef-11e7-9b8f-5254006e85c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="205331" author="simmonsja" created="Mon, 14 Aug 2017 16:13:56 +0000"  >&lt;p&gt;Removed &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8066&quot; title=&quot;Move lustre procfs handling to sysfs and debugfs.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8066&quot;&gt;LU-8066&lt;/a&gt; link since this is a race condition and not a sysfs issue. What I do see is a potential patch from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8276&quot; title=&quot;Make lru clear always discard read lock pages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8276&quot;&gt;&lt;del&gt;LU-8276&lt;/del&gt;&lt;/a&gt; that might fix this issue. I added a link to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8276&quot; title=&quot;Make lru clear always discard read lock pages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8276&quot;&gt;&lt;del&gt;LU-8276&lt;/del&gt;&lt;/a&gt; to here.&lt;/p&gt;</comment>
                            <comment id="205414" author="sguminsx" created="Tue, 15 Aug 2017 10:51:25 +0000"  >&lt;p&gt;Another on master:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://testing.hpdd.intel.com/test_sessions/d7870a08-73b3-4f95-898b-f4f0908c9214&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sessions/d7870a08-73b3-4f95-898b-f4f0908c9214&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="205454" author="paf" created="Tue, 15 Aug 2017 17:59:04 +0000"  >&lt;p&gt;This isn&apos;t racy so much as just wrong.  Sometimes locks are in use, so we don&apos;t cancel them.  That&apos;s intended behavior.&lt;/p&gt;

&lt;p&gt;The fix for this is just not to return -EINVAL.  This isn&apos;t a condition that should generate that sort of error.&lt;/p&gt;

&lt;p&gt;I&apos;ll push a patch.&lt;/p&gt;</comment>
                            <comment id="205465" author="gerrit" created="Tue, 15 Aug 2017 20:27:52 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/28560&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28560&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7802&quot; title=&quot;set_param lru_size fails with &amp;#39;error: set_param: setting /proc/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-*/lru_size=clear: Invalid argument&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7802&quot;&gt;&lt;del&gt;LU-7802&lt;/del&gt;&lt;/a&gt; ldlm: No -EINVAL for lock in use&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 70b92f98c56a128894009aa608dcfa589836fe47&lt;/p&gt;</comment>
                            <comment id="206226" author="bogl" created="Thu, 24 Aug 2017 08:36:10 +0000"  >&lt;p&gt;another on master:&lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/f5187be6-8878-11e7-b3ca-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/f5187be6-8878-11e7-b3ca-5254006e85c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="206907" author="sbuisson" created="Wed, 30 Aug 2017 06:29:24 +0000"  >&lt;p&gt;another on master:&lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/40e74f6a-8cb2-11e7-b4ee-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/40e74f6a-8cb2-11e7-b4ee-5254006e85c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="208257" author="gerrit" created="Wed, 13 Sep 2017 15:52:15 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/28975&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28975&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7802&quot; title=&quot;set_param lru_size fails with &amp;#39;error: set_param: setting /proc/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-*/lru_size=clear: Invalid argument&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7802&quot;&gt;&lt;del&gt;LU-7802&lt;/del&gt;&lt;/a&gt; ldlm: No -EINVAL for lock in use&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 01add10e6eab833054fb232d9e12cb48b5a63301&lt;/p&gt;</comment>
                            <comment id="209225" author="gerrit" created="Fri, 22 Sep 2017 06:19:31 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/28560/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28560/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7802&quot; title=&quot;set_param lru_size fails with &amp;#39;error: set_param: setting /proc/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-*/lru_size=clear: Invalid argument&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7802&quot;&gt;&lt;del&gt;LU-7802&lt;/del&gt;&lt;/a&gt; ldlm: No -EINVAL for canceled != unused&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a5081b7362e44b8d38aee1112f9a7d3aae1642c0&lt;/p&gt;</comment>
                            <comment id="209273" author="pjones" created="Fri, 22 Sep 2017 12:54:04 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="211872" author="gerrit" created="Tue, 24 Oct 2017 21:22:52 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/28975/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28975/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7802&quot; title=&quot;set_param lru_size fails with &amp;#39;error: set_param: setting /proc/fs/lustre/ldlm/namespaces/lustre-OST0000-osc-*/lru_size=clear: Invalid argument&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7802&quot;&gt;&lt;del&gt;LU-7802&lt;/del&gt;&lt;/a&gt; ldlm: No -EINVAL for canceled != unused&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9a38fcb07dadc6f6b4c55e24feae004175c906e9&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="33164">LU-7437</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="34789">LU-7796</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="45826">LU-9438</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="37586">LU-8276</issuekey>
        </issuelink>
                            </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|hzy24n:</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>
                                                                                            <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>