Openembedded Core Discussions
 help / color / mirror / Atom feed
From: <kai.kang@windriver.com>
To: <ross.burton@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: [PATCH 0/1] Replace retry logic in useradd with flock
Date: Mon, 15 Feb 2016 09:59:27 +0800	[thread overview]
Message-ID: <cover.1455501148.git.kai.kang@windriver.com> (raw)

From: Kai Kang <kai.kang@windriver.com>

Hi Ross,

We met problems that useradd fails to add users. I found it a simultaneous issue, so created this patch.

As a comparison of build time:

Without flock:
1
$ time bitbake core-image-minimal

real    38m8.625s
user    318m43.262s
sys     62m47.710s


2
$ time bitbake core-image-sato

real    54m13.065s
user    587m1.386s
sys     122m16.949s



With flock:
1
$ time bitbake core-image-minimal

real    40m55.178s
user    316m26.576s
sys     58m53.322s


2
$ time bitbake core-image-sato

real    55m11.312s
user    580m16.787s
sys     118m16.385s


The following changes since commit 36b43b233c841b3c09fc17e04686b4b758780963:

  lib/oe/terminal: set workdir for konsole terminal (2016-02-14 11:42:19 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib kangkai/flock
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/flock

Kai Kang (1):
  useradd_base.bbclass: fix simultaneous with flock

 meta/classes/useradd.bbclass      |   8 +-
 meta/classes/useradd_base.bbclass | 165 ++++++++++----------------------------
 2 files changed, 48 insertions(+), 125 deletions(-)

-- 
2.6.1



             reply	other threads:[~2016-02-15  2:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15  1:59 kai.kang [this message]
2016-02-15  1:59 ` [PATCH 1/1] useradd_base.bbclass: fix simultaneous with flock kai.kang
2016-02-15 12:31   ` Burton, Ross
2016-02-16  2:14     ` Kang Kai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1455501148.git.kai.kang@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox