[mythtv-users] Mythfrontend idle cpu consumption help

jansenj jansenj+myth at gmail.com
Mon Nov 9 20:29:02 UTC 2009


> I suggest running a tool like strace to shed more light on the
> situation.  Compare the strace output when it's behaving reasonably
> versus when it's taking excessive CPU time, to see if there's any
> difference in the kinds of file accesses or system calls.
>
> Jim
>

On first glance, the only different for the small sample from strace is the
following:

gettimeofday({1257790662, 846417}, NULL) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0

The above lines from high cpu usage are in addition to the ones below when
normal 0-2% CPU is being used.  Maybe there is significant data outside the
same I took since I only compared about 100 lines of the strace.

Both have entries like the following:
clock_gettime(CLOCK_MONOTONIC, {263050, 270597399}) = 0
read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily
unavailable)
poll([{fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8, events=POLLIN},
{fd=12, events=POLLIN}, {fd=30, events=POLLIN}], 5, 0) = 0 (Timeout)
read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily
unavailable)
clock_gettime(CLOCK_MONOTONIC, {263050, 270810253}) = 0
clock_gettime(CLOCK_MONOTONIC, {263050, 270862210}) = 0
read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily
unavailable)
poll([{fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8, events=POLLIN},
{fd=12, events=POLLIN}, {fd=30, events=POLLIN}], 5, 0) = 0 (Timeout)
read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily
unavailable)
clock_gettime(CLOCK_MONOTONIC, {263050, 271074225}) = 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20091109/93fdd702/attachment.htm>


More information about the mythtv-users mailing list