<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:15:28 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-8196] class_handle_init alloates 1.5M</title>
                <link>https://jira.whamcloud.com/browse/LU-8196</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I got this warning on startup from rhel7 kernel (possible due to debug too, I guess):&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;May 23 19:43:15 centos6-0 kernel: ------------[ cut here ]------------
May 23 19:43:15 centos6-0 kernel: WARNING: at include/linux/slab_def.h:131 class_handle_init+0x2d6/0x4b0 [obdclass]()
May 23 19:43:15 centos6-0 kernel: Modules linked in: obdclass(OE+) ksocklnd(OE) lnet(OE) sha512_generic crypto_null libcfs(OE) rpcsec_gss_krb5 syscopyarea sysfillrect sysimgblt ttm ata_generic drm_kms_helper pata_acpi drm ata_piix i2c_piix4 virtio_console serio_raw virtio_balloon pcspkr i2c_core virtio_blk libata floppy nfsd ip_tables
May 23 19:43:15 centos6-0 kernel: CPU: 1 PID: 2911 Comm: insmod Tainted: G           OE  ------------   3.10.0-debug #1
May 23 19:43:15 centos6-0 kernel: Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
May 23 19:43:15 centos6-0 kernel: 0000000000000000 00000000b0550638 ffff8800b07a7c50 ffffffff816fe7c0
May 23 19:43:15 centos6-0 kernel: ffff8800b07a7c88 ffffffff810773e0 ffffffff81c15020 ffff8800a9675940
May 23 19:43:15 centos6-0 kernel: ffffffffa04ef000 0000000000000000 ffffffffa03ad120 ffff8800b07a7c98
May 23 19:43:15 centos6-0 kernel: Call Trace:
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff816fe7c0&amp;gt;] dump_stack+0x19/0x1b
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff810773e0&amp;gt;] warn_slowpath_common+0x70/0xb0
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffffa04ef000&amp;gt;] ? 0xffffffffa04eefff
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff8107752a&amp;gt;] warn_slowpath_null+0x1a/0x20
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffffa03278b6&amp;gt;] class_handle_init+0x2d6/0x4b0 [obdclass]
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffffa04ef000&amp;gt;] ? 0xffffffffa04eefff
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffffa04ef522&amp;gt;] obdclass_init+0x522/0x1000 [obdclass]
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffffa04ef000&amp;gt;] ? 0xffffffffa04eefff
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff810020e8&amp;gt;] do_one_initcall+0xb8/0x230
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff810f3e6e&amp;gt;] load_module+0x138e/0x1bc0
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff8139de20&amp;gt;] ? ddebug_proc_write+0xf0/0xf0
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff810eff23&amp;gt;] ? copy_module_from_fd.isra.40+0x53/0x150
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff810f4876&amp;gt;] SyS_finit_module+0xa6/0xd0
May 23 19:43:15 centos6-0 kernel: [&amp;lt;ffffffff81711809&amp;gt;] system_call_fastpath+0x16/0x1b
May 23 19:43:15 centos6-0 kernel: ---[ end trace 3075995fdee801fd ]---
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;given that smatch complains about &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;/home/green/smt/git/lustre-release/lustre/obdclass/lustre_handles.c:261:9: warning: memset with &lt;span class=&quot;code-object&quot;&gt;byte&lt;/span&gt; count of 1572864
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;That must be it.&lt;br/&gt;
We probably should convert OBD_ALLOC_LARGE to go straight to vmalloc for &amp;gt;128k allocations as opposed to malloc fist since in rhel7 and probably other places it generates a warning:&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;0x308b0 is in class_handle_init (include/linux/slab_def.h:131).
126			&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; i;
127	
128			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!size)
129				&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; ZERO_SIZE_PTR;
130	
131			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (WARN_ON_ONCE(size &amp;gt; KMALLOC_MAX_SIZE))
132				&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; NULL;
133	
134			i = kmalloc_index(size);
135	
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="37168">LU-8196</key>
            <summary>class_handle_init alloates 1.5M</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="bogl">Bob Glossman</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 May 2016 23:49:50 +0000</created>
                <updated>Tue, 14 Jun 2016 22:59:40 +0000</updated>
                            <resolved>Tue, 14 Jun 2016 22:59:40 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="153380" author="pjones" created="Tue, 24 May 2016 17:26:52 +0000"  >&lt;p&gt;Bob&lt;/p&gt;

&lt;p&gt;Could you please address this issue?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="153381" author="adilger" created="Tue, 24 May 2016 17:27:49 +0000"  >&lt;p&gt;OBD_ALLOC_LARGE() should check against KMALLOC_MAX_SIZE, not 128KB.&lt;/p&gt;</comment>
                            <comment id="153390" author="gerrit" created="Tue, 24 May 2016 18:21:34 +0000"  >&lt;p&gt;Bob Glossman (bob.glossman@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20420&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20420&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8196&quot; title=&quot;class_handle_init alloates 1.5M&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8196&quot;&gt;&lt;del&gt;LU-8196&lt;/del&gt;&lt;/a&gt; obd: force very large allocations to use vmalloc&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8caca1cb3e864f111acb562a49683d3da3baeb9c&lt;/p&gt;</comment>
                            <comment id="155628" author="gerrit" created="Tue, 14 Jun 2016 03:55:50 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/20420/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20420/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8196&quot; title=&quot;class_handle_init alloates 1.5M&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8196&quot;&gt;&lt;del&gt;LU-8196&lt;/del&gt;&lt;/a&gt; obd: force very large allocations to use vmalloc&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5b8749c4669e93dcafebc4c93aa1974c96ff43c7&lt;/p&gt;</comment>
                            <comment id="155712" author="jgmitter" created="Tue, 14 Jun 2016 22:59:40 +0000"  >&lt;p&gt;patch has landed to master for 2.9&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzycmn:</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>