I've always wanted an option for genkernel that is roughly equivalent to the PORTAGE_NICENESS variable in /etc/make.conf that affects the priority of the kernel make, so here it is. In keeping with genkernel's command line philosophy of allowing almost anything that can be put in the config file to be overridden on the command line, I created a --nice command line option that can take three forms: --nice Specifies a default niceness level of 10. --nice=n Specifies a niceness level 0 - 19. --no-nice Runs kernel make at full user priority. There's a corresponding genkernel.conf option named NICE that specifies the niceness level in the absence of a command line override. The man page has also been updated to include the new commands. I also found and corrected some inconsistent boldfacing in the sub-headings. Finally, I did some minor cruft removal and style tweaks in genkernel. - John
This patch is additive to the enhancement patch I submitted in bug #320059. - John
Created attachment 232801 [details, diff] Patch implements the described enhancements. And here's the patch. - John
PS: Adding keyword "Inclusion" and "[patch] " prefix to better show this bug's nature in searches...
John, are you still interested in getting this patch applied? What advantages do you see over putting the whole genkernel process behind nice?
Yes I would. Although I see your point, I think of it as a useful configuration default.
(In reply to Sebastian Pipping from comment #4) > John, are you still interested in getting this patch applied? > What advantages do you see over putting the whole genkernel process behind > nice? Advantage: I don't need to worry, genkernel will do the right thing and run niced, even if I'm a forgetful person. I would like to have this feature, I've found it difficult to balance the amount of threads vs. system load, niceness is a lot easier to calibrate.
This is merged in master Git now.