From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joram Schrijver Subject: guix-daemon hitting systemd TasksMax Date: Fri, 15 Apr 2016 01:37:32 +0200 Message-ID: <1460677052.2416958.579259849.502AC954@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqqpP-00066t-6y for guix-devel@gnu.org; Thu, 14 Apr 2016 19:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqqpL-00029Z-0p for guix-devel@gnu.org; Thu, 14 Apr 2016 19:37:39 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:46836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqqpK-00029V-Pc for guix-devel@gnu.org; Thu, 14 Apr 2016 19:37:34 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 0D15120486 for ; Thu, 14 Apr 2016 19:37:33 -0400 (EDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org 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