2012-11-18 16:52:19.616632 [(7)]: AdvancedCardAllocation.GetAvailableCardsForChannel took 66 msec
#### and a few hours later
2012-11-18 21:05:42.934992 [(23)]: AdvancedCardAllocation.GetAvailableCardsForChannel took 1264 msec
2012-11-18 21:06:38.190851 [(23)]: dvbubmit tunerequest calling put_TuneRequest
2012-11-18 21:06:38.445734 [(23)]: dvbubmit tunerequest done calling put_TuneRequest
2012-11-18 21:06:38.623468 [(23)]: RunGraph
2012-11-18 21:06:38.712336 [(23)]: dvb: LockedInOnSignal ok
2012-11-18 21:06:44.810968 [(23)]: card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo
2012-11-18 21:06:44.898859 [(23)]: card: WaitForTimeShiftFile - video and audio are seen after 0.086914 seconds
@ianc
To me it looks like your problem is HDD or CPU speed/stress. Everything is just generally sluggish without good cause. Check for real-time scanners and HDD free space.
Generally speaking, aside from code efficiency and overall system capability these are the things that determine zap time:
You can monitor (1) by checking the tv.log. In particular, how long does it take to apply the tune request:
- Tuner driver.
- CAM/decryption solution.
- Server CPU load and HDD speed, load, free space and fragmentation.
- Network configuration - firewall, IPv6, wireless/wired, DNS.
- Codecs, GPU and HDD on the client side.
- Zap delay setting.
2012-11-18 21:06:38.190851 [(23)]: dvbubmit tunerequest calling put_TuneRequest
2012-11-18 21:06:38.445734 [(23)]: dvbubmit tunerequest done calling put_TuneRequest
...and how long does it take to start the graph:
2012-11-18 21:06:38.623468 [(23)]: RunGraph
2012-11-18 21:06:38.712336 [(23)]: dvb: LockedInOnSignal ok
For (2), check how long it takes before audio/video is seen:
2012-11-18 21:06:44.810968 [(23)]: card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo
2012-11-18 21:06:44.898859 [(23)]: card: WaitForTimeShiftFile - video and audio are seen after 0.086914 seconds
For (3), look at overall "sluggishness" of the server. If the tuning process doesn't have any unusual delays but everything seems generally slower then this is almost a certain sign of real-time scanning causing problems for the HDD and/or CPU.
For (4), attempt to correlate the MediaPortal.log and tv.log and look for reasonably significant delays that don't have any good justification. This takes a little familiarity with the code and/or tuning process.
(5) is quite subjective. You're basically looking at how long it takes between when the light on the TV button [in the MP UI] turns on and when you start seeing video and hearing audio.
(6) is a setting. If you find working with the remote slow but selecting a channel through the mini-guide fast then the zap delay is to blame.
Of course there are always exceptions.
mm
I don't fully agree. Look at the rest of the tuning process as well and you'll see *everything* becomes more sluggish. The difference is not solely due to the advancedcardallocation function. Example from your first set of logs:mm - The problem is specifically on "AdvancedCardAllocation.GetAvailableCardsForChannel" where it goes from 66ms to 1500ms over the course of an afternoon.
2012-11-18 16:52:20.983820 [(7)]: WaitForPmt: PMT handling took 0.1972656 seconds.
2012-11-18 21:07:10.388117 [(23)]: WaitForPmt: PMT handling took 3.5947265 seconds.
I'm not convinced that the logging is the core issue. If you're saying that only deleting the tv.log makes that sort of difference then it doesn't make sense to me unless deleting the other log files has a similar impact. I'd say it is a symptom of something else. Are you running an SSD for your system drive? Again, how full is your system and timeshifting drive?So it seems to be impacted by logfile size. Any thoughts/suggestions?
Is there a way to reduce the verbosity of the log file?