Opened 11 years ago
Closed 11 years ago
Last modified 11 years ago
#11147 closed Bug Report - General (fixed)
MythArchive ought to run at lower priority
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | Plugin - MythArchive | Version: | 0.25-fixes |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
I used to run a patched version of mythburn.py. Some of the patches applied ionice -c3 to most system calls. I haven't converted all those patches to 0.25+, and now keyboard response is often very sluggish although recording and playback seem ok. Now that #11026 is fixed, MythArchive? might be another candidate for treatment. Probably shouldn't be applied to actual DVD burning, though. I use k3b for that.
Change History (5)
Note: See
TracTickets for help on using
tickets.
I've added this at the end of the import section in mythburn.py and responses feel sharper; I'm still seeing 'TFW took a long time' when recording while running MythArchive? but it doesn't seem to result in failed or corrupt recordings. I suspect that it would improve matters further if disk-intensive activities such as remuxing used different spindles for source and destination but I haven't yet tried scripting that here.
import psutil
p = psutil.Process(os.getpid())
p.set_ionice(psutil.IOPRIO_CLASS_IDLE)
In Fedora psutil is in the python-psutil package.