Gentoo Archives: gentoo-user

From: Jeff <jmg_071769@×××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [gentoo-security] AMD64 + Hard Drive weirdness...
Date: Thu, 16 Feb 2006 16:48:21
Message-Id: 43F4A922.1090602@comcast.net
1 Moving my thread over to the proper list... first...
2
3 Now then - thanks to everyone on the list for your help. I've had barely
4 any sleep lately, so I must apologize first, for putting the original
5 thread onto the security mailing list by mistake.
6
7 For anyone who's wondering - I have an AMD64 box, with a new Gentoo
8 AMD64 install. The hard drive read times are obnoxiously slow - so, I'm
9 going to attribute this to the wrong driver being loaded for the controller.
10
11 See here:
12
13 hdparm -tT /dev/hda
14
15 /dev/hda:
16 Timing cached reads: 3016 MB in 2.00 seconds = 1507.91 MB/sec
17 Timing buffered disk reads: 4 MB in 3.68 seconds = 1.09 MB/sec
18
19 Horribly slow! This machine should be blazing fast, with the 7200 rpm
20 200 GB hard drive, AMD64 3500+ processor, 1.5 MB RAM, and very modern
21 motherboard to compliment.
22
23 So, in the meantime, I'm trying to track down the culprit that's making
24 my drive run so slow.
25
26 Here's my lspci:
27
28 00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
29 00:02.0 PCI bridge: ATI Technologies Inc RS480 PCI-X Root Port
30 00:12.0 IDE interface: ATI Technologies Inc ATI 4379 Serial ATA Controller
31 00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
32 00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
33 00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller
34 00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 11)
35 00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI
36 IDE Controller ATI
37 00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
38 00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge
39 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
40 HyperTransport Technology Configuration
41 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
42 Address Map
43 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
44 DRAM Controller
45 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
46 Miscellaneous Control
47 01:00.0 VGA compatible controller: nVidia Corporation NV41.0 (rev a2)
48 02:05.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
49 Controller (rev 80)
50 02:09.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado]
51 (rev 78)
52 02:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value
53
54 And modules:
55
56 Module Size Used by
57 nvidia 4057916 12
58 snd_pcm_oss 56224 0
59 snd_mixer_oss 19392 1 snd_pcm_oss
60 eth1394 22608 0
61 snd_emu10k1 122180 1
62 snd_rawmidi 30112 1 snd_emu10k1
63 snd_seq_device 10576 2 snd_emu10k1,snd_rawmidi
64 snd_ac97_codec 108120 1 snd_emu10k1
65 snd_pcm 100936 3 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
66 snd_timer 27336 2 snd_emu10k1,snd_pcm
67 snd_ac97_bus 3392 1 snd_ac97_codec
68 snd_page_alloc 12560 2 snd_emu10k1,snd_pcm
69 snd_util_mem 6016 1 snd_emu10k1
70 snd_hwdep 11936 1 snd_emu10k1
71 3c59x 50420 0
72 mii 7040 1 3c59x
73 ata_piix 12548 0
74 sata_vsc 9988 0
75 sata_sis 9796 0
76 sata_sx4 15812 0
77 sata_nv 11652 0
78 sata_via 10436 0
79 sata_svw 9540 0
80 sata_sil 11588 0
81 sata_promise 14148 0
82 libata 65296 9
83 ata_piix,sata_vsc,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil,sata_promise
84 sbp2 27076 0
85 ohci1394 35532 0
86 ieee1394 109752 3 eth1394,sbp2,ohci1394
87 ohci_hcd 22340 0
88 uhci_hcd 34848 0
89 usb_storage 71360 0
90 usbhid 41056 0
91 ehci_hcd 35336 0
92
93 I'll be spending the rest of the day trying to figure out what's going
94 on here. Of course, if anyone has some insight, that would ultimately be
95 most helpful! Off to work I go...
96
97 Thanks all on the list(s).
98
99 Robert Larson wrote:
100 > Hello Jeff,
101 >
102 >
103 > I've had 3 machines exhibit this kind of behaviour in the last few months.
104 >
105 > On the first machine, it was an intermitten IDE controller failure (probably
106 > related to heat and expansion of motherboard compoenents). I was able to
107 > bypass it by installing a PCI SATA controller. The way that I was able to
108 > figure this out was by running knoppix on it (I tried windows too, just in
109 > case). When running knoppix (and, that OTHER os), the problems still
110 > occured.
111 >
112 > The second and third machines were having problems because the wrong drivers
113 > were loaded for the motherboard IDE controller. On the first of these
114 > machines, I ran knoppix and it correctly loaded the drivers (I used lsmod to
115 > find them ;-). On the second of these machines, it was a production machine,
116 > and it took a lot of time because I couldn't just bring it down. I was
117 > getting "operation not permitted" when trying to enable DMA. Eventually, I
118 > had performed lspci, and saw the controller, then noticed that it was
119 > compiled into the kernel as a different controller.
120 >
121 > As far as it goes for your situation, I would recommend running knoppix to see
122 > if the autodetection can resolve it. If that doesn't work, it may be that
123 > it's simply getting confused between those two similar controllers. Does
124 > "hdparm /dev/hda" show any useful info? How about "hdparm -i /dev/hda"? If
125 > you try to make settings (such as set DMA "hdparm -d1 /dev/hda") does it spit
126 > out errors? I think hdparm may tell you more in this situation because the
127 > disc reads are insanely slow (1MB/sec should be more like 50MB/sec). It
128 > might be worth walking through this just to see if it gives you any errors:
129 > http://gentoo-wiki.com/HOWTO_Use_hdparm_to_improve_IDE_device_performance
130 >
131 > I hope this gives you enough to go on...
132 >
133 >
134 > Regards,
135 >
136 >
137 > Robert Larson
138 >
139 >
140 >
141 > On Thursday 16 February 2006 08:58 am, Jeff wrote:
142 >
143 >>Hey all.
144 >>
145 >>Gentoo Linux AMD64 - running pretty sweet - except, I've noticed that
146 >>even under minimal loads, my system seems to have mini-lockups
147 >>frequently. For instance, when downloading a mere 10 emails, my system
148 >>seems to choke - to the point where I can't even move my mouse for a
149 >>good 10 seconds or so. Opening a gnome-terminal is painful - sometimes,
150 >>apps make the desktop freeze for a good 20-30 seconds. I did a large
151 >>emerge last night using the gnome-terminal, and it rendered my Gnome
152 >>desktop almost completely frozen.
153 >>
154 >>Any idea what might be causing this, and what steps I should take to
155 >>troubleshoot this? The best I can tell, the problem seems to be hard
156 >>drive related, as it does a lot of chewing before the app finally let's
157 >>rip. The hard drive is an IDE, not SATA as you might expect from the
158 >>info below. Other than these strange mini-lockups, my system is buzzing
159 >>right along at a good clip!
160 >>
161 >>Thanks!
162 >>
163 >
164 > [snip]
165
166 --
167 Jabba the Hutt:
168 This bounty hunter is my kind of scum: fearless and
169 inventive.
170
171 --
172 gentoo-user@g.o mailing list

Replies