[mythtv-commits] Ticket #2194: Patch to randomise mythfilldatabase times
MythTV
mythtv at cvs.mythtv.org
Thu Aug 17 23:07:15 UTC 2006
#2194: Patch to randomise mythfilldatabase times
------------------------------------------------+---------------------------
Reporter: willu.mailingLists at cse.unsw.edu.au | Owner: ijr
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: mythtv | Version:
Severity: medium |
------------------------------------------------+---------------------------
Currently myth has a housekeeper thread that can run
mythfilldatabase(mfd). It carefully takes a pair of times in the
preferences, and is supposed to be run between those times. And it is -
it is run as soon as the housekeeping thread runs between those times.
For someone who keeps their my box on all the time, this leads to mfd
running in the first 5 minutes of the 'available' time period every day.
The [http://www.tvguide.org.au/ Australian Community TV Guide] was seeing
load spikes in the first five minutes of popular hours.
This patch modifies the housekeeper thread so that it spreads its load.
It will randomise the time it calls mfd. In particular, there is a small
probability that mfd will be called each time the housekeeping thread
wakes up. If mfd hasn't been called by the last 30 mins of the available
window then it is called. The probability of being called is adjusted so
that times are spread over the entire time range.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2194>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list