David (and Rafał below)
On 27 Aug 2007, at 06:52, David Rees wrote:
> On 8/26/07, Piers Kittel <[EMAIL PROTECTED]> wrote:
>
> You can unload the usb modules (uhci_hcd) if they are compiled as
> modules to keep them from generating any interrupts. But I suspect
> that most of these wakeups are caused by your cx88 capture cards. Were
> they capturing at the time?
No - although I was running PowerTOP remotely which may have
contributed a little bit. I have unloaded the USB modules - how do I
stop them getting loaded at boot time as PCI Hotplug automatically
loads them. I could add in "rmmod <usb_modules>" in rc.local but
that's a bit of a kludge innit? Hmm, just realised the Yenta driver
is the PCMCIA driver, while my motherboard does have a PCMCIA slot
onboard, I don't need it, so I'll remove that as well... but how to
prevent that getting loaded?
>> 8.3% ( 20.0) mythbackend : futex_wait (hrtimer_wakeup)
>
> MythTV is also a big offender. But luckily you aren't running
> mythfrontend or mythwelcome, they generate a 1-2 hundred wakeups each.
> mythbackend also wakes up 100 times a second for me, so you are
> actually doing well, there! What version of MythTV?
Ouch. I'm only using the backend on the server - it's in an out-of-
the-way place, so can't watch TV on it. I'm using the packages from
debian-multimedia which I suspect is 0.20a:
destiny:/home/piers# dpkg -l | grep myth
ii libmyth-0.20 0.20-svn20070223-0.0
Common library code for MythTV and add-on mo
ii mythtv-backend 0.20-svn20070223-0.0
A personal video recorder application (serve
ii mythtv-common 0.20-svn20070223-0.0
A personal video recorder application (commo
ii mythweb 0.20-svn20070122-0.0
An integrated web browser plugin for your My
destiny:/home/piers#
But, 20 wakeups are better than 400 :) Currently, MythTV is
recording on one card and doing commercial flagging on one program,
creating about 330 wakeups:
24.6% (225.8) <interrupt> : yenta, cx88[0], cx88[0], eth1
22.9% (210.4) mythbackend : do_nanosleep (hrtimer_wakeup)
21.2% (194.6) <interrupt> : yenta, VIA8233, ohci1394, cx88
[1], cx88[1]
11.5% (105.4) mythbackend : schedule_timeout (process_timeout)
7.5% ( 68.6) mythcommflag : schedule_timeout (process_timeout)
6.3% ( 57.6) mythcommflag : do_nanosleep (hrtimer_wakeup)
2.1% ( 19.6) mythbackend : futex_wait (hrtimer_wakeup)
1.8% ( 16.7) <interrupt> : ide0
1.3% ( 12.2) <kernel core> : ide_do_rw_disk
(ledtrig_ide_timerfunc)
This example caused 314 wakeups per second - though I only pasted the
bolded lines. My other email showed the list when MythTV wasn't
doing any jobs or recording anything.
From yours and Rafał's email I guess the 2 tuner cards are the
offending cards - nothing much we can do when they're recording I
guess, but I'm sure it's possible to reduce the wakeups when they're
not doing anything?
Rafał
On 27 Aug 2007, at 09:43, Rafał Krypa wrote:
> On Sun, 2007-08-26 at 15:29 +0100, Piers Kittel wrote:
>> Hi all,
>>
>> Just came across PowerTOP today - looks interesting. I decided to
>> have a look how much power my MythTV backend consumes. I've done
>> some of the required stuff such as recompiling my kernel to include
>> the following:
>
> What model of cx88 card do you have? Some of them have a very nasty
> feature of polling for IR input. These are polling intervals for cards
> supported by this driver, ccording to
> drivers/media/video/cx88/cx88-input.c:
Hmm. My cxx88 cards both are the Hauppauge Nova-T with the Conexant
chipset. Can't spot those two in the list you supplied, unless
they're the CX88_BOARD_HAUPPAUGE_DVB_T1?
Here's the output from lspci:
00:13.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video
and Audio Decoder (rev 05)
00:13.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and
Audio Decoder [MPEG Port] (rev 05)
00:13.4 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and
Audio Decoder [IR Port] (rev 05)
00:14.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video
and Audio Decoder (rev 05)
00:14.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and
Audio Decoder [MPEG Port] (rev 05)
00:14.4 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and
Audio Decoder [IR Port] (rev 05)
I've set the flag in MythTV Setup not to use the cards when
unneeded. Not sure if this actually works?
> So it can be as bad as 1000 wakeups per second when you have
> modules for
> your cx88 card loaded (as I am for example experiencing with my
> Winfast
> 2000 XP Expert :/). And I can't see anywhere in the driver any option
> for disabling IR support for getting rid of this interrupt (probably
> some patch would be useful?).
Yeah - considering I don't need the IR port. Be nice if the driver
had a option where I could disable the IR port... hmm.... I'm curious
too now...
Looking at lsmod, I spot the below:
ir_common 33956 1 cx88xx
Maybe this is one of the offending modules?
Thanks very much for your time!
Regards - Piers
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power