<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:02: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-13594] register OOM callback in Lustre</title>
                <link>https://jira.whamcloud.com/browse/LU-13594</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It would be useful to register an OOM callback in Lustre using &lt;tt&gt;register_oom_notifier()&lt;/tt&gt; (and deregister at shutdown with &lt;tt&gt;unregister_oom_notifier()&lt;/tt&gt;, firstly in libcfs and obdclass to print the current &lt;tt&gt;libcfs_kmemory&lt;/tt&gt; and &lt;tt&gt;memused_show()&lt;/tt&gt;/&lt;tt&gt;memused_max_show()&lt;/tt&gt;, as well as potentially trying to shrink caches (e.g. the number of LNet message buffers, debug logs, etc.) before a userspace process is killed.&lt;/p&gt;</description>
                <environment></environment>
        <key id="59309">LU-13594</key>
            <summary>register OOM callback in Lustre</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="4" iconUrl="https://jira.whamcloud.com/images/icons/statuses/reopened.png" description="This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.">Reopened</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="eaujames">Etienne Aujames</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Fri, 22 May 2020 22:29:20 +0000</created>
                <updated>Wed, 22 Jun 2022 19:38:37 +0000</updated>
                                            <version>Lustre 2.14.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="295594" author="gerrit" created="Sun, 21 Mar 2021 09:52:30 +0000"  >&lt;p&gt;Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/42121&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/42121&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13594&quot; title=&quot;register OOM callback in Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13594&quot;&gt;LU-13594&lt;/a&gt; obdclass: Add OOM handler for obdclass&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2e61cf0c6c84608ea583ce342270746c84de7b69&lt;/p&gt;</comment>
                            <comment id="323957" author="gerrit" created="Wed, 26 Jan 2022 05:14:38 +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/42121/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/42121/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13594&quot; title=&quot;register OOM callback in Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13594&quot;&gt;LU-13594&lt;/a&gt; obdclass: Add OOM handler for obdclass&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 54d4cca6cb0c92a09b364974438d91d4331a036f&lt;/p&gt;</comment>
                            <comment id="324007" author="pjones" created="Wed, 26 Jan 2022 14:24:34 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="338404" author="adilger" created="Wed, 22 Jun 2022 18:08:32 +0000"  >&lt;p&gt;I&apos;ve seen this  callback a few times recently, running &lt;a href=&quot;https://testing.whamcloud.com/search?horizon=2332800&amp;amp;status%5B%5D=CRASH&amp;amp;test_set_script_id=570ba67a-4a46-11e0-a7f6-52540025f9af&amp;amp;sub_test_script_id=c8c35916-ad31-48df-b959-1a050638b897&amp;amp;source=sub_tests#redirect&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sanityn test_56 on ZFS&lt;/a&gt; but the current code just prints a brief message without much context and does nothing else:&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;[16506.409968] obd_memory max: 200336259, obd_memory current: 200336259
[16506.975974] obd_memory max: 200416739, obd_memory current: 200416739
[16507.013294] obd_memory max: 200416739, obd_memory current: 200416739
[16507.020553] obd_memory max: 200416739, obd_memory current: 200416739
[16507.035227] obd_memory max: 200416739, obd_memory current: 200416739
[16507.218562] obd_memory max: 200471595, obd_memory current: 200471595
[16507.224060] obd_memory max: 200471595, obd_memory current: 200471595
[16507.226494] obd_memory max: 200471595, obd_memory current: 200471595
[16507.229583] obd_memory max: 200471595, obd_memory current: 200471595
[16507.231476] obd_memory max: 200471595, obd_memory current: 200471595
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It would be better if this message was prefixed with &quot;{{Lustre: OOM handler: }}&quot; to give some context to what it means.&lt;/p&gt;

&lt;p&gt;Secondly, having the handler itself at least provides some minimal information (Lustre memory usage is 200MB in this case, on a 3GB VM, not including LNet memory usage which should also be printed).&lt;/p&gt;

&lt;p&gt;It would be better if this callback actually tried to do something useful under memory pressure.  Possible candidates would be:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;reduce number of server threads to free per-thread allocations&lt;/li&gt;
	&lt;li&gt;cancel DLM locks on server (see &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6529&quot; title=&quot;Server side lock limits to avoid unnecessary memory exhaustion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6529&quot;&gt;&lt;del&gt;LU-6529&lt;/del&gt;&lt;/a&gt; and related tickets)&lt;/li&gt;
	&lt;li&gt;cancel DLM locks on client (drop LRU completely, if not already done)&lt;/li&gt;
	&lt;li&gt;drop cached pages on client&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="57093">LU-12830</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="62966">LU-14456</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="70842">LU-15963</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|i0114n:</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>