All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Replace retry logic in useradd with flock
@ 2016-02-15  1:59 kai.kang
  2016-02-15  1:59 ` [PATCH 1/1] useradd_base.bbclass: fix simultaneous " kai.kang
  0 siblings, 1 reply; 4+ messages in thread
From: kai.kang @ 2016-02-15  1:59 UTC (permalink / raw)
  To: ross.burton; +Cc: openembedded-core

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-16  2:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15  1:59 [PATCH 0/1] Replace retry logic in useradd with flock kai.kang
2016-02-15  1:59 ` [PATCH 1/1] useradd_base.bbclass: fix simultaneous " kai.kang
2016-02-15 12:31   ` Burton, Ross
2016-02-16  2:14     ` Kang Kai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.