[mythtv-users] Mythfrontend UI super slow, a possible culprit?

Greg Stark gsstark at mit.edu
Sun May 21 07:43:36 UTC 2006


I finally got fed up enough at the mythfrontend being incredibly slow to do
some basic digging to see what's going on. The symptoms I see is that
navigating the list of recordings takes about half a second to move the
highlighted line from one recording to the next.

What I see looking at this strace output is that there seems to be some kind
of bug causing the file name for the preview images to be looked up as
relative file names instead of absolute file names. Is it possible this is
causing the preview image to be recreated anew every time?




gettimeofday({1148197012, 565356}, NULL) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
time([1148197012])                      = 1148197012
gettimeofday({1148197012, 569364}, NULL) = 0
poll([{fd=12, events=POLLIN|POLLPRI}], 1, 0) = 0
write(12, "\r\0\0\0\3SELECT NULL;", 17) = 17
read(12, "\1\0\0\1\1\32\0\0\2\3def\0\0\0\4NULL\0\f?\0\0\0\0\0\6\200"..., 16384) = 58
time([1148197012])                      = 1148197012
gettimeofday({1148197012, 570490}, NULL) = 0
poll([{fd=12, events=POLLIN|POLLPRI}], 1, 0) = 0
write(12, "1\0\0\0\3SELECT icon FROM channel WH"..., 53) = 53
read(12, "\1\0\0\1\0017\0\0\2\3def\vmythconverg\7channe"..., 16384) = 130
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
gettimeofday({1148197012, 575478}, NULL) = 0
lstat64("/var/lib/mythtv//1038_20060520220000.nuv.png", {st_mode=S_IFREG|0644, st_size=29942, ...}) = 0
access("/home/mythtv/.mythtv/themecache/G.A.N.T..800.600//var/lib/mythtv//1038_20060520220000.nuv.png", F_OK) = -1 ENOENT (No such file or directory)
access("/home/mythtv/.mythtv/themecache/G.A.N.T..800.600/1038_20060520220000.nuv.png", F_OK) = -1 ENOENT (No such file or directory)
access("/var/lib/mythtv//1038_20060520220000.nuv.png", F_OK) = 0
open("/var/lib/mythtv//1038_20060520220000.nuv.png", O_RDONLY|O_LARGEFILE) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=29942, ...}) = 0
fstat64(13, {st_mode=S_IFREG|0644, st_size=29942, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb5e67000
read(13, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\240\0\0\0x\10\2\0\0"..., 4096) = 4096
_llseek(13, 0, [0], SEEK_SET)           = 0
_llseek(13, 0, [0], SEEK_SET)           = 0
read(13, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\240\0\0\0x\10\2\0\0"..., 4096) = 4096
read(13, "\340\273\210R\325UH\n\312\242\311:\2\273,mQ\30\343\20\203"..., 4096) = 4096
read(13, "/\\<\270q\200\240\375~\317\301\16J\333\363\\\226\225\267"..., 4096) = 4096
read(13, "\0\244\230\262H\212\222\263\344,\273{\363\332\372\215!"..., 4096) = 4096
read(13, "\3\3}+\226-\315r\373\364\323;\326\335q;\230\34\362\24\320"..., 4096) = 4096
read(13, "\371\311\33\0\354\267j\371c\217\256G\2073U\247g7?e\177"..., 4096) = 4096
read(13, "\222T\273\2\272\344\263\260\"\271\t\2b\'\307\367z~0\224"..., 4096) = 4096
read(13, " \261\10~3\347\26+P\31\231\372\326ZK /\311\220Y\250\26"..., 4096) = 1270
close(13)                               = 0
munmap(0xb5e67000, 4096)                = 0
shmget(IPC_PRIVATE, 76800, IPC_CREAT|0600) = 2144763925
shmat(2144763925, 0, 0)                 = 0xb22b9000
shmctl(2144763925, IPC_64|IPC_RMID, 0)  = 0
write(3, ";\3\5\0\r\0\300\1\0\0\0\0\0\0002\0 \3&\2\233\6\5\0#\f\300"..., 8712) = 8712
read(3, "\3h\302\177\255\234\v\344<\0\0\0\301\v\300\1\0\0\0\0\272"..., 32) = 32
read(3, 0xbfef36c0, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "\1\1s\201\0\0\0\0\5\0\300\1\4\0\0\0\0\0\0\0<*\343j0\345"..., 32) = 32
shmdt(0xb22b9000)                       = 0
gettimeofday({1148197013, 205258}, NULL) = 0
select(12, [3 4 5 10 11], [], [], {0, 0}) = 1 (in [5], left {0, 0})
read(5, "\0", 1)                        = 1
gettimeofday({1148197013, 205530}, NULL) = 0
gettimeofday({1148197013, 205646}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
write(3, "\222\2\2\0007\16\300\1\233\4\5\0009\16\300\0018\16\300"..., 72) = 72
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1148197013, 206212}, NULL) = 0
select(12, [3 4 5 10 11], [], [], {0, 262367}) = 0 (Timeout)
gettimeofday({1148197013, 475279}, NULL) = 0
gettimeofday({1148197013, 475377}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1148197013, 475529}, NULL) = 0
select(12, [3 4 5 10 11], [], [], {0, 493050}) = 0 (Timeout)
gettimeofday({1148197013, 971970}, NULL) = 0
gettimeofday({1148197013, 972182}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1148197013, 972380}, NULL) = 0
select(12, [3 4 5 10 11], [], [], {0, 496199}) = 1 (in [3], left {0, 144000})
gettimeofday({1148197014, 329192}, NULL) = 0
ioctl(3, FIONREAD, [64])                = 0
read(3, "\10\3w\201D\243\v\344<\0\0\0\301\v\300\1\0\0\0\0?\3\226"..., 64) = 64
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1148197014, 329992}, NULL) = 0
select(12, [3 4 5 10 11], [], [], {0, 138587}) = 1 (in [3], left {0, 138587})
gettimeofday({1148197014, 331057}, NULL) = 0
ioctl(3, FIONREAD, [96])                = 0
read(3, "\n\3w\201\5\0\300\1\0\0\0\0X\0260\t|G\313\277\0\0\0\0\320"..., 96) = 96
ioctl(5, FIONREAD, [0])                 = 0
write(6, "\0", 1)                       = 1
ioctl(5, FIONREAD, [1])                 = 0
ioctl(5, FIONREAD, [1])                 = 0
write(3, "\2\2\4\0\5\0\300\1\1\0\0\0\7\0\300\1\2\16\4\0\t\0\300\1"..., 48) = 48
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
lstat64("/var/lib/mythtv//1038_20060520220000.nuv.png", {st_mode=S_IFREG|0644, st_size=29942, ...}) = 0
gettimeofday({1148197014, 333382}, NULL) = 0


-- 
greg



More information about the mythtv-users mailing list