Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#12664 closed Bug Report - General (fixed)

extreme slow respons from mythtv-setup

Reported by: mythtv@… Owned by: Peter Bennett
Priority: minor Milestone: 30.0
Component: MythTV - Mythtv-setup Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

In mythtv-seetup i've identified 3 locations where resons on key-press can be very slow (8 minutes or more):

  • 1 - selecting existing DVB-S2 card definition without diseqc tree
  • 2 - in capture card definition selecting the input device to use
  • 3 - in capture card definition selecting the diseqc sub-menu

From the message displayed on the terminal, it is not clear what is causing this. During non-response the following cases have been observed:

  • no messages at all
  • error message that no diseqc tree has been defined for the device (correct, the attempt was to enter the diseqc menu to do so)
  • messages about VBox been found on a W7 virtual machine. In one case closing down the virtual machine made mythtv-setup faster, in a second attempt to reproduce this behaviour closing down the virtual machine made no difference

Further testing may show more situations/conditions where respons is very slow

Attachments (1)

20170913_ticket_12664_slow_setup.patch (2.9 KB) - added by Peter Bennett 7 years ago.
Cache probe results to speed card setup

Download all attachments as: .zip

Change History (9)

comment:1 Changed 8 years ago by Stuart Auchterlonie

Milestone: 0.280.29

Moving to 0.29

comment:2 Changed 8 years ago by Stuart Auchterlonie

Milestone: 0.2929.0

Milestone renamed

comment:3 Changed 7 years ago by Peter Bennett

Milestone: 29.030.0
Owner: changed from JYA to Peter Bennett
Priority: majorminor
Status: newassigned

Vbox code takes a long time searching, especially when there are other UPNP devices like ceton on the network.

comment:4 Changed 7 years ago by Peter Bennett

The system probes for devices many times during Capture Card processing. This patch caches the results so that the probe is only done once per invocation of capture card setup. Depending on how many capture cards you have, this can speed it up considerably.

Changed 7 years ago by Peter Bennett

Cache probe results to speed card setup

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

I have tried this patch, together with one that simply inserted 'addUPnP();' into the mythtv-setup commandlineparser, using the command line 'mythtvsetup --noupnp'

It worked, but I'm not sure how much difference it made, and I have to do other things for a few days. I had two capture cards and started with them 'fully deleted'. Setup one, go to 'Input connections' and set multirec, setup the second card and then its Input connections and multirec. Then scan. I now have the usual set of channel numbers and another set much higher with an increment of 64 - don't want to investigate now... First card DVB-T, second card DVB-T/T2, different input groups. I have usually run with only the DVB-T card.

The log is still showing VBox searches, but not, I think, as many as before; I haven't looked hard at the code but suspect it may be doing other things as well during these apparent hangs, minimum 23 seconds.

comment:6 Changed 7 years ago by Peter Bennett

The improvement will be most dramatic where you have many cards already on your system. In any case, it will only do the VBox search once for each time you enter the "Capture Cards" menu, which will be the first time you add a card or the first card it finds already added. Previously it would do the VBox search once for every card found or added. There may still be other things slowing it down, but I do not see them on my system.

comment:7 Changed 6 years ago by Peter Bennett <pbennett@…>

Resolution: fixed
Status: assignedclosed

In 50afc013ca2fb29ce2a4d68dd67ee27b53655c67/mythtv:

mythtv-setup: Cache probe results to speed up Capture card processing

Fixes #12664

comment:8 Changed 6 years ago by Peter Bennett

Owner: changed from Peter Bennett to Peter Bennett
Note: See TracTickets for help on using tickets.