From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. R. Haigh (re. Guix)" Subject: Default autogroup niceness of Guix build daemon Date: Sat, 25 Jan 2020 22:30:16 +0000 Message-ID: <20200125223016.39ce19c7@jrhaighs-debian-x200> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42841) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivTwj-0003ya-Nn for help-guix@gnu.org; Sat, 25 Jan 2020 17:30:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivTwi-0000uK-5b for help-guix@gnu.org; Sat, 25 Jan 2020 17:30:29 -0500 Received: from aibo.runbox.com ([91.220.196.211]:43182) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivTwh-0000q4-LR for help-guix@gnu.org; Sat, 25 Jan 2020 17:30:28 -0500 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Hi all, I've been using Guix on Debian 9 Stretch for a few months, now. Besides va= rious build failures, one of the worst issues is hogging of the CPU, making= the rest of my system almost unusable for several hours (or sometimes even= days), depending on the builds. If builds don't finish over night then I h= ave had to SIGSTOP the builds in order to use my laptop, and SIGCONT them w= hen idle again. Today, however, I've found a partial solution, after realising why setting= process niceness to 19 does not fix the problem on my system; instead of t= he process niceness, changing the /autogroup/ niceness to 19 by issu=C3=AFn= g the following command: $ (for P in $(ps --group=3D"guixbuild" --format=3D"pid=3D"); do F=3D"/proc/= $P/autogroup"; echo "$F"; cat "$F" && sudo tee "$F" <<<19; done) /proc/30487/autogroup /autogroup-10675 nice 0 19 /proc/30537/autogroup /autogroup-10679 nice 0 19 =E2=80=A6completely removes the lag caused by any processes in the =E2=80= =98guixbuild=E2=80=99 usergroup, and allows my system to be usable for inte= ractive work simultaneously with the build!!! This is great, but it only la= sts as long as the build, and subsequent builds default to autogroup nicene= ss 0, which is really not very nice!! I'd rather not run the above command = in a loop, hence the question=E2=80=A6 Is there a way to declaratively set the default autogroup niceness of Guix= 's build daemon? Regards, James R. Haigh. P.s.: Although I've been on this list for just under a year, this is my fir= st email to the list =E2=80=93 hi everyone! Maybe see you again at FOSDEM 2= 020. --=20 6 days, 10 hours, and 30 minutes left until FOSDEM 2020 (Saturday)! 7 days, 10 hours, and 30 minutes left until FOSDEM 2020 (Sunday)! Wealth doesn't bring happiness, but poverty brings sadness. https://wiki.FSFE.org/Fellows/JRHaigh Sent from Debian with Claws Mail, using email subaddressing as an alternati= ve to error-prone heuristical spam filtering.