all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix-daemon hitting systemd TasksMax
@ 2016-04-14 23:37 Joram Schrijver
  2016-04-15 14:35 ` Efraim Flashner
  2016-04-16  1:29 ` Leo Famulari
  0 siblings, 2 replies; 11+ messages in thread
From: Joram Schrijver @ 2016-04-14 23:37 UTC (permalink / raw)
  To: guix-devel

Hi,

In version 228, systemd introduced a unit attribute `TasksMax`[1] that
limits the number of tasks that can run in a unit. It has effect on
kernel versions 4.3 and up, kernel threads and userspace process count
towards the limit, and the default value is 512.

Running `guix pull` without changing any settings crashed for me,
because building/testing texinfo hit this task limit. Increasing it to
1024 using `systemctl set-property guix-daemon.service TasksMax=1024`
fixed the problem.

Because I expect guix-daemon to hit this limit regularly, it might be
wise to set a higher `TasksMax` in the service file itself, perhaps even
`infinity`. Doing this would, sadly, cause older systemd versions
shipped by various distributions to complain about the existence of the
attribute, so perhaps a mention in the manual would instead be enough.


[1]:
https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html#TasksAccounting=

--
  Joram

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

end of thread, other threads:[~2016-04-25 21:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 23:37 guix-daemon hitting systemd TasksMax Joram Schrijver
2016-04-15 14:35 ` Efraim Flashner
2016-04-16  1:29 ` Leo Famulari
2016-04-16 13:12   ` Joram Schrijver
2016-04-16 16:14     ` Leo Famulari
2016-04-16 22:46       ` Ludovic Courtès
2016-04-18 20:33         ` Leo Famulari
2016-04-18 20:42           ` Joram Schrijver
2016-04-19 15:57             ` Ludovic Courtès
2016-04-20  1:20               ` Leo Famulari
2016-04-25 21:37                 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

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.