Page 1 of 1

High CPU on idle. Related to USB?

Posted: 29 May 2014 18:57
by yanqc
Hi,

I recently did a fresh instal of 9.2.0.1 (972) and imported previous settings (ZFS and jails created under 9.1). Since then my CPU has been running 100% on idle. Previously, as I am using adaptive power (low consumption), my usage level would go down and I'm not sure how to fix this as I played with nas4free services as well as bios options disabling and enabling different elements to see if it would fix my issue. Most of my services are disabled as well as my jails except plex. Here's some info I gathered:

Thanks for your help!

Code: Select all

$ top -SH
last pid:  1180;  load averages:  0.86,  0.79,  0.76  up 0+13:29:19    23:42:56
368 processes: 3 running, 348 sleeping, 17 waiting

Mem: 90M Active, 131M Inact, 1057M Wired, 16M Buf, 6381M Free
ARC: 759M Total, 488M MFU, 219M MRU, 16K Anon, 9651K Header, 43M Other
Swap: 


  PID USERNAME     PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
   11 root         155 ki31     0K    32K RUN     0 789:14 100.00% idle{idle: cpu0}
   12 root         -88    -     0K   272K WAIT    1 483:07 48.10% intr{irq18: uhci2 ehc}
   11 root         155 ki31     0K    32K RUN     1 322:10 40.19% idle{idle: cpu1}
   12 root         -88    -     0K   272K WAIT    0   2:19  0.00% intr{irq22: atapci1+}
    0 root         -16    0     0K  3632K sched   0   2:08  0.00% kernel{swapper}
   12 root         -60    -     0K   272K WAIT    1   1:16  0.00% intr{swi4: clock}
 1867 root          20    0 12084K  1628K select  0   1:04  0.00% powerd
    0 root         -16    0     0K  3632K -       0   0:34  0.00% kernel{zio_write_issue_}
    0 root         -16    0     0K  3632K -       0   0:34  0.00% kernel{zio_write_issue_}
   12 root         -92    -     0K   272K WAIT    1   0:27  0.00% intr{irq257: mskc0}
   13 root          -8    -     0K    48K -       1   0:24  0.00% geom{g_down}
 2198 root          52    0 39416K  5392K kqread  0   0:19  0.00% lighttpd
   21 root          16    -     0K    16K syncer  0   0:17  0.00% syncer
    0 root         -16    0     0K  3632K -       0   0:17  0.00% kernel{zio_null_issue}
 2688 root          20    0 81168K 14164K select  1   0:17  0.00% smbd
   12 root         -88    -     0K   272K WAIT    0   0:12  0.00% intr{irq256: siis0}
    6 root          -8    -     0K    96K tx->tx  0   0:09  0.00% zfskern{txg_thread_enter}
   13 root          -8    -     0K    48K -       0   0:08  0.00% geom{g_up}

Code: Select all

$ vmstat -i
interrupt                          total       rate
irq1: atkbd0                           6          0
irq6: fdc0                             1          0
irq16: uhci0+                      32468          0
irq18: uhci2 ehci0+           9330126829     191863
irq20: hpet0                    55103111       1133
irq22: atapci1+                  2229607         45
irq23: uhci3 ehci1                 33309          0
irq256: siis0                    1349629         27
irq257: mskc0                    1456460         29
Total                         9390331420     193101

Re: High CPU on idle. Related to USB?

Posted: 30 May 2014 08:32
by raulfg3
perhaps you have a IRQ storm, search wiki and google a bit how to solve.

http://wiki.nas4free.org/doku.php?id=faq:0049

Re: High CPU on idle. Related to USB?

Posted: 30 May 2014 18:41
by yanqc
Thanks Raulfg3,

this is the results I get by identifying the culprit. In bios, I tried disabling and enabling USB 2.0 options as well as the the lan and nothing gives. I've tried changing my Sata settings from IDE to AHCI just in case.
People say they fixed this problem by moving the cards on my pcie slots, but my usb and lan are integrated to the motherboard. Any idea?

Code: Select all

$ dmesg | grep irq\ 18
uhci2: <Intel 82801I (ICH9) USB controller> port 0x9c00-0x9c1f irq 18 at device 26.2 on pci0
ehci0: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xf9fffc00-0xf9ffffff irq 18 at device 26.7 on pci0
pcib5: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
mskc0: <Marvell Yukon 88E8056 Gigabit Ethernet> port 0xc800-0xc8ff mem 0xfe9fc000-0xfe9fffff irq 18 at device 0.0 on pci3
uhci5: <Intel 82801I (ICH9) USB controller> port 0x9480-0x949f irq 18 at device 29.2 on pci0

Re: High CPU on idle. Related to USB?

Posted: 30 May 2014 23:47
by raulfg3
If disable USB do not work, perhaps is NOT a IRQ storm. (disable USB must eliminate High CPU if is a IRQ Storm)

what do you have on USB connected?

Re: High CPU on idle. Related to USB?

Posted: 30 May 2014 23:59
by yanqc
I have my NAS4FREE on usb and that's it.

Something strange just happened as I was testing. I tried an old install of 9.1 on USB, cleared and imported disk config in disk management. The idle problem remained.

I went back to my fresh install 9.2 and didn't import disks and now there's no idle and system works perfectly, though disks remain unimported... I fear that if I clear config and import disks it will go back to idle state.

What do you think?

Thanks.

Re: High CPU on idle. Related to USB?

Posted: 02 Jun 2014 18:31
by yanqc
Update :

I tried rebooting my server multiple times. One out of ten time will get me a boot clear of my idle problem but the issue comes back as soon as I reboot. Any idea of what would cause this freak idling?

Code: Select all

$ vmstat -i
interrupt                          total       rate
irq6: fdc0                             1          0
irq16: uhci0+                       2810          0
irq18: uhci2 ehci0+              1542549        372
irq20: hpet0                     1205128        290
irq23: uhci3 ehci1                  3651          0
irq256: siis0                      12782          3
irq257: mskc0                      47039         11
irq258: ahci0                      31174          7
Total                            2845134        686

Re: High CPU on idle. Related to USB?

Posted: 03 Jun 2014 08:22
by b0ssman
can you tell us which motherboard this is?

Re: High CPU on idle. Related to USB?

Posted: 04 Jun 2014 19:20
by yanqc
b0ssman wrote:can you tell us which motherboard this is?
Hi, it is an ASUS P5E.

thanks

Re: High CPU on idle. Related to USB?

Posted: 30 Jun 2014 17:18
by yanqc
I'm still stuck with this issue. Anyone has any idea?

Re: High CPU on idle. Related to USB?

Posted: 30 Jun 2014 17:34
by b0ssman
have you disabled the JMicron® PATA and SATA controller
and the VIA VT6308P IEEE 1394?

Re: High CPU on idle. Related to USB?

Posted: 30 Jun 2014 17:47
by yanqc
I did it before with no result. I just disabled both of them again with the same result. :\

Code: Select all

PID USERNAME     PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
   11 root         155 ki31     0K    32K RUN     0   2:29 100.00% idle{idle: cpu0}
   12 root         -88    -     0K   272K RUN     1   1:39 51.86% intr{irq18: uhci2 ehc}
   11 root         155 ki31     0K    32K RUN     1   1:01 39.79% idle{idle: cpu1}

Re: High CPU on idle. Related to USB?

Posted: 30 Jun 2014 21:39
by b0ssman
Give the 9.3 beta from the forum a try.


Sent from my iPhone using Tapatalk

Re: High CPU on idle. Related to USB?

Posted: 01 Jul 2014 09:04
by raulfg3
You can download here: viewtopic.php?f=69&t=5365

Re: High CPU on idle. Related to USB?

Posted: 06 Jul 2014 22:39
by yanqc
thank you,

option are disabled, version 9.3 installed, cpu is till high but seems fixed and now I'm facing irq 18 throttling interrupt source :(

Re: High CPU on idle. Related to USB?

Posted: 07 Jul 2014 07:37
by b0ssman
If you are dead set on using that board. Try disabling USB altogether and install nas4free on a cf card with a cf to Sata adapter. Or an old notebook hd.


Sent from my iPhone using Tapatalk