added more renice

This commit is contained in:
2021-06-14 16:28:00 +02:00
parent 36c6d4a61f
commit 83ec7837cf

View File

@@ -226,6 +226,8 @@ func gitClean(pkg *BuildPackage) {
} }
func (b *BuildManager) buildWorker(id int) { func (b *BuildManager) buildWorker(id int) {
check(syscall.Setpriority(syscall.PRIO_PROCESS, 0, 18))
for { for {
select { select {
case pkg := <-b.toBuild: case pkg := <-b.toBuild:
@@ -647,7 +649,7 @@ func main() {
log.SetLevel(lvl) log.SetLevel(lvl)
journalhook.Enable() journalhook.Enable()
check(syscall.Setpriority(syscall.PRIO_PROCESS, 0, 19)) check(syscall.Setpriority(syscall.PRIO_PROCESS, 0, 5))
err = os.MkdirAll(conf.Basedir.Repo, os.ModePerm) err = os.MkdirAll(conf.Basedir.Repo, os.ModePerm)
check(err) check(err)