<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:42:43 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-11303] slow chgrp as user when quotas are enabled</title>
                <link>https://jira.whamcloud.com/browse/LU-11303</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;we have had a user complain that chgrp of a few 1000 file directory tree takes 3x longer than the untar of that data.&lt;/p&gt;

&lt;p&gt;it seems likely that this is due to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5152&quot; title=&quot;Can&amp;#39;t enforce block quota when unprivileged user change group&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5152&quot;&gt;&lt;del&gt;LU-5152&lt;/del&gt;&lt;/a&gt; which AFAICT introduced code that forces a dt_sync for each chgrp as a user.&lt;/p&gt;

&lt;p&gt;is there another way to do this which avoids the dt_sync?&lt;/p&gt;

&lt;p&gt;in my experience most HPC sites use secondary (supplementary) groups extensively so that users can be members of several research projects. for various reasons this results in lots of files created with the wrong group for the file&apos;s location. as root we periodically trawl the filesystem to correct the group ownership of files to match their physical location (ie. poor mans directory/project quotas), but sometimes users still want to change the group ownerships themselves to &quot;do the right thing&quot;, and now this goes a lot slower for them.&lt;/p&gt;

&lt;p&gt;so I suppose your expectation that unpriv users doing chgrp is rare is sort of valid because we do most of it manually and sporadically for them as root, but (again, in my experience) because of extensive use of supplementary groups in HPC, users wanting to do a chgrp is perhaps more common than you might think.&lt;/p&gt;

&lt;p&gt;project quotas would remove most of our reasons for using chgrp but maybe not all. unfortunately we aren&apos;t likely to try any more new things like project quotas any time soon.&lt;/p&gt;

&lt;p&gt;BTW it would be good to have lustre test users that had secondary groups in order to find problems like this. I don&apos;t see any at the moment. I was looking because I need one to make a regression test case for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11227&quot; title=&quot;client process hangs when lod_sync accesses deactivated OSTs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11227&quot;&gt;&lt;del&gt;LU-11227&lt;/del&gt;&lt;/a&gt; (related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5152&quot; title=&quot;Can&amp;#39;t enforce block quota when unprivileged user change group&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5152&quot;&gt;&lt;del&gt;LU-5152&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;cheers,&lt;br/&gt;
robin&lt;/p&gt;</description>
                <environment></environment>
        <key id="53159">LU-11303</key>
            <summary>slow chgrp as user when quotas are enabled</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="hongchao.zhang">Hongchao Zhang</assignee>
                                    <reporter username="scadmin">SC Admin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 Aug 2018 08:44:19 +0000</created>
                <updated>Tue, 18 Jan 2022 06:41:39 +0000</updated>
                            <resolved>Wed, 25 Aug 2021 14:41:34 +0000</resolved>
                                    <version>Lustre 2.10.4</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>2</votes>
                                    <watches>11</watches>
                                                                            <comments>
                            <comment id="232808" author="adilger" created="Thu, 30 Aug 2018 16:28:23 +0000"  >&lt;p&gt;Robin, do you also have quotas enabled on this filesystem?&lt;/p&gt;</comment>
                            <comment id="232813" author="scadmin" created="Thu, 30 Aug 2018 16:49:08 +0000"  >&lt;p&gt;yes, the big dagg filesystem has group quotas enforcing.&lt;/p&gt;

&lt;p&gt;we have user quotas enforcing on the /home Lustre filesystem. the other 2 small filesystems don&apos;t use quotas (/apps and /images).&lt;/p&gt;

&lt;p&gt;cheers,&lt;br/&gt;
robin&lt;/p&gt;</comment>
                            <comment id="232818" author="pjones" created="Thu, 30 Aug 2018 17:16:48 +0000"  >&lt;p&gt;Hongchao&lt;/p&gt;

&lt;p&gt;Can you please investigate?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="232978" author="gerrit" created="Tue, 4 Sep 2018 10:04:11 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33107&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33107&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11303&quot; title=&quot;slow chgrp as user when quotas are enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11303&quot;&gt;&lt;del&gt;LU-11303&lt;/del&gt;&lt;/a&gt; out: clean up osp_update_rpc_pack() macro&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 95682e519ed2c4e630f4a0ab17265ab91653ed99&lt;/p&gt;</comment>
                            <comment id="233849" author="gerrit" created="Fri, 21 Sep 2018 03:30:49 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33107/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33107/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11303&quot; title=&quot;slow chgrp as user when quotas are enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11303&quot;&gt;&lt;del&gt;LU-11303&lt;/del&gt;&lt;/a&gt; out: clean up osp_update_rpc_pack() macro&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3314af7c7b18bbd60e6a540105fd0ed6d7de6848&lt;/p&gt;</comment>
                            <comment id="233873" author="pjones" created="Fri, 21 Sep 2018 15:16:00 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                            <comment id="234817" author="lflis" created="Fri, 12 Oct 2018 12:59:51 +0000"  >&lt;p&gt;We can confirm the same problem in the: 2.10.5 on the HPC system in CYFRONET&lt;/p&gt;

&lt;p&gt;quota enforcement: enabled&lt;/p&gt;

&lt;p&gt;single chgrp on single file to a secondary group executed by non-root user can take from 10-140 seconds on a busy filesystem.&lt;/p&gt;

&lt;p&gt;chgrp command blocks on&#160; fchownat syscall&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;@Peter Jones: do you plan to include fix for next b2_10 release ( 2.10.6) ?&lt;/p&gt;</comment>
                            <comment id="234829" author="lflis" created="Fri, 12 Oct 2018 14:33:55 +0000"  >&lt;p&gt;@adilger could you please comment if&#160; this patch solves the problem with slow chgrp introduced by &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5152&quot; title=&quot;Can&amp;#39;t enforce block quota when unprivileged user change group&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5152&quot;&gt;&lt;del&gt;LU-5152&lt;/del&gt;&lt;/a&gt; or is it just cosmetic cleanup to drop unknown opcodes in rpc?&lt;/p&gt;

&lt;p&gt;I have backported this patch (&lt;a href=&quot;https://review.whamcloud.com/33107/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33107/&lt;/a&gt;) to b2_10&lt;br/&gt;
but i wanted to be sure it&apos;s&#160; fixing the problem before we go to the production with it&lt;/p&gt;</comment>
                            <comment id="236408" author="adilger" created="Tue, 6 Nov 2018 10:38:22 +0000"  >&lt;p&gt;The landed patch was just a code cleanup and did not address the issue in this ticket.&lt;/p&gt;</comment>
                            <comment id="236409" author="adilger" created="Tue, 6 Nov 2018 11:02:09 +0000"  >&lt;p&gt;I see that patch &lt;a href=&quot;https://review.whamcloud.com/16699&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/16699&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7239&quot; title=&quot;mdd_attr_set() synchronous when it need not be&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7239&quot;&gt;&lt;del&gt;LU-7239&lt;/del&gt;&lt;/a&gt; mdd: make mdd_attr_set() synchronous less often&quot; removes one source of sync operations on the &lt;b&gt;MDS&lt;/b&gt; for chgrp, but does not address the &lt;tt&gt;dt_sync()&lt;/tt&gt; call for chgrp to avoid over-quota on the OSS nodes.&lt;/p&gt;

&lt;p&gt;It possibly makes sense to do a simple check if the user is close to exceeding the quotas before enforcing the sync behaviour (e.g. quota free &amp;gt; file size).  If they are not close to the quota limit there is no need to enforce the sync behaviour.&lt;/p&gt;</comment>
                            <comment id="239587" author="gerrit" created="Wed, 9 Jan 2019 10:26:23 +0000"  >&lt;p&gt;Hongchao Zhang (hongchao@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33996&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33996&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11303&quot; title=&quot;slow chgrp as user when quotas are enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11303&quot;&gt;&lt;del&gt;LU-11303&lt;/del&gt;&lt;/a&gt; quota: enforce block quota for chgrp&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f8cf68fcb0432a9c293f678428e6f4ac6fa53c37&lt;/p&gt;</comment>
                            <comment id="240393" author="gerrit" created="Sat, 19 Jan 2019 12:54:31 +0000"  >&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/33996&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33996&lt;/a&gt; has been updated&lt;/p&gt;</comment>
                            <comment id="311114" author="gerrit" created="Wed, 25 Aug 2021 06:22:44 +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/33996/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33996/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11303&quot; title=&quot;slow chgrp as user when quotas are enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11303&quot;&gt;&lt;del&gt;LU-11303&lt;/del&gt;&lt;/a&gt; quota: enforce block quota for chgrp&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 83f5544d8518ad12ea49e27829fff8f2739b86e2&lt;/p&gt;</comment>
                            <comment id="311150" author="pjones" created="Wed, 25 Aug 2021 14:41:34 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="55777">LU-12351</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="57919">LU-13176</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="57080">LU-12826</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25048">LU-5152</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32416">LU-7239</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="52928">LU-11227</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="57919">LU-13176</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|i001hj:</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>