Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#11147 closed Bug Report - General (fixed)

MythArchive ought to run at lower priority

Reported by: J.Pilk@… Owned by: Paul Harrison <pharrison@…>
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)

comment:1 Changed 7 years ago by J.Pilk@…

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.

comment:2 Changed 7 years ago by paulh

Component: MythTV - GeneralPlugin - MythArchive

comment:3 Changed 6 years ago by Paul Harrison <pharrison@…>

Owner: set to Paul Harrison <pharrison@…>
Resolution: fixed
Status: newclosed

In d57da71c6ef266269044616ccc4782485985cb68/mythtv:

MythArchive?: Set the ionice level to idle

If the psutil python module is available lower the ionice level of the
mythburn.py script. Fixes #11147.

comment:4 Changed 6 years ago by Paul Harrison <pharrison@…>

In b24c7df798ac08b604ad2f2ee577d2622d3b9cf4/mythtv:

MythArchive?: Set the ionice level to idle

If the psutil python module is available lower the ionice level of the
mythburn.py script. Fixes #11147.

(cherry picked from commit d57da71c6ef266269044616ccc4782485985cb68)

comment:5 Changed 6 years ago by paulh

Milestone: unknown0.27
Note: See TracTickets for help on using tickets.