all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Default autogroup niceness of Guix build daemon
@ 2020-01-25 22:30 J. R. Haigh (re. Guix)
  2020-01-27 17:37 ` Giovanni Biscuolo
  0 siblings, 1 reply; 3+ messages in thread
From: J. R. Haigh (re. Guix) @ 2020-01-25 22:30 UTC (permalink / raw)
  To: help-guix

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.

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

end of thread, other threads:[~2020-01-28  3:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-25 22:30 Default autogroup niceness of Guix build daemon J. R. Haigh (re. Guix)
2020-01-27 17:37 ` Giovanni Biscuolo
2020-01-28  3:56   ` J. R. Haigh (re. Guix)

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.