[SOLVED] Extremely slow boot (over 12minutes)

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Extremely slow boot (over 12minutes)

Postby neXt » Jun 16th, '13, 23:15

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
Last edited by neXt on Feb 9th, '14, 20:05, edited 1 time in total.
User avatar
neXt
 
Posts: 18
Joined: Oct 15th, '11, 21:48
Location: Le Gardeur, Canada

Re: Extremely slow boot (over 12minutes)

Postby neXt » Jun 29th, '13, 17:25

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.
User avatar
neXt
 
Posts: 18
Joined: Oct 15th, '11, 21:48
Location: Le Gardeur, Canada

Re: Extremely slow boot (over 12minutes)

Postby doktor5000 » Jun 29th, '13, 17:51

Does that happen also with other distributions?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16072
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Extremely slow boot (over 12minutes)

Postby ghmitch » Jun 30th, '13, 01:22

ghmitch
 
Posts: 325
Joined: Mar 30th, '11, 03:05
Location: Eureka California USA

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

Postby neXt » Feb 9th, '14, 20:02

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
...
User avatar
neXt
 
Posts: 18
Joined: Oct 15th, '11, 21:48
Location: Le Gardeur, Canada


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest