← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1722481] [NEW] systemd should sync disks, before killing all processes on shutdown

 

Public bug reported:

[Impact]

 * systemd-shutdown binary is executed to complete system shutdown. In
xenial, it calls sync() after killing all processes, and not before
killing them. This means that processes are racing the SIGKILL/TERM
timeouts to sync all IO to disk. To mitigate this race condition, and
make the shutdown process more reliable the sync() should also happen
before process killing spree starts.

[Fix]
Backport upstream commit https://github.com/systemd/systemd/commit/2e79d1828a8da9b3af1b052297e3617905ec94f3


[Test Case]

 * Make sure systems still shuts down, including e.g. root on raid.

[Regression Potential]

 * Shutdowns may appear to be slower due to two sync() calls instead of one
 * However total shutdown time should not be impacted much, as there really should not be much additional IO caused by killing all processes.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: systemd (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Also affects: systemd (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: systemd (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1722481

Title:
  systemd should sync disks, before killing all processes on shutdown

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Xenial:
  New

Bug description:
  [Impact]

   * systemd-shutdown binary is executed to complete system shutdown. In
  xenial, it calls sync() after killing all processes, and not before
  killing them. This means that processes are racing the SIGKILL/TERM
  timeouts to sync all IO to disk. To mitigate this race condition, and
  make the shutdown process more reliable the sync() should also happen
  before process killing spree starts.

  [Fix]
  Backport upstream commit https://github.com/systemd/systemd/commit/2e79d1828a8da9b3af1b052297e3617905ec94f3

  
  [Test Case]

   * Make sure systems still shuts down, including e.g. root on raid.

  [Regression Potential]

   * Shutdowns may appear to be slower due to two sync() calls instead of one
   * However total shutdown time should not be impacted much, as there really should not be much additional IO caused by killing all processes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1722481/+subscriptions


Follow ups