<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:00:01 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-13289] cgroup writeback support for Lustre kernel 5.2+ is broken</title>
                <link>https://jira.whamcloud.com/browse/LU-13289</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Since newer kernel no long  export account_page_dirtied()&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;void account_page_dirtied(struct page *page, struct address_space *mapping)
{
        struct inode *inode = mapping-&amp;gt;host;

        trace_writeback_dirty_page(page, mapping);

        if (mapping_cap_account_dirty(mapping)) {
                struct bdi_writeback *wb; 

                inode_attach_wb(inode, page);
                wb = inode_to_wb(inode);

                __inc_lruvec_page_state(page, NR_FILE_DIRTY);
                __inc_zone_page_state(page, NR_ZONE_WRITE_PENDING);
                __inc_node_page_state(page, NR_DIRTIED);
                inc_wb_stat(wb, WB_RECLAIMABLE);
                inc_wb_stat(wb, WB_DIRTIED);
                task_io_account_write(PAGE_SIZE);
                current-&amp;gt;nr_dirtied++;
                this_cpu_inc(bdp_ratelimits);

                mem_cgroup_track_foreign_dirty(page, wb); 
        }                                                                                                                                              
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It looks harder to add Lustre cgourp support for new kernel, as copy function back to Lustre dosen&apos;t work, as there is static bdp_ratelimits in page-writeback.c , aslo potentially, we might call&lt;br/&gt;
__set_page_dirty_nobuffers(), but the problem is Lustre assume page locked, while __set_page_dirty_nobuffers() assume unlocked .&lt;/p&gt;


&lt;p&gt;This looks not easy to be fixed without any upstream linux modifications..&lt;/p&gt;</description>
                <environment></environment>
        <key id="58173">LU-13289</key>
            <summary>cgroup writeback support for Lustre kernel 5.2+ is broken</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="wshilong">Wang Shilong</reporter>
                        <labels>
                    </labels>
                <created>Sat, 22 Feb 2020 15:28:14 +0000</created>
                <updated>Tue, 25 Feb 2020 01:52:58 +0000</updated>
                            <resolved>Tue, 25 Feb 2020 01:52:58 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="263865" author="wshilong" created="Sat, 22 Feb 2020 15:30:16 +0000"  >&lt;p&gt;One of walkaround might be we unlock page before call __set_page_dirty_nobuffers(), but there might be some possible race for this?&lt;/p&gt;</comment>
                            <comment id="263880" author="wshilong" created="Mon, 24 Feb 2020 00:46:14 +0000"  >&lt;p&gt;One of intresting approach could be using kprobe, there is an API kallsyms_lookup_name() to do this, luckily it looks its config is enabled by default.&lt;/p&gt;
</comment>
                            <comment id="263915" author="adilger" created="Mon, 24 Feb 2020 18:23:37 +0000"  >&lt;p&gt;Shilong, can this be resolved by the patch &lt;a href=&quot;https://review.whamcloud.com/37686&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37686&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13288&quot; title=&quot;a performance regression on the single stream write&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13288&quot;&gt;&lt;del&gt;LU-13288&lt;/del&gt;&lt;/a&gt; llite: Re-export account_page_dirtied&lt;/tt&gt;&quot;, or are there more issues related to cgroups that also need to be fixed?&lt;/p&gt;</comment>
                            <comment id="263937" author="wshilong" created="Tue, 25 Feb 2020 01:52:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt;I think patch perfectly solve the problem this ticket try to address.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="58172">LU-13288</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|i00u9r:</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>