linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* systemd KillUserProcesses=yes and btrfs scrub
@ 2016-07-30 20:02 Chris Murphy
  2016-07-31  0:29 ` Chris Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Chris Murphy @ 2016-07-30 20:02 UTC (permalink / raw)
  To: Btrfs BTRFS

Short version: When systemd-logind login.conf KillUserProcesses=yes,
and the user does "sudo btrfs scrub start" in e.g. GNOME Terminal, and
then logs out of the shell, the user space operation is killed, and
btrfs scrub status reports that the scrub was aborted. [1]

I think what's going on is the user space stuff is what's tracking the
status and statistics, so when that process goes to status Z on
logout, all of that accounting stops. But I can't tell if the kernel
scrub code finishes. Those threads continue some time after btrfs user
space process goes Z, but seems like not quite long enough to actually
finish the scrub.

Neither 'btrfs balance &' (I have not tried the background balance
code in progs 4.7) nor 'btrfs replace start' appear to be likewise
affected. The user process remains after logout and the task appears
to complete without problems. So at the moment I'm only thinking scrub
is affected, but I'm not sure why.


[1]
systemd KillUserProcesses=yes and btrfs scrub
https://bugzilla.kernel.org/show_bug.cgi?id=150781


-- 
Chris Murphy

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

end of thread, other threads:[~2016-08-01 19:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-30 20:02 systemd KillUserProcesses=yes and btrfs scrub Chris Murphy
2016-07-31  0:29 ` Chris Murphy
2016-08-01 12:44   ` Austin S. Hemmelgarn
2016-08-01 15:46     ` Chris Murphy
2016-08-01 15:52       ` Chris Murphy
2016-08-01 16:08       ` Austin S. Hemmelgarn
2016-08-01 16:19         ` Chris Murphy
2016-08-01 16:22           ` Chris Murphy
2016-08-01 16:58           ` Austin S. Hemmelgarn
2016-08-01 17:15             ` Chris Murphy
2016-08-01 17:19               ` Austin S. Hemmelgarn
2016-08-01 17:47                 ` Chris Murphy
2016-08-01 18:00                   ` Chris Murphy
2016-08-01 18:43                     ` Chris Murphy
2016-07-31 10:56 ` Gabriel C
2016-07-31 16:58   ` Chris Murphy
2016-08-01  3:33 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).