Page 1 of 1

Make and nice

Posted: Wed Sep 04, 2019 4:01 am
by KennyB
I don't know that it happens to anyone else, but whenever I scan a large amount of files to my Media Library and have to download metadata for them, the metadata grabbers cause any video that I play in the meantime to hang and stutter. My solution is to add "os.nice 20" right under the definition of the main function so that the processes are launched with a system nice level of 20. Only problem is I often forget that I've updated mythtv and the files are replaced without the niceness adjustment. I was hoping this could be added by default since there doesn't seem to be any reason to NOT run these scripts with a high nice level, especially considering they're background processes.