Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Long boot time after kernel update
Date: Tue, 28 Dec 2021 14:13:09
Message-Id: 43410d05-1a08-2940-ffe4-6a43b2b56edf@gmail.com
In Reply to: Re: [gentoo-user] Long boot time after kernel update by Jacques Montier
1 Jacques Montier wrote:
2 > /
3 > /
4 >
5 >
6 > Le mar. 28 déc. 2021 à 14:03, Jacques Montier <jmontier@×××××.com
7 > <mailto:jmontier@×××××.com>> a écrit :
8 >
9 > /
10 > /
11 >
12 >
13 > Le mar. 28 déc. 2021 à 13:32, Dale <rdalek1967@×××××.com
14 > <mailto:rdalek1967@×××××.com>> a écrit :
15 >
16 > William Kenworthy wrote:
17 > > A point to keep in mind - if you can feel the drive moving
18 > it may be
19 > > generating errors!  Depending on the drive, the errors may
20 > just be
21 > > handled internally and I can see it slowing things down though
22 > > probably would be barely noticeable.  I have seen it myself with
23 > > random errors from a WD green drive disappearing when properly
24 > > immobilised.  When investigating I ran across articles
25 > discussing the
26 > > problem, one of which fastened the drives to a granite slab for
27 > > tests!  Also see discussions on NAS seups and vibrations
28 > affecting co
29 > > located drives.
30 > >
31 > > BillK
32 > >
33 > > ** Interesting read
34 > >
35 > https://www.ept.ca/features/everything-need-know-hard-drive-vibration/
36 > >
37 >
38 > This is just because it is a SMR drive.  It's done this ever
39 > since I
40 > bought the drive and it has passed all tests.  There's a whole
41 > thread on
42 > this dating back several years.  I managed to buy a SMR drive
43 > before I
44 > even knew they existed.  Once it fills up that PMR section, it
45 > gets
46 > really slow. 
47 >
48 > Dale
49 >
50 > :-)  :-) 
51 >
52 >
53 > Hello all,
54 >
55 > Thanks a lot for all your responses !
56 > I think this issue is kernel related.
57 > No problem with 5.10.76-gentoo-r1, but the issue appears
58 > with 5.15.11-gentoo.
59 >
60 > I read on the net that it could be possible to desactivate the
61 > sata protocol NCQ (Native Command Queuing)
62 > So, in the grub file, i added the
63 > ligne GRUB_CMDLINE_LINUX=libata.force=noncq
64 > Now, all the errors messages are gone and the booting time gets
65 > down to 24s with the two kernel versions.
66 > BUT : do you think it could damage or slow down my SSD and HDD disks ?
67 >
68 > Thanks again,
69 >
70 > Regards,
71 >
72 > --
73 > Jacques
74 >
75 >
76 >
77 > Me again !
78 >
79 > Well, il cleaned my dusty mobo, unplugged and plugged again the sata
80 > cables.
81 > Now, with or without NCQ, boot time is rather short (~28s).
82 > So it seems it was a connection problem.
83 >
84 > I still have some errors as :
85 >
86 > ............................................
87 > [   24.708377] ata6.00: exception Emask 0x10 SAct 0x50400001 SErr
88 > 0x4010000 action 0xe frozen
89 > [   24.708385] ata6.00: irq_stat 0x00400040, connection status changed
90 > [   24.708387] ata6: SError: { PHYRdyChg DevExch }
91 > [   24.708390] ata6.00: failed command: READ FPDMA QUEUED
92 > [   24.708391] ata6.00: cmd 60/08:00:78:08:c0/00:00:31:00:00/40 tag 0
93 > ncq dma 4096 in
94 >                         res 40/00:00:78:08:c0/00:00:31:00:00/40 Emask
95 > 0x10 (ATA bus error)
96 > [   24.708397] ata6.00: status: { DRDY }
97 > ..........................................
98 >
99 > To be sure, i'll buy some news sata cables.
100 >
101 > Sorry for the noise and thanks again for having helped me.
102 >
103 > Regards,
104 >
105 > --
106 > Jacques
107
108 It could be that the cable itself is good but just had a dust bunny or
109 something in the connection.  Once you reseated the cable, it moved the
110 dust bunny out of the way.  I've done this sort of thing with lots of
111 connections and not had any trouble afterwards.  I'd suggest unplugging
112 things, blowing them out with compressed air to remove all the dust and
113 such and then reconnecting everything and seeing how that works.  No
114 need throwing out what could very well be perfectly good cables. 
115
116 Just a thought.  ;-)
117
118 Dale
119
120 :-)  :-)