forked from ALHP/ALHP.GO
added more renice
This commit is contained in:
4
main.go
4
main.go
@@ -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)
|
||||||
|
Reference in New Issue
Block a user