<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:26:23 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-9458] LustreError: 12764:0:(sec_bulk.c:188:enc_pools_release_free_pages()) ASSERTION( npages &lt;= page_pools.epp_free_pages ) failed:</title>
                <link>https://jira.whamcloud.com/browse/LU-9458</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;On mount:&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;[248586.498989] Lustre: Lustre: Build Version: 2.9.56_82_g0eff453
[248586.559319] LNet: Added LNI 192.168.122.121@tcp [8/256/0/180]
[248586.559412] LNet: Accept secure, port 988
[248586.741706] Lustre: Echo OBD driver; http://www.lustre.org/
[248587.766363] LDISKFS-fs (loop0): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[248588.072575] LDISKFS-fs (loop0): file extents enabled, maximum tree depth=5
[248588.074580] LDISKFS-fs (loop0): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[248588.446477] LDISKFS-fs (loop0): file extents enabled, maximum tree depth=5
[248588.448298] LDISKFS-fs (loop0): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[248589.577659] LDISKFS-fs (loop0): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[248589.597799] LDISKFS-fs (loop0): mounted filesystem with ordered data mode. Opts: user_xattr,errors=remount-ro,no_mbcache,nodelalloc
[248589.620201] Lustre: MGS: Connection restored to 79c760f4-6c2d-891b-1d76-5801427fe973 (at 0@lo)
[248589.641150] LustreError: 12764:0:(sec_bulk.c:188:enc_pools_release_free_pages()) ASSERTION( npages &amp;lt;= page_pools.epp_free_pages ) failed:
[248589.654676] LustreError: 12764:0:(sec_bulk.c:188:enc_pools_release_free_pages()) LBUG
[248589.663682] Pid: 12764, comm: mount.lustre
[248589.663684]
                Call Trace:
[248589.663709]  [&amp;lt;ffffffffa05a47ee&amp;gt;] libcfs_call_trace+0x4e/0x60 [libcfs]
[248589.663716]  [&amp;lt;ffffffffa05a487c&amp;gt;] lbug_with_loc+0x4c/0xb0 [libcfs]
[248589.663780]  [&amp;lt;ffffffffa092a9b7&amp;gt;] enc_pools_shrink+0x5e7/0x680 [ptlrpc]
[248589.663787]  [&amp;lt;ffffffff811942b3&amp;gt;] shrink_slab+0x163/0x330
[248589.663791]  [&amp;lt;ffffffff810c1b25&amp;gt;] ? check_preempt_curr+0x85/0xa0
[248589.663794]  [&amp;lt;ffffffff810c1b59&amp;gt;] ? ttwu_do_wakeup+0x19/0xd0
[248589.663798]  [&amp;lt;ffffffff811975b2&amp;gt;] do_try_to_free_pages+0x3c2/0x4e0
[248589.663801]  [&amp;lt;ffffffff811977cc&amp;gt;] try_to_free_pages+0xfc/0x180
[248589.663807]  [&amp;lt;ffffffff81682074&amp;gt;] __alloc_pages_slowpath+0x458/0x725
[248589.663810]  [&amp;lt;ffffffff8118b155&amp;gt;] __alloc_pages_nodemask+0x405/0x420
[248589.663814]  [&amp;lt;ffffffff81683262&amp;gt;] kmalloc_large_node+0x60/0x8d
[248589.663819]  [&amp;lt;ffffffff811dd5e7&amp;gt;] __kmalloc_node+0x247/0x2b0
[248589.663856]  [&amp;lt;ffffffffa06b0599&amp;gt;] ? lprocfs_counter_add+0xf9/0x160 [obdclass]
[248589.663897]  [&amp;lt;ffffffffa0902c15&amp;gt;] ptlrpc_alloc_rqbd+0xd5/0x580 [ptlrpc]
[248589.663936]  [&amp;lt;ffffffffa090319d&amp;gt;] ptlrpc_grow_req_bufs+0xdd/0x280 [ptlrpc]
[248589.663979]  [&amp;lt;ffffffffa0903654&amp;gt;] ptlrpc_service_part_init+0x314/0x680 [ptlrpc]
[248589.664037]  [&amp;lt;ffffffffa0908907&amp;gt;] ptlrpc_register_service+0x337/0xe60 [ptlrpc]
[248589.664063]  [&amp;lt;ffffffffa0f221dc&amp;gt;] mds_start_ptlrpc_service+0x41c/0xbb0 [mdt]
[248589.664077]  [&amp;lt;ffffffffa0f22a84&amp;gt;] mds_device_alloc+0x114/0x290 [mdt]
[248589.664106]  [&amp;lt;ffffffffa06b9944&amp;gt;] obd_setup+0x114/0x2a0 [obdclass]
[248589.664130]  [&amp;lt;ffffffffa06bcdc4&amp;gt;] class_setup+0x2f4/0x8d0 [obdclass]
[248589.664153]  [&amp;lt;ffffffffa06c0f92&amp;gt;] class_process_config+0x1d12/0x2b80 [obdclass]
[248589.664176]  [&amp;lt;ffffffffa06b0599&amp;gt;] ? lprocfs_counter_add+0xf9/0x160 [obdclass]
[248589.664199]  [&amp;lt;ffffffffa06ca1d9&amp;gt;] do_lcfg+0x159/0x5d0 [obdclass]
[248589.664221]  [&amp;lt;ffffffffa06caf98&amp;gt;] lustre_start_simple+0x88/0x210 [obdclass]
[248589.664250]  [&amp;lt;ffffffffa06f3542&amp;gt;] server_start_targets+0xac2/0x2a70 [obdclass]
[248589.664291]  [&amp;lt;ffffffffa090def8&amp;gt;] ? ptlrpc_pinger_wake_up+0x28/0x30 [ptlrpc]
[248589.664330]  [&amp;lt;ffffffffa090e0a7&amp;gt;] ? ptlrpc_pinger_add_import+0x1a7/0x1e0 [ptlrpc]
[248589.664353]  [&amp;lt;ffffffffa06b06c1&amp;gt;] ? lprocfs_counter_sub+0xc1/0x130 [obdclass]
[248589.664375]  [&amp;lt;ffffffffa06cb32d&amp;gt;] ? lustre_start_mgc+0x20d/0x2780 [obdclass]
[248589.664399]  [&amp;lt;ffffffffa06f657d&amp;gt;] server_fill_super+0x108d/0x184a [obdclass]
[248589.664421]  [&amp;lt;ffffffffa06ce348&amp;gt;] lustre_fill_super+0x328/0x950 [obdclass]
[248589.664442]  [&amp;lt;ffffffffa06ce020&amp;gt;] ? lustre_fill_super+0x0/0x950 [obdclass]
[248589.664447]  [&amp;lt;ffffffff81201b1d&amp;gt;] mount_nodev+0x4d/0xb0
[248589.664488]  [&amp;lt;ffffffffa06c5af8&amp;gt;] lustre_mount+0x38/0x60 [obdclass]
[248589.664492]  [&amp;lt;ffffffff812024c9&amp;gt;] mount_fs+0x39/0x1b0
[248589.664497]  [&amp;lt;ffffffff8121e25f&amp;gt;] vfs_kern_mount+0x5f/0xf0
[248589.664500]  [&amp;lt;ffffffff812207be&amp;gt;] do_mount+0x24e/0xaa0
[248589.664504]  [&amp;lt;ffffffff81185a7e&amp;gt;] ? __get_free_pages+0xe/0x50
[248589.664507]  [&amp;lt;ffffffff812210a6&amp;gt;] SyS_mount+0x96/0xf0
[248589.664512]  [&amp;lt;ffffffff81696d49&amp;gt;] system_call_fastpath+0x16/0x1b
[248589.664514]
[248589.664516] Kernel panic - not syncing: LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I am suspicious of the following from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3308&quot; title=&quot;large readdir chunk size slows unlink/&amp;quot;rm -r&amp;quot; performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3308&quot;&gt;LU-3308&lt;/a&gt;.&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;@@ -242,7 +242,7 @@ static unsigned long enc_pools_shrink_count(struct shrinker *s,
        }
 
        LASSERT(page_pools.epp_idle_idx &amp;lt;= IDLE_IDX_MAX);
-       return max((int)page_pools.epp_free_pages - PTLRPC_MAX_BRW_PAGES, 0) *
+       return max(page_pools.epp_free_pages - PTLRPC_MAX_BRW_PAGES, 0UL) *
                (IDLE_IDX_MAX - page_pools.epp_idle_idx) / IDLE_IDX_MAX;
 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;tt&gt;page_pools.epp_free_pages - PTLRPC_MAX_BRW_PAGES&lt;/tt&gt; is unsigned long and if &lt;tt&gt;val&lt;/tt&gt; is unsigned long then &lt;tt&gt;max(val, 0UL)&lt;/tt&gt; is always equal to &lt;tt&gt;val&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="45890">LU-9458</key>
            <summary>LustreError: 12764:0:(sec_bulk.c:188:enc_pools_release_free_pages()) ASSERTION( npages &lt;= page_pools.epp_free_pages ) failed:</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="bogl">Bob Glossman</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 May 2017 14:53:15 +0000</created>
                <updated>Wed, 17 May 2017 17:40:01 +0000</updated>
                            <resolved>Fri, 12 May 2017 12:40:57 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="194680" author="jhammond" created="Fri, 5 May 2017 15:14:17 +0000"  >&lt;p&gt;And in &lt;tt&gt;enc_pools_shrink_scan()&lt;/tt&gt; we should handle the case that &lt;tt&gt;page_pools.epp_free_pages&lt;/tt&gt; is less than &lt;tt&gt;PTLRPC_MAX_BRW_PAGES&lt;/tt&gt;:&lt;/p&gt;
&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;        sc-&amp;gt;nr_to_scan = min_t(unsigned &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;, sc-&amp;gt;nr_to_scan,
                              page_pools.epp_free_pages - PTLRPC_MAX_BRW_PAGES);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="195157" author="gerrit" created="Tue, 9 May 2017 18:21:41 +0000"  >&lt;p&gt;Bob Glossman (bob.glossman@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/27016&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27016&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9458&quot; title=&quot;LustreError: 12764:0:(sec_bulk.c:188:enc_pools_release_free_pages()) ASSERTION( npages &amp;lt;= page_pools.epp_free_pages ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9458&quot;&gt;&lt;del&gt;LU-9458&lt;/del&gt;&lt;/a&gt; ptlrpc: handle case of epp_free_pages &amp;lt;= PTLRPC_MAX_BRW_PAGES&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6a81c23cd7bc70ae2c8c292c98e6a6b13dc929a2&lt;/p&gt;</comment>
                            <comment id="195294" author="bogl" created="Wed, 10 May 2017 17:11:48 +0000"  >&lt;p&gt;have seen and reproduced this failure on both el7.3 and sles12sp2.&lt;br/&gt;
have also confirmed that the proposed fix makes the issue go away in both environments.&lt;/p&gt;</comment>
                            <comment id="195625" author="gerrit" created="Fri, 12 May 2017 05:07:01 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/27016/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27016/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9458&quot; title=&quot;LustreError: 12764:0:(sec_bulk.c:188:enc_pools_release_free_pages()) ASSERTION( npages &amp;lt;= page_pools.epp_free_pages ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9458&quot;&gt;&lt;del&gt;LU-9458&lt;/del&gt;&lt;/a&gt; ptlrpc: handle case of epp_free_pages &amp;lt;= PTLRPC_MAX_BRW_PAGES&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2da01a984786ef0bc2700530a6f29ea9063362e9&lt;/p&gt;</comment>
                            <comment id="195658" author="pjones" created="Fri, 12 May 2017 12:40:57 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="18787">LU-3308</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="46135">LU-9517</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|hzzc13:</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>