
bhuffman at graze
Sep 7, 2007, 5:21 PM
Post #8 of 8
(1215 views)
Permalink
|
On Sat, 2007-09-08 at 00:14 +0100, James Buckley wrote: > On 07/09/07, Willy Boyd <willyboyd [at] gmail> wrote: > On 9/7/07, Brian C. Huffman <bhuffman [at] graze> wrote: > > I'll spend some more time this weekend. It's just confusing > b/c this > > wasn't happening before my last SVN update. But it has been > quite some > > time, so I guess a lot of things have changed. > > Ok...I found something although I don't know what to make of it. 1) If I do a mythfrontend -v database, it does appear that there's a pause after doing the select for the channel icons (take a look at the timestamp between the icon and the next select): 2007-09-07 19:52:36.121 MSqlQuery: SELECT icon FROM channel WHERE chanid = '2571' ; 2007-09-07 19:52:41.424 MSqlQuery: SELECT DISTINCT program.chanid, program.starttime, program.endtime, program.title, program.subtitle, <snip> HOWEVER! The icon exists and does indeed display. Which is why I'm confused. 2) Ok....here's the next tidbit: If I run an strace -f -p <mythfrontend pid> -tt -e trace=file while running the frontend, then the guide traversal speeds up significantly! Take a look at this difference: 2007-09-07 20:00:39.974 MSqlQuery: SELECT icon FROM channel WHERE chanid = '1166' ; 2007-09-07 20:00:40.457 MSqlQuery: SELECT DISTINCT program.chanid, program.starttime, program.endtime, program.title, program.subtitle <snip> Not even a full second. And you can see the corresponding access in the strace: [pid 3356] 20:00:39.976855 access("/usr/share/mythtv/themes/MythCenter-wide/", F_OK) = 0 [pid 3356] 20:00:39.977304 open("/usr/share/mythtv/themes/MythCenter-wide/", O_RDONLY|O_LARGEFILE) = 29 [pid 3356] 20:00:39.983121 open("/home/mythtv/.mythtv/channels/vh1.jpg", O_RDONLY|O_LARGEFILE) = 29 [pid 3356] 20:00:40.033220 open("/home/mythtv/.mythtv/channels/tnn_30.jpg", O_RDONLY|O_LARGEFILE) = 29 [pid 3367] 20:00:40.147140 open("/dev/hdd", O_RDONLY|O_NONBLOCK| O_LARGEFILE) = 29 [pid 3367] 20:00:40.159873 open("/dev/hdd", O_RDONLY|O_NONBLOCK| O_LARGEFILE) = 29 The only thing that I can think is that there's some sort of IO bottleneck and the strace slows things down enough (since it has to display to the screen) that the file access of the icon can succeed? Anyone else have an idea? Thanks, Brian _______________________________________________ mythtv-dev mailing list mythtv-dev [at] mythtv http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
|