all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "J. R. Haigh (re. Guix)" <JRHaigh+ML.GNU.Guix@Runbox.com>
To: help-guix@gnu.org
Subject: Default autogroup niceness of Guix build daemon
Date: Sat, 25 Jan 2020 22:30:16 +0000	[thread overview]
Message-ID: <20200125223016.39ce19c7@jrhaighs-debian-x200> (raw)

Hi all,
	I've been using Guix on Debian 9 Stretch for a few months, now. Besides various 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 have had to SIGSTOP the builds in order to use my laptop, and SIGCONT them when 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 the process niceness, changing the /autogroup/ niceness to 19 by issuïng the following command:

$ (for P in $(ps --group="guixbuild" --format="pid="); do F="/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

…completely removes the lag caused by any processes in the ‘guixbuild’ usergroup, and allows my system to be usable for interactive work simultaneously with the build!!! This is great, but it only lasts as long as the build, and subsequent builds default to autogroup niceness 0, which is really not very nice!! I'd rather not run the above command in a loop, hence the question…
	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 first email to the list – hi everyone! Maybe see you again at FOSDEM 2020.
-- 
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 alternative to error-prone heuristical spam filtering.

             reply	other threads:[~2020-01-25 22:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-25 22:30 J. R. Haigh (re. Guix) [this message]
2020-01-27 17:37 ` Default autogroup niceness of Guix build daemon Giovanni Biscuolo
2020-01-28  3:56   ` J. R. Haigh (re. Guix)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200125223016.39ce19c7@jrhaighs-debian-x200 \
    --to=jrhaigh+ml.gnu.guix@runbox.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.