<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:27:52 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-2748] OSD uses kmalloc with high order to allocate a keys</title>
                <link>https://jira.whamcloud.com/browse/LU-2748</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;05:34:20:ll_ost_io00_029: page allocation failure. order:8, mode:0x50
05:34:20:Pid: 13919, comm: ll_ost_io00_029 Not tainted 2.6.32-279.19.1.el6_lustre.gc7121e9.x86_64 #1
05:34:20:Call Trace:
05:34:20: [&amp;lt;ffffffff811231ff&amp;gt;] ? __alloc_pages_nodemask+0x77f/0x940
05:34:20: [&amp;lt;ffffffff8115d1a2&amp;gt;] ? kmem_getpages+0x62/0x170
05:34:20: [&amp;lt;ffffffff8115ddba&amp;gt;] ? fallback_alloc+0x1ba/0x270
05:34:20: [&amp;lt;ffffffff8115d80f&amp;gt;] ? cache_grow+0x2cf/0x320
05:34:20: [&amp;lt;ffffffff8115db39&amp;gt;] ? ____cache_alloc_node+0x99/0x160
05:34:20: [&amp;lt;ffffffffa04d8b60&amp;gt;] ? cfs_alloc+0x30/0x60 [libcfs]
05:34:20: [&amp;lt;ffffffff8115e909&amp;gt;] ? __kmalloc+0x189/0x220
05:34:20: [&amp;lt;ffffffffa04d8b60&amp;gt;] ? cfs_alloc+0x30/0x60 [libcfs]
05:34:20: [&amp;lt;ffffffffa0d1c8ae&amp;gt;] ? osd_key_init+0x1e/0x670 [osd_ldiskfs]
05:34:20: [&amp;lt;ffffffffa06643ef&amp;gt;] ? keys_fill+0x6f/0x190 [obdclass]
05:34:20: [&amp;lt;ffffffffa066843b&amp;gt;] ? lu_context_init+0xab/0x260 [obdclass]
05:34:20: [&amp;lt;ffffffffa07f78b3&amp;gt;] ? ptlrpc_main+0x203/0x1870 [ptlrpc]
05:34:20: [&amp;lt;ffffffff810097cc&amp;gt;] ? __switch_to+0x1ac/0x320
05:34:20: [&amp;lt;ffffffffa07f76b0&amp;gt;] ? ptlrpc_main+0x0/0x1870 [ptlrpc]
05:34:20: [&amp;lt;ffffffff8100c0ca&amp;gt;] ? child_rip+0xa/0x20
05:34:20: [&amp;lt;ffffffffa07f76b0&amp;gt;] ? ptlrpc_main+0x0/0x1870 [ptlrpc]
05:34:20: [&amp;lt;ffffffffa07f76b0&amp;gt;] ? ptlrpc_main+0x0/0x1870
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;instead of kmalloc, kmem_cache_alloc should be used to allocate and effectively handle key&apos;s. &lt;/p&gt;</description>
                <environment>maloo</environment>
        <key id="17439">LU-2748</key>
            <summary>OSD uses kmalloc with high order to allocate a keys</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="14521">LU-1431</parent>
                                    <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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="shadow">Alexey Lyashkov</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Feb 2013 13:53:59 +0000</created>
                <updated>Sat, 29 Jan 2022 08:34:07 +0000</updated>
                            <resolved>Mon, 13 May 2013 21:50:02 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="51733" author="shadow" created="Mon, 4 Feb 2013 14:04:12 +0000"  >&lt;p&gt;one more bug in that area.&lt;br/&gt;
4382 static void *osd_key_init(const struct lu_context *ctx,&lt;br/&gt;
4383                           struct lu_context_key *key)&lt;br/&gt;
...&lt;br/&gt;
4391         OBD_ALLOC(info-&amp;gt;oti_it_ea_buf, OSD_IT_EA_BUFSIZE);&lt;/p&gt;

&lt;p&gt;so 1Mb allocation via kmalloc, but for such buffer vmalloc prefered aka cfs_alloc_large.&lt;/p&gt;</comment>
                            <comment id="51826" author="adilger" created="Tue, 5 Feb 2013 18:29:14 +0000"  >&lt;p&gt;There are a number of problems found with PTLRPC_MAX_BRW_SIZE of 32MB that can be fixed relatively easily:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;osd_thread_info.osd_iobuf.dr_blocks[] is 512kB&lt;/li&gt;
	&lt;li&gt;osd_thread_info.osd_iobuf.dr_pages[] is 64kB&lt;/li&gt;
	&lt;li&gt;osd_thread_info.osd_iobuf is only needed for OST_IO_PORTAL and does not need to be allocated for other threads&lt;/li&gt;
	&lt;li&gt;osd_thread_info.oti_created[] is 32kB and is &lt;em&gt;unused&lt;/em&gt; and can be removed&lt;/li&gt;
	&lt;li&gt;oti_thread_info uses OBD_ALLOC() instead of OBD_ALLOC_LARGE()&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;There may be others, but these were obviously apparent at the first glance into the failed allocation paths.&lt;/p&gt;</comment>
                            <comment id="52157" author="adilger" created="Mon, 11 Feb 2013 15:11:42 +0000"  >&lt;p&gt;Probably dr_blocks[] can be reduced in size as well, since we will normally have 4kB blocksize instead of 1kB blocksize, so we don&apos;t need a buffer_head for every 1kB of space.&lt;/p&gt;</comment>
                            <comment id="52175" author="green" created="Mon, 11 Feb 2013 17:21:20 +0000"  >&lt;p&gt;Bandaid patch to just change the allocation to OBD_ALLOC_LARGE is in &lt;a href=&quot;http://review.whamcloud.com/5323&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5323&lt;/a&gt;, this seems to greatly help in my testing.&lt;/p&gt;</comment>
                            <comment id="52429" author="bzzz" created="Fri, 15 Feb 2013 04:37:06 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,5444&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5444&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53850" author="pjones" created="Wed, 13 Mar 2013 01:00:40 +0000"  >&lt;p&gt;As per Oleg, dropping priority for remaining work&lt;/p&gt;</comment>
                            <comment id="53944" author="simmonsja" created="Wed, 13 Mar 2013 16:09:41 +0000"  >&lt;p&gt;I found a bug in &lt;a href=&quot;http://review.whamcloud.com/#change,5444&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5444&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;The rhel6.3 ldiskfs patch ext4-map_inode_page-2.6.18.patch defines ext4_map_inode_page function has having a integer array created need for it function but in fsfilt_ext3.c use call out to this function with&lt;/p&gt;

&lt;p&gt;extern int ext3_map_inode_page(struct inode *inode, struct page *page,&lt;br/&gt;
                               unsigned long *blocks, int create);&lt;/p&gt;

&lt;p&gt;This will crash in a very painful way.&lt;/p&gt;</comment>
                            <comment id="53953" author="simmonsja" created="Wed, 13 Mar 2013 17:50:10 +0000"  >&lt;p&gt;Patch to fix this is at &lt;a href=&quot;http://review.whamcloud.com/#change,5708&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5708&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53954" author="simmonsja" created="Wed, 13 Mar 2013 17:50:10 +0000"  >&lt;p&gt;Patch to fix this is at &lt;a href=&quot;http://review.whamcloud.com/#change,5708&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5708&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="56677" author="bzzz" created="Mon, 22 Apr 2013 13:08:06 +0000"  >&lt;p&gt;should be resolved now?&lt;/p&gt;</comment>
                            <comment id="56679" author="pjones" created="Mon, 22 Apr 2013 14:21:14 +0000"  >&lt;p&gt;Oleg, can your &lt;a href=&quot;http://review.whamcloud.com/#change,5323&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5323&lt;/a&gt; &quot;band aid&quot; patch be abandoned?&lt;/p&gt;</comment>
                            <comment id="58401" author="adilger" created="Mon, 13 May 2013 21:50:02 +0000"  >&lt;p&gt;The &lt;a href=&quot;http://review.whamcloud.com/5444&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5444&lt;/a&gt; patch was landed for 2.4.0, and &lt;a href=&quot;http://review.whamcloud.com/5323&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5323&lt;/a&gt; is no longer needed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="17897">LU-2964</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17522">LU-2791</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17521">LU-2790</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14521">LU-1431</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="17521">LU-2790</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17584">LU-2818</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|hzvijz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6674</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>