[OE-core] oe-init-build-env slowdown: chmod -R

Jussi Kukkonen jussi.kukkonen at intel.com
Fri Sep 4 07:18:37 UTC 2015


On 4 September 2015 at 09:42, Patrick Ohly <patrick.ohly at intel.com> wrote:

> Hello!
>
> The following commit introduced a "chmod -R -st" on the build dir:
>
> commit f0d3587706fffdcc1c708013f6d6ce296dfc5f24
> Author: Alex Franco <alejandro.franco at linux.intel.com>
> Date:   Fri Aug 28 17:34:04 2015 -0500
>
>     Fix mode +st on TMPDIR when creating it
>
>     A sanity check fails when TMPDIR has setuid, setgid set. It was
>     proposed to fix this on TMPDIR creation instead of failing with
>     a sanity test only. This patch handles removal of those special
>     bits (and additonally, the sticky bit) from BUILDDIR and TMPDIR
>     when these directories are created.
>
> In my case (*), that chmod takes about 2 minutes to complete. strace
> shows that it does a fchmodat on all files, even if nothing needs to be
> changed. atop then shows that this keeps the disk 100% busy with writes.
> I don't know what gets written (can't be the access time, I tried
> mounting with noatime).
>
> Are others seeing the same behavior? I can't rule out that my disk is
> just slow due to fragmentation.
>

 d8caef4f6 in master should fix this (and yes it was a problem elsewhere
too -- an autobuilder was seen spending 12 minutes on that).

Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150904/47d01b40/attachment-0002.html>


More information about the Openembedded-core mailing list