Page 1 of 1

[SOLVED] Extremely slow boot (over 12minutes)

PostPosted: Jun 16th, '13, 23:15
by neXt
HP Compaq 8000 Elite SFF, Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz, 4GB DDR3 RAM, / on a Kingston 4GB flash, 3X2TB WD Green + 1*1.5GB Seagate HDD (ext3) mounted on /mnt/disk1-4, Kodicom 8*BT878 PCI capture card
Same setup was used until last week with a Mandriva 2008 installation - boot time ~1min. After a fresh install of Mageia3 I'm getting:

$ sudo systemd-analyze blame
772389ms fedora-loadmodules.service
340789ms mandriva-everytime.service
184925ms fedora-wait-storage.service
160805ms systemd-modules-load.service
...
full list: http://pastebin.com/ECdS4aaU
lspci: http://pastebin.com/4GU0LNm9
dmesg: http://pastebin.com/gYf6Xndj
lsmod: http://pastebin.com/Muucjq2M

the big time consuming seems to be bttv (I'm changing the module load options to i2c-algo-bit bit_test=1 and bttv gbuffers=16 card=102,102,102,102,102,102,102,102 radio=0,0,0,0,0,0,0,0 tuner=4,4,4,4,4,4,4,4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0) and the disks mounting.
I have no idea what to do for that disk delay, the fstab entries looks like LABEL=disk1 /mnt/disk1 ext3 noatime,nodiratime,commit=360,nofail 1 0

Re: Extremely slow boot (over 12minutes)

PostPosted: Jun 29th, '13, 17:25
by neXt
Update:
The disks and everything else times-out because the bt878 pretty much freezes the whole system during loading. It seems like " options i2c-algo-bit bit_test=1 " have no effect. And the load process takes about 2min (a bit less in fact) per device. On a board with 8 bt878 chips...
I've tested the capture board in different computer, insmod bt878 really takes the same amount of time, no matter on what computer. Now, when I'll have some time, I'm gonna try to see if with a newer kernel is doing the same thing, if it does I'll have to fill a bugreport against bt878/bttv.

Re: Extremely slow boot (over 12minutes)

PostPosted: Jun 29th, '13, 17:51
by doktor5000
Does that happen also with other distributions?

Re: Extremely slow boot (over 12minutes)

PostPosted: Jun 30th, '13, 01:22
by ghmitch

Re: [SOLVED] Extremely slow boot (over 12minutes)

PostPosted: Feb 9th, '14, 20:02
by neXt
I never had time to put another distro, but this time I've updated to Mageia 4 and... I still had the same problem!
In case somebody else have the same capture board and will search for a solution, this is what my lspci shows:
Code: Select all
10:00.0 PCI bridge: Hint Corp HiNT HB4 PCI-PCI Bridge (PCI6150) (rev 04)
11:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
11:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
11:09.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
11:09.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
11:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
11:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
11:0b.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
11:0b.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
11:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
11:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
11:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
11:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
11:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
11:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)                                                                                   
11:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)                                                                             
11:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)


Finally, the solution for this card is to add into modprobe.conf the following lines:
Code: Select all
options i2c-algo-bit bit_test=2
options bttv gbuffers=16 card=102,102,102,102,102,102,102,102 tuner=4,4,4,4,4,4,4,4 radio=0,0,0,0,0,0,0,0 i2c_hw=1

Adding the parameter i2c_hw=1 fixes the slow loading, forcing the use of hardware i2c support, instead of software bitbang, while i2c-algo-bit bit_test=2 will fail loading if i2c is stuck (this option is not really needed, I just wanted to see if my i2c really fails).

With this parameter my boot time went from ~12min to ~42sec. My actual systemd-analyze blame is:
13449ms mandriva-everytime.service
8798ms rc-local.service
8542ms mysqld.service
6547ms network-up.service
...