Thread: Program Guide VERY slow on remote frontend

Reply to Thread
Results 1 to 8 of 8
  1. Default Program Guide VERY slow on remote frontend #1
    luv2hike is offline MythTV Helper
    Join Date
    Aug 2005
    Posts
    109
    MythTV Gallery
    0
    The program guide is brutally slow on my remote frontend in version 0.19. I'm talking several seconds to scroll down to each new page. On the original frontend which is on the same box as the backend server, it's fast and fine. TV and recorded programs play over the network with no problems or dropped frames so it doesn't appear to be network bandwidth. I ran with -v all to see if any debug messages helped, but I didn't see anything.

    Any ideas? Is this "normal"?

    Reply With Quote  

  2. Default #2
    a9k
    a9k is offline MythTV Rookie
    Join Date
    Mar 2006
    Location
    Montana, USA
    Posts
    4
    MythTV Gallery
    0
    I can confirm this behaviour in 0.19 backend with 0.19 or SVN-8325 frontend. It has something to do with channel icons. Since 0.19 there is some kind of repeated retry to get icons. I see this in the full debug log. The time waster in the guide is definitely these retries. 15 seconds to get a 3 channel guide up! Awful. I think this is a backend problem.
    Code:
    2006-03-11 17:25:38.530 read  <- 17 60      ANN FileTransfer blaze[]:[]/root/.mythtv/channels/nbc_30.jpg
    2006-03-11 17:25:38.531 MainServer::HandleAnnounce FileTransfer
    2006-03-11 17:25:38.532 adding: blaze as a remote file transfer
    2006-03-11 17:25:38.534 MSqlQuery: SELECT icon FROM channel WHERE icon LIKE '%nbc_30.jpg' ;
    2006-03-11 17:25:38.535 Local file path: /root/.mythtv/channels/nbc_30.jpg
    2006-03-11 17:25:38.536 RingBuf(/root/.mythtv/channels/nbc_30.jpg): OpenFile(/root/.mythtv/channels/nbc_30.jpg, 12)
    2006-03-11 17:25:38.537 Could not open /root/.mythtv/channels/nbc_30.jpg.  12 retries remaining.
    2006-03-11 17:25:39.040 Could not open /root/.mythtv/channels/nbc_30.jpg.  11 retries remaining.
    2006-03-11 17:25:39.543 Could not open /root/.mythtv/channels/nbc_30.jpg.  10 retries remaining.
    2006-03-11 17:25:40.045 Could not open /root/.mythtv/channels/nbc_30.jpg.  9 retries remaining.
    2006-03-11 17:25:40.548 Could not open /root/.mythtv/channels/nbc_30.jpg.  8 retries remaining.
    2006-03-11 17:25:41.051 Could not open /root/.mythtv/channels/nbc_30.jpg.  7 retries remaining.
    2006-03-11 17:25:41.554 Could not open /root/.mythtv/channels/nbc_30.jpg.  6 retries remaining.
    2006-03-11 17:25:42.057 Could not open /root/.mythtv/channels/nbc_30.jpg.  5 retries remaining.
    2006-03-11 17:25:42.560 Could not open /root/.mythtv/channels/nbc_30.jpg.  4 retries remaining.
    2006-03-11 17:25:43.063 Could not open /root/.mythtv/channels/nbc_30.jpg.  3 retries remaining.
    2006-03-11 17:25:43.566 Could not open /root/.mythtv/channels/nbc_30.jpg.  2 retries remaining.
    2006-03-11 17:25:44.069 Could not open /root/.mythtv/channels/nbc_30.jpg.  1 retries remaining.
    2006-03-11 17:25:44.572 Could not open /root/.mythtv/channels/nbc_30.jpg.  0 retries remaining.
    2006-03-11 17:25:45.075 write -> 17 21      OK[]:[]17[]:[]0[]:[]0
    2006-03-11 17:25:45.081 read  <- 16 45      QUERY_FILETRANSFER 17[]:[]REQUEST_BLOCK[]:[]0
    2006-03-11 17:25:45.082 write -> 16 1       0
    2006-03-11 17:25:45.088 read  <- 16 30      QUERY_FILETRANSFER 17[]:[]DONE
    2006-03-11 17:25:45.089 write -> 16 2       ok
    2006-03-11 17:25:45.096 read  <- 16 20      ANN Playback blaze 0
    2006-03-11 17:25:45.097 MainServer::HandleAnnounce Playback
    This delay is repeated per channel. I have turned off show channel icons but they are still fetched. The icons are in the place listed and readable:
    Code:
    blaze mythtv # ls -l /root/.mythtv/channels/nbc_30.jpg
    -rw-r--r--  1 root root 905 Jun 29  2000 /root/.mythtv/channels/nbc_30.jpg
    I'm suspicious of this line in the log mentioning RingBuf.
    Code:
    2006-03-11 17:25:38.536 RingBuf(/root/.mythtv/channels/nbc_30.jpg): OpenFile(/root/.mythtv/channels/nbc_30.jpg, 12)
    I'm continuing to investigate.


    Reply With Quote  

  3. Default #3
    a9k
    a9k is offline MythTV Rookie
    Join Date
    Mar 2006
    Location
    Montana, USA
    Posts
    4
    MythTV Gallery
    0
    It all boil down to this line in libs/libmythtv/RingBuf.cpp failing for icon files.
    Code:
    void RingBuffer::OpenFile(const QString &lfilename, uint retryCount)
    ...
    fd2 = open(filename.ascii(), O_RDONLY|O_LARGEFILE|O_STREAMING);


    Reply With Quote  

  4. Default #4
    luv2hike is offline MythTV Helper
    Join Date
    Aug 2005
    Posts
    109
    MythTV Gallery
    0
    This is terrific info. Thanks. Now if someone can come up with a fix for it. The strange thing is it works fine on the local frontend. There are no perceivable delays in the guide when the frontend is on the same machine as the backend.


    Reply With Quote  

  5. Default #5
    a9k
    a9k is offline MythTV Rookie
    Join Date
    Mar 2006
    Location
    Montana, USA
    Posts
    4
    MythTV Gallery
    0
    On my setup, it is slow on both the remote and the local frontends.


    Reply With Quote  

  6. Default #6
    luv2hike is offline MythTV Helper
    Join Date
    Aug 2005
    Posts
    109
    MythTV Gallery
    0
    Our channel icon locations are different. You have them in /root, I have them in /usr/share/mythtv/icons. This might help your local speed, but not remote.


    Reply With Quote  

  7. Default #7
    luv2hike is offline MythTV Helper
    Join Date
    Aug 2005
    Posts
    109
    MythTV Gallery
    0
    Got it! Turns out your info proved very useful. I copied the icon image files to the same location on my remote frontend as they are on the backend (/usr/share/mythtv/icons). Now it flies. The remote guide is the same speed as the backend machine.


    Reply With Quote  

  8. Default #8
    a9k
    a9k is offline MythTV Rookie
    Join Date
    Mar 2006
    Location
    Montana, USA
    Posts
    4
    MythTV Gallery
    0
    Great. I solved mine too. I found in my case that directory permissions of /root were too tight for myth to access the icons. Why the icons ended up in /root under gentoo I don't kow.
    My beef with the code is that it doesn't display errno in the log lines. That would have made things easier to debug.


    Reply With Quote  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Program Guide Issues
    By jlr1001 in forum General
    Replies: 2
    Last Post: 12-20-2007, 12:35 PM
  2. Slow guide - new
    By MajorTom999 in forum General
    Replies: 0
    Last Post: 10-19-2007, 02:38 PM
  3. "Slow" program guide
    By boppen in forum General
    Replies: 2
    Last Post: 03-05-2007, 02:27 PM
  4. Program Guide problem
    By crosewarne in forum General
    Replies: 0
    Last Post: 11-05-2006, 07:20 AM
  5. Program guide won't populate
    By jamespetts in forum Installation Issues
    Replies: 7
    Last Post: 06-04-2005, 05:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts