All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] improved process management
@ 2016-08-23 11:44 Ed Bartosh
  2016-08-23 11:44 ` [PATCH 1/4] toaster: don't kill toaster on start Ed Bartosh
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ed Bartosh @ 2016-08-23 11:44 UTC (permalink / raw)
  To: toaster

Hi,

This is a set of improvements for process management in toaster script.
It includes a bit of cleanup (first 2 patches) and quite serious changes in
the way toaster script starts and stops runbuild and runserver processes:
 - usage of process groups (PGID) instead of PID
 - usage of pid namespaces http://man7.org/linux/man-pages/man7/pid_namespaces.7.html

Both changes should hopefully make toaster to stop running processes more reliably.

One side effect and a partial reason of this work:
 it should fix #7973: stopping toaster kills ALL django apps running on the machine.

Testing instructions:
 - run toaster
 - run build in Toaster UI
 - wait until you see a lot of build-related processes in 'ps x' output
 - stop toaster. expected outcome: no toaster or build-related processes in 'ps x' output

The following changes since commit 34ccad16d40ec0685f405b8d7116250fb58e323d:

  buildinfohelper: discover kernel artifacts correctly (2016-08-23 14:29:32 +0300)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib ed/toaster/kill-toaster-pid-namespace-7973
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/kill-toaster-pid-namespace-7973

Ed Bartosh (4):
  toaster: don't kill toaster on start
  toaster: remove handling of .toasterui.pid
  toaster: use process group id to kill processes
  toaster: run builds in pid namespace

 bitbake/bin/toaster | 48 ++++++++++++++++--------------------------------
 1 file changed, 16 insertions(+), 32 deletions(-)

--
Regards,
Ed



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

end of thread, other threads:[~2016-08-23 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 11:44 [PATCH 0/4] improved process management Ed Bartosh
2016-08-23 11:44 ` [PATCH 1/4] toaster: don't kill toaster on start Ed Bartosh
2016-08-23 11:44 ` [PATCH 2/4] toaster: remove handling of .toasterui.pid Ed Bartosh
2016-08-23 11:44 ` [PATCH 3/4] toaster: use process group id to kill processes Ed Bartosh
2016-08-23 11:44 ` [PATCH 4/4] toaster: run builds in pid namespace Ed Bartosh

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.