Moderator Control Panel ]

Laggy commandline after loading dvb_usb_tbsqboxs2

Laggy commandline after loading dvb_usb_tbsqboxs2

Postby ankh » Fri Jan 27, 2012 4:50 pm

Hi All,

I've noticed some odd behaviour on my machine after the dvb_usb_tbsqboxs2 module is loaded. I appear to experiance a lot of lag when I'm ssh'd into the box. By that I mean keypresses take 2-3 seconds to respond with an echo, making commandline work very time comsuming (e.g cursoring along a line to modify a statement). Once I rmmod dvb_usb_tbsqboxs2, the lag dissappears.

I haven't yet tried to replicate via the console, since the box is headless. I'm using Ubuntu Server 10.04 LTS :

Code: Select All Code
ankh@noel:~$ uname -a
Linux noel 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux


I'm going to monitor /proc/interrupts, since I appear to have a LOT of interrupts on ehci_hcd

Code: Select All Code
ankh@noel:~$ cat /proc/interrupts
           CPU0       CPU1
  0:    1037942    8297407   IO-APIC-edge      timer
  7:          1          0   IO-APIC-edge
  8:          0          1   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
 14:          0          0   IO-APIC-edge      pata_atiixp
 15:          0          0   IO-APIC-edge      pata_atiixp
 17:          0   34940531   IO-APIC-fasteoi   ehci_hcd:usb1, ehci_hcd:usb2, ehci_hcd:usb3
 18:          0          6   IO-APIC-fasteoi   ohci_hcd:usb4, ohci_hcd:usb5, ohci_hcd:usb6, radeon
 25:     393167       5957   PCI-MSI-edge      ahci
 26:     135998        123   PCI-MSI-edge      eth0
NMI:          0          0   Non-maskable interrupts
LOC:    5497661    1744321   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:          0          0   Performance monitoring interrupts
PND:          0          0   Performance pending work
RES:    4006652    2488780   Rescheduling interrupts
CAL:      72885     112410   Function call interrupts
TLB:     131539     123720   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:        126        126   Machine check polls


Anyone else experiancing this? Thanks.
ankh
 
Posts: 6
Joined: Mon Jan 23, 2012 8:23 pm
Location: Leicester, UK

Re: Laggy commandline after loading dvb_usb_tbsqboxs2

Postby cody » Mon Jan 30, 2012 5:31 am

Hi, i believe it's the following issue:

viewtopic.php?f=14&t=157#p764

and there you can find a workaround too. it could be helpful to others if you post here the chipset of your motherboard (at least i'm guessing it's AMD, because usually USB ports of their chipsets are affect5ed by such issues).
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: Laggy commandline after loading dvb_usb_tbsqboxs2

Postby ankh » Mon Jan 30, 2012 5:57 pm

The machine in question is a HP MicroServer 40L, running a AMD Turion II Neo N40L Dual-Core Processor.

Code: Select All Code
ankh@noel:~$ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge Alternate
00:01.0 PCI bridge: Hewlett-Packard Company Device 9602
00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller (rev 40)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller (rev 40)
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40)
00:16.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:16.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Link Control
01:05.0 VGA compatible controller: ATI Technologies Inc M880G [Mobility Radeon HD 4200]
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5723 Gigabit Ethernet PCIe (rev 10)


As I mentioned above, the box is headless, so I only ssh into it and, as a poster in the other thread mentioned, commented out keyboard code may not do it (will try it anyway). What was more interesting was a comment about disabling the IR detection. I don't use the Remote, since the QBox is controlled by MythTV. Any pointers to where in the source to disable IR polling? I am a programmer IRL, just not C :)

Thanks.
ankh
 
Posts: 6
Joined: Mon Jan 23, 2012 8:23 pm
Location: Leicester, UK

Re: Laggy commandline after loading dvb_usb_tbsqboxs2

Postby ankh » Mon Jan 30, 2012 6:20 pm

Actually, don't worry too much... I've commented out the .rc.legacy struct in the dvb_usb_device_properties struct (around line 408 in tbs-qboxs2.c). That seems to have speeded things up! I'm just trying a recording now to make sure it hasn't screwed anything else up.
ankh
 
Posts: 6
Joined: Mon Jan 23, 2012 8:23 pm
Location: Leicester, UK


Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests