Open carlosvsilva opened 3 years ago
I second this. Some other scripts already do it and feels smooth to use the computer while plotting.
Sorry, but this is a Windows Task Manager option, not available to the programming API I am using.
And in Linux, doesn't it work? I guess there must be some kind of way to specifiy it. Last resort, just invoking "nice chia
I'm not super familiar with process priorities but I found this thread which is for linux. And the documentation of the same thing for Windows.
cmd := exec.Command("chia", args...)
# linux
err = syscall.Setpriority(cmd.Process.id, who int, prio int)
# windows
err = windows.SetPriorityClass(process handle, priorityClass uint32)
Not sure if syscall.Setpriority
works for Mac OS or not.
Hi. I'm using chia under plotng on a desktop machine, and would welcome an option in config file to give a "nice" priority to chia processes, so that they won't be as heavy penalizers and impact interactive GUI sessions as much. Can you please add this option for a "nice" value (i think they go from 19 to -20), 19 the lowest, and -20 the highest. I'd like to set all chia plotting processes to something like 10 so that the normal 0 priority processes don't get bogged by Chia.
Thanks